From 73a895df6168bc12559d1fa16aae7e52646d7ec3 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 18 May 2017 17:03:02 +0200 Subject: csource: use sandbox only when required --- csource/common.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'csource/common.go') diff --git a/csource/common.go b/csource/common.go index 3ac10334d..74f4aba35 100644 --- a/csource/common.go +++ b/csource/common.go @@ -1556,6 +1556,7 @@ static uintptr_t execute_syscall(int nr, uintptr_t a0, uintptr_t a1, uintptr_t a } } +#if defined(SYZ_EXECUTOR) || defined(SYZ_SANDBOX_NONE) || defined(SYZ_SANDBOX_SETUID) || defined(SYZ_SANDBOX_NAMESPACE) static void loop(); static void sandbox_common() @@ -1578,6 +1579,7 @@ static void sandbox_common() unshare(CLONE_NEWIPC); unshare(CLONE_IO); } +#endif #if defined(SYZ_EXECUTOR) || defined(SYZ_SANDBOX_NONE) static int do_sandbox_none(int executor_pid, bool enable_tun) -- cgit mrf-deployment