diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-06 10:19:16 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-06 10:19:16 -0400 |
commit | ef8e8c1a5a9e15051e7aeed859526e7bbbfad550 (patch) | |
tree | 27d1b5b730b4171b07c41e36c0482801ac527ba2 /src | |
parent | grsecurity: --protocol.print (diff) | |
download | firejail-ef8e8c1a5a9e15051e7aeed859526e7bbbfad550.tar.gz firejail-ef8e8c1a5a9e15051e7aeed859526e7bbbfad550.tar.zst firejail-ef8e8c1a5a9e15051e7aeed859526e7bbbfad550.zip |
grsecurity: fs.print
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs_logger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/fs_logger.c b/src/firejail/fs_logger.c index 227a66cd7..30b0fe438 100644 --- a/src/firejail/fs_logger.c +++ b/src/firejail/fs_logger.c | |||
@@ -141,7 +141,9 @@ void fs_logger_print_log(pid_t pid) { | |||
141 | EUID_ASSERT(); | 141 | EUID_ASSERT(); |
142 | 142 | ||
143 | // if the pid is that of a firejail process, use the pid of the first child process | 143 | // if the pid is that of a firejail process, use the pid of the first child process |
144 | EUID_ROOT(); | ||
144 | char *comm = pid_proc_comm(pid); | 145 | char *comm = pid_proc_comm(pid); |
146 | EUID_USER(); | ||
145 | if (comm) { | 147 | if (comm) { |
146 | if (strcmp(comm, "firejail") == 0) { | 148 | if (strcmp(comm, "firejail") == 0) { |
147 | pid_t child; | 149 | pid_t child; |