mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge branch 'maint-0.4.7'
This commit is contained in:
commit
ce7476cb59
3
changes/ticket40729
Normal file
3
changes/ticket40729
Normal file
@ -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.
|
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user