From 2c4e78d95b2bc42c43ba09163e9c2d0744d9ac7b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 3 Jul 2016 17:47:45 +0200 Subject: sandboxing: allow open() of stats dir When sandboxing is enabled, we could not write any stats to disk. check_or_create_data_subdir("stats"), which prepares the private stats directory, calls check_private_dir(), which also opens and not just stats() the directory. Therefore, we need to also allow open() for the stats dir in our sandboxing setup. --- src/or/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index f585f0be62..0562f84242 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -3568,6 +3568,7 @@ sandbox_init_filter(void) get_datadir_fname2("keys", "secret_onion_key_ntor.old")); STAT_DATADIR("keys"); + OPEN_DATADIR("stats"); STAT_DATADIR("stats"); STAT_DATADIR2("stats", "dirreq-stats"); } -- cgit v1.2.3-54-g00ecf