aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pid.c')
-rw-r--r--src/lib/pid.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/lib/pid.c b/src/lib/pid.c
index d1ade389e..ed583c51d 100644
--- a/src/lib/pid.c
+++ b/src/lib/pid.c
@@ -29,7 +29,6 @@
29//Process pids[max_pids]; 29//Process pids[max_pids];
30Process *pids = NULL; 30Process *pids = NULL;
31int max_pids=32769; 31int max_pids=32769;
32#define PIDS_BUFLEN 4096
33 32
34// get the memory associated with this pid 33// get the memory associated with this pid
35void pid_getmem(unsigned pid, unsigned *rss, unsigned *shared) { 34void pid_getmem(unsigned pid, unsigned *rss, unsigned *shared) {
@@ -340,18 +339,12 @@ void pid_read(pid_t mon_pid) {
340 exit(1); 339 exit(1);
341 } 340 }
342 341
343 if (mon_pid == 0 && strncmp(ptr, "firejail", 8) == 0) { 342 if ((strncmp(ptr, "firejail", 8) == 0) && (mon_pid == 0 || mon_pid == pid)) {
344 pids[pid].level = 1; 343 if (pid_proc_cmdline_x11_xpra_xephyr(pid))
345 } 344 pids[pid].level = -1;
346 else if (mon_pid == pid && strncmp(ptr, "firejail", 8) == 0) { 345 else
347 pids[pid].level = 1; 346 pids[pid].level = 1;
348 } 347 }
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 348 else
356 pids[pid].level = -1; 349 pids[pid].level = -1;
357 } 350 }