]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sandbox: Add my-consensus-<flavor-name> to sandbox for dirauth
authorDavid Goulet <dgoulet@torproject.org>
Mon, 31 Oct 2022 15:37:43 +0000 (11:37 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 31 Oct 2022 15:37:43 +0000 (11:37 -0400)
Fixese #40663

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40663 [new file with mode: 0644]
src/app/main/main.c

diff --git a/changes/ticket40663 b/changes/ticket40663
new file mode 100644 (file)
index 0000000..3992d8e
--- /dev/null
@@ -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.
index b73d722963fdd3064603c2a11806252fa556e3ba..7fb92c59db7e64cc570dc9cdeacb6712adac2e25 100644 (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,