aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/fs_whitelist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c
index 0f2d6a089..99c2e855c 100644
--- a/src/firejail/fs_whitelist.c
+++ b/src/firejail/fs_whitelist.c
@@ -359,8 +359,10 @@ void fs_whitelist(void) {
359 *entry->data = '\0'; 359 *entry->data = '\0';
360 360
361 // if 1 the file was not found; mount an empty directory 361 // if 1 the file was not found; mount an empty directory
362 if (strncmp(new_name, cfg.homedir, strlen(cfg.homedir)) == 0) 362 if (strncmp(new_name, cfg.homedir, strlen(cfg.homedir)) == 0) {
363 home_dir = 1; 363 if(!arg_private)
364 home_dir = 1;
365 }
364 else if (strncmp(new_name, "/tmp/", 5) == 0) 366 else if (strncmp(new_name, "/tmp/", 5) == 0)
365 tmp_dir = 1; 367 tmp_dir = 1;
366 else if (strncmp(new_name, "/media/", 7) == 0) 368 else if (strncmp(new_name, "/media/", 7) == 0)