sandbox: Add my-consensus-<flavor-name> to sandbox for dirauth

Fixese #40663

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2022-10-31 11:37:43 -04:00
parent 5db238f3e3
commit 619dd35321
2 changed files with 7 additions and 1 deletions

3
changes/ticket40663 Normal file
View File

@ -0,0 +1,3 @@
o Minor bugfixes (authorities, sandbox):
- Allow to write file my-consensus-<flavor-name> to disk when sandbox is
activated. Fixes bug 40663; bugfix on 0.3.5.1-alpha.

View File

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