diff options
author | 2016-04-06 10:41:11 -0400 | |
---|---|---|
committer | 2016-04-06 10:41:11 -0400 | |
commit | 98c11500d43555196490fd8fc5f063174d118cf8 (patch) | |
tree | ce05a8fa197f1f27763e8e9f5700393bd50fd93e /src | |
parent | grsecurity: --dns.print (diff) | |
download | firejail-98c11500d43555196490fd8fc5f063174d118cf8.tar.gz firejail-98c11500d43555196490fd8fc5f063174d118cf8.tar.zst firejail-98c11500d43555196490fd8fc5f063174d118cf8.zip |
grsecurity: --ls, --get
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/ls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/ls.c b/src/firejail/ls.c index 6bfa51afc..444b5b69e 100644 --- a/src/firejail/ls.c +++ b/src/firejail/ls.c | |||
@@ -205,7 +205,9 @@ void sandboxfs(int op, pid_t pid, const char *path) { | |||
205 | EUID_ASSERT(); | 205 | EUID_ASSERT(); |
206 | 206 | ||
207 | // if the pid is that of a firejail process, use the pid of the first child process | 207 | // if the pid is that of a firejail process, use the pid of the first child process |
208 | EUID_ROOT(); | ||
208 | char *comm = pid_proc_comm(pid); | 209 | char *comm = pid_proc_comm(pid); |
210 | EUID_USER(); | ||
209 | if (comm) { | 211 | if (comm) { |
210 | if (strcmp(comm, "firejail") == 0) { | 212 | if (strcmp(comm, "firejail") == 0) { |
211 | pid_t child; | 213 | pid_t child; |