[tor] branch main updated: sandbox: Add my-consensus-<flavor-name> to sandbox for dirauth

This is an automated email from the git hooks/post-receive script. dgoulet pushed a commit to branch main in repository tor. The following commit(s) were added to refs/heads/main by this push: new 619dd35321 sandbox: Add my-consensus-<flavor-name> to sandbox for dirauth new 2a838c196d Merge branch 'maint-0.4.7' 619dd35321 is described below commit 619dd35321c13684d5496b660a3404d2d3fe2827 Author: David Goulet <dgoulet@torproject.org> AuthorDate: Mon Oct 31 11:37:43 2022 -0400 sandbox: Add my-consensus-<flavor-name> to sandbox for dirauth Fixese #40663 Signed-off-by: David Goulet <dgoulet@torproject.org> --- changes/ticket40663 | 3 +++ src/app/main/main.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changes/ticket40663 b/changes/ticket40663 new file mode 100644 index 0000000000..3992d8e2b5 --- /dev/null +++ b/changes/ticket40663 @@ -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. 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, -- To stop receiving notification emails like this one, please contact the administrator of this repository.
participants (1)
-
gitolite role