diff options
Diffstat (limited to 'src/firemon')
-rw-r--r-- | src/firemon/procevent.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/firemon/procevent.c b/src/firemon/procevent.c index 02425a7ee..e2dd5aaa2 100644 --- a/src/firemon/procevent.c +++ b/src/firemon/procevent.c | |||
@@ -89,7 +89,7 @@ static int pid_is_firejail(pid_t pid) { | |||
89 | 89 | ||
90 | // list of firejail arguments that don't trigger sandbox creation | 90 | // list of firejail arguments that don't trigger sandbox creation |
91 | // the initial -- is not included | 91 | // the initial -- is not included |
92 | char *firejail_args = "list tree x11 help version top netstats debug-syscalls debug-errnos debug-protocols"; | 92 | char *firejail_args = "ls list tree x11 help version top netstats debug-syscalls debug-errnos debug-protocols"; |
93 | 93 | ||
94 | int i; | 94 | int i; |
95 | char *start; | 95 | char *start; |
@@ -105,6 +105,11 @@ static int pid_is_firejail(pid_t pid) { | |||
105 | if (strncmp(start, "--", 2) != 0) | 105 | if (strncmp(start, "--", 2) != 0) |
106 | break; | 106 | break; |
107 | 107 | ||
108 | // clan starting with = | ||
109 | char *ptr = strchr(start + 2, '='); | ||
110 | if (ptr) | ||
111 | *ptr = '\0'; | ||
112 | |||
108 | if (strstr(firejail_args, start + 2)) { | 113 | if (strstr(firejail_args, start + 2)) { |
109 | rv = 0; | 114 | rv = 0; |
110 | break; | 115 | break; |