diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-05-18 17:03:02 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-06-12 19:48:23 +0200 |
| commit | 73a895df6168bc12559d1fa16aae7e52646d7ec3 (patch) | |
| tree | 3a1dc5c7395bbac98dc3f7f82360097f9e72011f /csource/common.go | |
| parent | 1bdb387c18a852e75aef0b3c4ddb0481f90d66bd (diff) | |
csource: use sandbox only when required
Diffstat (limited to 'csource/common.go')
| -rw-r--r-- | csource/common.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
