aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-08-05 15:40:23 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-08-05 15:40:23 +0300
commit356b646976b80c0ca1d582227d625130e7e76755 (patch)
tree901d643092bec844fb58c640d151a7df73aea4a1 /src/or
parentd897690fc7f6f6b5b3d37da2e3e2b05f38222f06 (diff)
downloadtor-356b646976b80c0ca1d582227d625130e7e76755.tar
tor-356b646976b80c0ca1d582227d625130e7e76755.tar.gz
added execve and multi-configuration support
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index ab3b8405e..3c9824677 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2651,6 +2651,8 @@ sandbox_init_filter()
sandbox_cfg_allow_open_filename(&cfg,
get_datadir_fname("cached-certs"));
sandbox_cfg_allow_open_filename(&cfg,
+ get_datadir_fname("cached-certs.tmp"));
+ sandbox_cfg_allow_open_filename(&cfg,
get_datadir_fname("cached-consensus"));
sandbox_cfg_allow_open_filename(&cfg,
get_datadir_fname("unverified-consensus"));
@@ -2681,6 +2683,8 @@ sandbox_init_filter()
sandbox_cfg_allow_open_filename(&cfg,
get_datadir_fname("unparseable-desc"));
+ sandbox_cfg_allow_execve(&cfg, "/usr/local/bin/tor");
+
return cfg;
}