]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sandbox: Permit stat() of DataDir/stats
authorNick Mathewson <nickm@torproject.org>
Fri, 13 Jun 2014 12:26:23 +0000 (08:26 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 13 Jun 2014 12:36:43 +0000 (08:36 -0400)
This is a fix for another case of 12064 that alphawolf just spotted.

There's already an 0.2.5.5 changelog entry for this.

src/or/main.c

index f7ad41e820469a71b22e2eac58f8690af332c367..090503e07e3162f8fcf0031b82a020e969f87feb 100644 (file)
@@ -2941,6 +2941,7 @@ sandbox_init_filter(void)
 
     sandbox_cfg_allow_stat_filename_array(&cfg,
         get_datadir_fname("keys"),
+        get_datadir_fname("stats"),
         get_datadir_fname2("stats", "dirreq-stats"),
         NULL, 0
     );