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 --- executor/common_linux.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index 11611b92c..27f934799 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -2661,9 +2661,9 @@ static int do_sandbox_none(void) // and they are usually run under non-root. // Also since debug is stripped by pkg/csource, we need to do {} // even though we generally don't do {} around single statements. - //if (unshare(CLONE_NEWPID)) { - // debug("unshare(CLONE_NEWPID): %d\n", errno); - //} + 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