mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-18 03:27:41 +02:00
Add syscall sandboxing (seccomp-bpf)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <scheduler.h>
|
||||
|
||||
#include <random.h>
|
||||
#include <util/syscall_sandbox.h>
|
||||
#include <util/time.h>
|
||||
|
||||
#include <assert.h>
|
||||
@@ -24,6 +25,7 @@ CScheduler::~CScheduler()
|
||||
|
||||
void CScheduler::serviceQueue()
|
||||
{
|
||||
SetSyscallSandboxPolicy(SyscallSandboxPolicy::SCHEDULER);
|
||||
WAIT_LOCK(newTaskMutex, lock);
|
||||
++nThreadsServicingQueue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user