diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/ls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/firejail/ls.c b/src/firejail/ls.c index 495aaf8e2..593977e0e 100644 --- a/src/firejail/ls.c +++ b/src/firejail/ls.c | |||
@@ -257,7 +257,9 @@ void sandboxfs(int op, pid_t pid, const char *path) { | |||
257 | if (chdir("/") < 0) | 257 | if (chdir("/") < 0) |
258 | errExit("chdir"); | 258 | errExit("chdir"); |
259 | 259 | ||
260 | // access chek is performed with the real UID | 260 | // drop privileges |
261 | drop_privs(0); | ||
262 | |||
261 | if (access(fname, R_OK) == -1) { | 263 | if (access(fname, R_OK) == -1) { |
262 | fprintf(stderr, "Error: Cannot access %s\n", fname); | 264 | fprintf(stderr, "Error: Cannot access %s\n", fname); |
263 | exit(1); | 265 | exit(1); |