mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 18:22:09 +01:00
Merge remote-tracking branch 'public/bug18548'
This commit is contained in:
commit
233180a9ab
12
changes/bug18548
Normal file
12
changes/bug18548
Normal file
@ -0,0 +1,12 @@
|
||||
o Minor bugfixes (linux seccomp2 sandbox):
|
||||
- Avoid a 10-second delay when starting as a client with Sandbox 1
|
||||
enabled and no DNS resolvers configured. This should help TAILS
|
||||
start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
|
||||
|
||||
|
||||
o Minor features (linux seccomp2 sandbox):
|
||||
- Detect and reject attempts to change our Address with Sandbox 1
|
||||
enabled. Changing Address with Sandbox turned on would never
|
||||
actually work, but previously it would fail in strange and
|
||||
confusing ways. Found while fixing 18548.
|
||||
|
@ -4267,6 +4267,7 @@ options_transition_allowed(const or_options_t *old,
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
SB_NOCHANGE_STR(Address);
|
||||
SB_NOCHANGE_STR(PidFile);
|
||||
SB_NOCHANGE_STR(ServerDNSResolvConfFile);
|
||||
SB_NOCHANGE_STR(DirPortFrontPage);
|
||||
|
@ -3312,6 +3312,13 @@ do_dump_config(void)
|
||||
static void
|
||||
init_addrinfo(void)
|
||||
{
|
||||
if (! server_mode(get_options()) ||
|
||||
(get_options()->Address && strlen(get_options()->Address) > 0)) {
|
||||
/* We don't need to seed our own hostname, because we won't be calling
|
||||
* resolve_my_address on it.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
char hname[256];
|
||||
|
||||
// host name to sandbox
|
||||
|
Loading…
Reference in New Issue
Block a user