This is an automated email from the git hooks/post-receive script.
dgoulet pushed a change to branch main in repository tor.
from 7e055c383c Merge branch 'maint-0.4.7' new 726e9ec0a3 sandbox: Allow my-consensus-* files for an authority new 35e221688b Merge branch 'tor-gitlab/mr/675' into maint-0.4.7 new ce7476cb59 Merge branch 'maint-0.4.7'
The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: changes/ticket40729 | 3 +++ src/app/main/main.c | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 changes/ticket40729
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 726e9ec0a3bd7bda889f9da87a226451315baeda Author: David Goulet dgoulet@torproject.org AuthorDate: Tue Jan 10 09:02:13 2023 -0500
sandbox: Allow my-consensus-* files for an authority
Fixes #40729
Signed-off-by: David Goulet dgoulet@torproject.org --- changes/ticket40729 | 3 +++ src/app/main/main.c | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/changes/ticket40729 b/changes/ticket40729 new file mode 100644 index 0000000000..1c2d43d14f --- /dev/null +++ b/changes/ticket40729 @@ -0,0 +1,3 @@ + o Minor bugfixes (sandbox, authority): + - With the sandbox enabled, allow to write "my-consensus-{ns|microdesc}" and + to rename them as well. Fixes bug 40729; bugfix on 0.3.5.1-alpha. diff --git a/src/app/main/main.c b/src/app/main/main.c index 7fb92c59db..838e129d04 100644 --- a/src/app/main/main.c +++ b/src/app/main/main.c @@ -924,8 +924,8 @@ sandbox_init_filter(void)
if (authdir_mode(options)) { OPEN_DATADIR("approved-routers"); - OPEN_CACHEDIR_SUFFIX("my-consensus-microdesc", ".tmp"); - OPEN_CACHEDIR_SUFFIX("my-consensus-ns", ".tmp"); + OPEN_DATADIR_SUFFIX("my-consensus-microdesc", ".tmp"); + OPEN_DATADIR_SUFFIX("my-consensus-ns", ".tmp"); }
if (options->ServerDNSResolvConfFile) @@ -1004,6 +1004,11 @@ sandbox_init_filter(void) if (options->BridgeAuthoritativeDir) RENAME_SUFFIX("networkstatus-bridges", ".tmp");
+ if (authdir_mode(options)) { + RENAME_SUFFIX("my-consensus-microdesc", ".tmp"); + RENAME_SUFFIX("my-consensus-ns", ".tmp"); + } + #define STAT_DATADIR(name) \ sandbox_cfg_allow_stat_filename(&cfg, get_datadir_fname(name))
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit 35e221688b2636c405332bc6140d6e5cc483b0bf Merge: d456885dac 726e9ec0a3 Author: David Goulet dgoulet@torproject.org AuthorDate: Tue Jan 10 11:15:32 2023 -0500
Merge branch 'tor-gitlab/mr/675' into maint-0.4.7
changes/ticket40729 | 3 +++ src/app/main/main.c | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-)
This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository tor.
commit ce7476cb59923fa6da0b3b989e8c782b63189ba6 Merge: 7e055c383c 35e221688b Author: David Goulet dgoulet@torproject.org AuthorDate: Tue Jan 10 11:15:36 2023 -0500
Merge branch 'maint-0.4.7'
changes/ticket40729 | 3 +++ src/app/main/main.c | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-)
tor-commits@lists.torproject.org