mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Remove dependency on lib/net from lib/sandbox.
This was trivial, and the easiest way to remove the remaining .may_include circularities.
This commit is contained in:
parent
f6b8c7da66
commit
c0a7527eb8
@ -1402,6 +1402,7 @@ tor_run_main(const tor_main_configuration_t *tor_cfg)
|
|||||||
tor_free_all(0);
|
tor_free_all(0);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
tor_make_getaddrinfo_cache_active();
|
||||||
|
|
||||||
// registering libevent rng
|
// registering libevent rng
|
||||||
#ifdef HAVE_EVUTIL_SECURE_RNG_SET_URANDOM_DEVICE_FILE
|
#ifdef HAVE_EVUTIL_SECURE_RNG_SET_URANDOM_DEVICE_FILE
|
||||||
|
@ -5,7 +5,6 @@ lib/container/*.h
|
|||||||
lib/err/*.h
|
lib/err/*.h
|
||||||
lib/log/*.h
|
lib/log/*.h
|
||||||
lib/malloc/*.h
|
lib/malloc/*.h
|
||||||
lib/net/*.h
|
|
||||||
lib/sandbox/*.h
|
lib/sandbox/*.h
|
||||||
lib/sandbox/*.inc
|
lib/sandbox/*.inc
|
||||||
lib/string/*.h
|
lib/string/*.h
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
#include "lib/err/torerr.h"
|
#include "lib/err/torerr.h"
|
||||||
#include "lib/log/log.h"
|
#include "lib/log/log.h"
|
||||||
#include "lib/cc/torint.h"
|
#include "lib/cc/torint.h"
|
||||||
#include "lib/net/resolve.h"
|
|
||||||
#include "lib/malloc/malloc.h"
|
#include "lib/malloc/malloc.h"
|
||||||
#include "lib/string/scanf.h"
|
#include "lib/string/scanf.h"
|
||||||
|
|
||||||
@ -1553,7 +1552,6 @@ install_syscall_filter(sandbox_cfg_t* cfg)
|
|||||||
|
|
||||||
// marking the sandbox as active
|
// marking the sandbox as active
|
||||||
sandbox_active = 1;
|
sandbox_active = 1;
|
||||||
tor_make_getaddrinfo_cache_active();
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
seccomp_release(ctx);
|
seccomp_release(ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user