diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-06 10:14:35 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-06 10:14:35 -0400 |
commit | ad9cb9724701e5aba9e90d3dbf00f9b89e335e3c (patch) | |
tree | 8d732ddadcb0c320744c2417a5845aa3113c7b9e /src | |
parent | grsecurity: --seccomp.print (diff) | |
download | firejail-ad9cb9724701e5aba9e90d3dbf00f9b89e335e3c.tar.gz firejail-ad9cb9724701e5aba9e90d3dbf00f9b89e335e3c.tar.zst firejail-ad9cb9724701e5aba9e90d3dbf00f9b89e335e3c.zip |
grsecurity: --protocol.print
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/protocol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/protocol.c b/src/firejail/protocol.c index 70b8496ec..7e5ab7dfb 100644 --- a/src/firejail/protocol.c +++ b/src/firejail/protocol.c | |||
@@ -339,7 +339,9 @@ void protocol_print_filter(pid_t pid) { | |||
339 | (void) pid; | 339 | (void) pid; |
340 | #ifdef SYS_socket | 340 | #ifdef SYS_socket |
341 | // if the pid is that of a firejail process, use the pid of the first child process | 341 | // if the pid is that of a firejail process, use the pid of the first child process |
342 | EUID_ROOT(); | ||
342 | char *comm = pid_proc_comm(pid); | 343 | char *comm = pid_proc_comm(pid); |
344 | EUID_USER(); | ||
343 | if (comm) { | 345 | if (comm) { |
344 | if (strcmp(comm, "firejail") == 0) { | 346 | if (strcmp(comm, "firejail") == 0) { |
345 | pid_t child; | 347 | pid_t child; |