[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add a couple of missing renames so the server sandbox works again



commit ce776cf2700e5bb484630bc287b31204162adfac
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Apr 16 15:15:31 2014 -0400

    Add a couple of missing renames so the server sandbox works again
---
 src/or/main.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/or/main.c b/src/or/main.c
index c0f14c0..cdbb2db 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"),



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits