]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a couple of missing renames so the server sandbox works again
authorNick Mathewson <nickm@torproject.org>
Wed, 16 Apr 2014 19:15:31 +0000 (15:15 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 17 Apr 2014 02:03:09 +0000 (22:03 -0400)
src/or/main.c

index c0f14c0b8978883d347ac98e5cd1e673711cfe6d..cdbb2db55385fbb74c07e5e84881e180d2797edb 100644 (file)
@@ -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"),