From f1c1e550aaf04b3573b232b6e464d9a3b4304288 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 17 Mar 2016 08:35:27 -0400 Subject: overlayfs work, fixed hedgwoars profile --- src/lib/pid.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/pid.c') diff --git a/src/lib/pid.c b/src/lib/pid.c index a89ac434b..d1ade389e 100644 --- a/src/lib/pid.c +++ b/src/lib/pid.c @@ -310,7 +310,11 @@ void pid_read(pid_t mon_pid) { continue; if (pid == mypid) continue; - + + // skip PID 1 just in case we run a sandbox-in-sandbox + if (pid == 1) + continue; + // open stat file char *file; if (asprintf(&file, "/proc/%u/status", pid) == -1) { -- cgit v1.2.3-54-g00ecf