diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-20 12:06:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-20 12:06:08 -0400 |
commit | f87071f49efb47a2d52583730c29ba287e620227 (patch) | |
tree | ff60b087f2ccdba7fad15dc9f3351dcb6ef00db5 /src/or | |
parent | 0b2b5b7606e3b6aaa44df4066ebfb5581ae5ef36 (diff) | |
download | tor-f87071f49efb47a2d52583730c29ba287e620227.tar tor-f87071f49efb47a2d52583730c29ba287e620227.tar.gz |
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.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 3e41154dc..dac178ade 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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"); |