Add syscall sandboxing (seccomp-bpf)
This commit is contained in:
1 parent
e69cbac628
commit
4747da3a5b
27 files changed
+1125
-1
No files matched your search
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <sync.h>
|
||||
#include <tinyformat.h>
|
||||
#include <util/syscall_sandbox.h>
|
||||
#include <util/threadnames.h>
|
||||
|
||||
#include <algorithm>
|
||||
@@ -151,6 +152,7 @@ public:
|
||||
for (int n = 0; n < threads_num; ++n) {
|
||||
m_worker_threads.emplace_back([this, n]() {
|
||||
util::ThreadRename(strprintf("scriptch.%i", n));
|
||||
SetSyscallSandboxPolicy(SyscallSandboxPolicy::VALIDATION_SCRIPT_CHECK);
|
||||
Loop(false /* worker thread */);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user