[tor-commits] [tor/release-0.2.8] sandboxing: allow writing to stats/hidserv-stats

nickm at torproject.org nickm at torproject.org
Tue Jul 5 16:43:34 UTC 2016


commit 55d380f3dfbc2e0c1c4aa748e38d73593454069b
Author: Peter Palfrader <peter at palfrader.org>
Date:   Sun Jul 3 18:03:26 2016 +0200

    sandboxing: allow writing to stats/hidserv-stats
    
    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 | 4 ++++
 src/or/main.c    | 1 +
 2 files changed, 5 insertions(+)

diff --git a/changes/bug19557 b/changes/bug19557
new file mode 100644
index 0000000..9036cdc
--- /dev/null
+++ b/changes/bug19557
@@ -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.
diff --git a/src/or/main.c b/src/or/main.c
index 0562f84..6b5619c 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -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");





More information about the tor-commits mailing list