aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-02-24 16:05:43 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-02-24 16:05:43 +0100
commit5e0e1d1450d7c3497338082fc28912fdd7f93a3c (patch)
treedbafc9d953c639f32d671cf64b2efea498e7943e /executor/common_linux.h
parent1253d6f07f7f40d2835e0d1e061dcbad49ae28ee (diff)
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
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h6
1 files changed, 3 insertions, 3 deletions
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);