Merge branch 'maint-0.4.7'

This commit is contained in:
David Goulet 2022-10-31 15:00:15 -04:00
commit 2a838c196d
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,