sandbox: Permit access to stats/dirreq-stats

This prevents a crash when rotating logs with dirreq-stats enabled

fixes 12035; bugfix on 0.2.5.1-alpha.
This commit is contained in:
Nick Mathewson 2014-05-20 12:06:08 -04:00
parent 0b2b5b7606
commit f87071f49e
2 changed files with 7 additions and 0 deletions

4
changes/12032 Normal file
View File

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

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