aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-16 15:15:31 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-16 22:03:09 -0400
commitce776cf2700e5bb484630bc287b31204162adfac (patch)
tree7f904eca46c9eb9db0ebf0338fad3c41b12662ec
parente6785ee16dce675aa770616bcdbd128d5dfb1132 (diff)
downloadtor-ce776cf2700e5bb484630bc287b31204162adfac.tar
tor-ce776cf2700e5bb484630bc287b31204162adfac.tar.gz
Add a couple of missing renames so the server sandbox works again
-rw-r--r--src/or/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index c0f14c0b8..cdbb2db55 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2839,6 +2839,13 @@ sandbox_init_filter(void)
RENAME_SUFFIX2("keys", "secret_onion_key.old", ".tmp");
RENAME_SUFFIX("hashed-fingerprint", ".tmp");
+ sandbox_cfg_allow_rename(&cfg,
+ get_datadir_fname2("keys", "secret_onion_key"),
+ get_datadir_fname2("keys", "secret_onion_key.old"));
+ sandbox_cfg_allow_rename(&cfg,
+ get_datadir_fname2("keys", "secret_onion_key_ntor"),
+ get_datadir_fname2("keys", "secret_onion_key_ntor.old"));
+
sandbox_cfg_allow_stat_filename_array(&cfg,
get_datadir_fname("keys"),
get_datadir_fname("stats/dirreq-stats"),