diff options
Diffstat (limited to 'src/lib/pid.c')
-rw-r--r-- | src/lib/pid.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/pid.c b/src/lib/pid.c index d1ade389e..bbb123b81 100644 --- a/src/lib/pid.c +++ b/src/lib/pid.c | |||
@@ -340,18 +340,12 @@ void pid_read(pid_t mon_pid) { | |||
340 | exit(1); | 340 | exit(1); |
341 | } | 341 | } |
342 | 342 | ||
343 | if (mon_pid == 0 && strncmp(ptr, "firejail", 8) == 0) { | 343 | if ((strncmp(ptr, "firejail", 8) == 0) && (mon_pid == 0 || mon_pid == pid)) { |
344 | pids[pid].level = 1; | 344 | if (pid_proc_cmdline_x11(pid)) |
345 | pids[pid].level = -1; | ||
346 | else | ||
347 | pids[pid].level = 1; | ||
345 | } | 348 | } |
346 | else if (mon_pid == pid && strncmp(ptr, "firejail", 8) == 0) { | ||
347 | pids[pid].level = 1; | ||
348 | } | ||
349 | // else if (mon_pid == 0 && strncmp(ptr, "lxc-execute", 11) == 0) { | ||
350 | // pids[pid].level = 1; | ||
351 | // } | ||
352 | // else if (mon_pid == pid && strncmp(ptr, "lxc-execute", 11) == 0) { | ||
353 | // pids[pid].level = 1; | ||
354 | // } | ||
355 | else | 349 | else |
356 | pids[pid].level = -1; | 350 | pids[pid].level = -1; |
357 | } | 351 | } |