diff options
author | 2016-02-08 16:32:04 -0500 | |
---|---|---|
committer | 2016-02-08 16:32:04 -0500 | |
commit | 268d85137512bd348016780a5069e689739425e6 (patch) | |
tree | 537901516422b105b2b02080225ef5175b3b1375 /src | |
parent | fixed whitelist problem (diff) | |
download | firejail-268d85137512bd348016780a5069e689739425e6.tar.gz firejail-268d85137512bd348016780a5069e689739425e6.tar.zst firejail-268d85137512bd348016780a5069e689739425e6.zip |
whitelist fix
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs_whitelist.c | 6 |
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) |