]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sandbox: Permit access to stats/dirreq-stats
authorNick Mathewson <nickm@torproject.org>
Tue, 20 May 2014 16:06:08 +0000 (12:06 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 20 May 2014 16:06:08 +0000 (12:06 -0400)
This prevents a crash when rotating logs with dirreq-stats enabled

fixes 12035; bugfix on 0.2.5.1-alpha.

changes/12032 [new file with mode: 0644]
src/or/main.c

diff --git a/changes/12032 b/changes/12032
new file mode 100644 (file)
index 0000000..c51ddb8
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (linux syscall sandbox):
+    - Avoid crash when running with sandboxing enabled and
+      DirReqStatistics not disabled. Fixes bug 12035; bugfix on
+      0.2.5.1-alpha.
\ No newline at end of file
index 3e41154dc16b1fa70f96dec177ee57b7f1440cc0..dac178ade8096b410575cf9f108d4a8192b07390 100644 (file)
@@ -2836,6 +2836,8 @@ sandbox_init_filter(void)
         get_datadir_fname2("keys", "secret_id_key.tmp"),
         get_datadir_fname2("stats", "bridge-stats"),
         get_datadir_fname2("stats", "bridge-stats.tmp"),
+        get_datadir_fname2("stats", "dirreq-stats"),
+        get_datadir_fname2("stats", "dirreq-stats.tmp"),
         get_datadir_fname("fingerprint"),
         get_datadir_fname("fingerprint.tmp"),
         get_datadir_fname("hashed-fingerprint"),
@@ -2853,6 +2855,7 @@ sandbox_init_filter(void)
     RENAME_SUFFIX2("keys", "secret_onion_key", ".tmp");
     RENAME_SUFFIX2("keys", "secret_onion_key.old", ".tmp");
     RENAME_SUFFIX2("stats", "bridge-stats", ".tmp");
+    RENAME_SUFFIX2("stats", "dirreq-stats", ".tmp");
     RENAME_SUFFIX("hashed-fingerprint", ".tmp");
     RENAME_SUFFIX("router-stability", ".tmp");