From 4747da3a5b639b5a336b737e7e3cbf060cf2efcf Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 1 Oct 2021 13:53:59 +0000 Subject: Add syscall sandboxing (seccomp-bpf) --- src/mapport.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mapport.cpp') diff --git a/src/mapport.cpp b/src/mapport.cpp index 135efb561e..a2d06c68b4 100644 --- a/src/mapport.cpp +++ b/src/mapport.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -222,6 +223,7 @@ static bool ProcessUpnp() static void ThreadMapPort() { + SetSyscallSandboxPolicy(SyscallSandboxPolicy::INITIALIZATION_MAP_PORT); bool ok; do { ok = false; -- cgit v1.2.3