summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-10-31 11:37:43 -0400
committerDavid Goulet <dgoulet@torproject.org>2022-10-31 11:37:43 -0400
commit619dd35321c13684d5496b660a3404d2d3fe2827 (patch)
treec3f961f0ebf6ac73835a4811afdda22222726b02 /src/app
parent5db238f3e3df54b11cf376d57d2cd89257b594f8 (diff)
downloadtor-619dd35321c13684d5496b660a3404d2d3fe2827.tar.gz
tor-619dd35321c13684d5496b660a3404d2d3fe2827.zip
sandbox: Add my-consensus-<flavor-name> to sandbox for dirauth
Fixese #40663 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/main/main.c b/src/app/main/main.c
index b73d722963..7fb92c59db 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -922,8 +922,11 @@ sandbox_init_filter(void)
if (options->BridgeAuthoritativeDir)
OPEN_DATADIR_SUFFIX("networkstatus-bridges", ".tmp");
- if (authdir_mode(options))
+ if (authdir_mode(options)) {
OPEN_DATADIR("approved-routers");
+ OPEN_CACHEDIR_SUFFIX("my-consensus-microdesc", ".tmp");
+ OPEN_CACHEDIR_SUFFIX("my-consensus-ns", ".tmp");
+ }
if (options->ServerDNSResolvConfFile)
sandbox_cfg_allow_open_filename(&cfg,