aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/caps.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-03-02 08:49:50 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-03-02 08:49:50 -0500
commit6ac6111f5f3bc18360c5b80bf1ade95b2a06f2c8 (patch)
treefc9d66d3e303bfc3f724af2dd53424f097ac21a8 /src/firejail/caps.c
parentadded ipc-namespace profile command (diff)
downloadfirejail-6ac6111f5f3bc18360c5b80bf1ade95b2a06f2c8.tar.gz
firejail-6ac6111f5f3bc18360c5b80bf1ade95b2a06f2c8.tar.zst
firejail-6ac6111f5f3bc18360c5b80bf1ade95b2a06f2c8.zip
cleanup
Diffstat (limited to 'src/firejail/caps.c')
-rw-r--r--src/firejail/caps.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/firejail/caps.c b/src/firejail/caps.c
index d623c5fd3..de7c93b48 100644
--- a/src/firejail/caps.c
+++ b/src/firejail/caps.c
@@ -419,10 +419,6 @@ void caps_print_filter(pid_t pid) {
419 // if the pid is that of a firejail process, use the pid of the first child process 419 // if the pid is that of a firejail process, use the pid of the first child process
420 char *comm = pid_proc_comm(pid); 420 char *comm = pid_proc_comm(pid);
421 if (comm) { 421 if (comm) {
422 // remove \n
423 char *ptr = strchr(comm, '\n');
424 if (ptr)
425 *ptr = '\0';
426 if (strcmp(comm, "firejail") == 0) { 422 if (strcmp(comm, "firejail") == 0) {
427 pid_t child; 423 pid_t child;
428 if (find_child(pid, &child) == 0) { 424 if (find_child(pid, &child) == 0) {