mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 19:10:40 +01:00
Add syscall sandboxing (seccomp-bpf)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <netbase.h>
|
||||
#include <util/readwritefile.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/syscall_sandbox.h>
|
||||
#include <util/system.h>
|
||||
#include <util/thread.h>
|
||||
#include <util/time.h>
|
||||
@@ -585,6 +586,7 @@ static std::thread torControlThread;
|
||||
|
||||
static void TorControlThread(CService onion_service_target)
|
||||
{
|
||||
SetSyscallSandboxPolicy(SyscallSandboxPolicy::TOR_CONTROL);
|
||||
TorController ctrl(gBase, gArgs.GetArg("-torcontrol", DEFAULT_TOR_CONTROL), onion_service_target);
|
||||
|
||||
event_base_dispatch(gBase);
|
||||
|
||||
Reference in New Issue
Block a user