From 5e0e1d1450d7c3497338082fc28912fdd7f93a3c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 24 Feb 2020 16:05:43 +0100 Subject: executor: uncomment accidentially commented code unshare(CLONE_NEWPID) was commented out in 4428511d10687cb446ad705148333478437d3f23 accidentially. Uncomment it. Spotted by @xairy: https://github.com/google/syzkaller/commit/4428511d10687cb446ad705148333478437d3f23#r37456572 --- pkg/csource/generated.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/csource/generated.go') diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 0674f8713..2441984cd 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -5693,6 +5693,9 @@ static void drop_caps(void) static int do_sandbox_none(void) { + if (unshare(CLONE_NEWPID)) { + debug("unshare(CLONE_NEWPID): %d\n", errno); + } int pid = fork(); if (pid != 0) return wait_for_loop(pid); -- cgit mrf-deployment