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.
This commit is contained in:
Peter Palfrader 2016-07-03 18:03:26 +02:00
parent 51b5d09c94
commit 55d380f3df
2 changed files with 5 additions and 0 deletions

4
changes/bug19557 Normal file
View File

@ -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.

View 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");