diff options
author | netblue30 <netblue30@yahoo.com> | 2016-03-05 12:36:49 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-03-05 12:36:49 -0500 |
commit | 96a7409259b7ae8cd66172d8d94a5c307ac6139d (patch) | |
tree | 0c06bd9ab5a482afabc8a3aa79de6d1721175bbf /src/firemon | |
parent | documentation (diff) | |
download | firejail-96a7409259b7ae8cd66172d8d94a5c307ac6139d.tar.gz firejail-96a7409259b7ae8cd66172d8d94a5c307ac6139d.tar.zst firejail-96a7409259b7ae8cd66172d8d94a5c307ac6139d.zip |
fixes
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; |