From 55d380f3dfbc2e0c1c4aa748e38d73593454069b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 3 Jul 2016 18:03:26 +0200 Subject: [PATCH] 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(+) create mode 100644 changes/bug19557 diff --git a/changes/bug19557 b/changes/bug19557 new file mode 100644 index 000000000..9036cdc8e --- /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 0562f8424..6b5619c7d 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");