]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sandboxing: allow writing to stats/hidserv-stats
authorPeter Palfrader <peter@palfrader.org>
Sun, 3 Jul 2016 16:03:26 +0000 (18:03 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 3 Jul 2016 16:05:43 +0000 (18:05 +0200)
Our sandboxing code would not allow us to write to stats/hidserv-stats,
causing tor to abort while trying to write stats.  This was previously
masked by bug#19556.

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

diff --git a/changes/bug19557 b/changes/bug19557
new file mode 100644 (file)
index 0000000..9036cdc
--- /dev/null
@@ -0,0 +1,4 @@
+  o Major bugfixes (sandboxing):
+    - Our sandboxing code would not allow us to write to stats/hidserv-stats,
+      causing tor to abort while trying to write stats.  This was previously
+      masked by bug 19556.  Fixes bug 19557.
index 0562f8424259faf5d93d15caee402d09d520e734..6b5619c7d625f556cac10f49776de2ae992433a8 100644 (file)
@@ -3530,6 +3530,7 @@ sandbox_init_filter(void)
     OPEN_DATADIR2_SUFFIX("stats", "exit-stats", ".tmp");
     OPEN_DATADIR2_SUFFIX("stats", "buffer-stats", ".tmp");
     OPEN_DATADIR2_SUFFIX("stats", "conn-stats", ".tmp");
+    OPEN_DATADIR2_SUFFIX("stats", "hidserv-stats", ".tmp");
 
     OPEN_DATADIR("approved-routers");
     OPEN_DATADIR_SUFFIX("fingerprint", ".tmp");