diff options
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r-- | src/firejail/fs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index c9158ebd5..88f92ad74 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -704,7 +704,8 @@ void fs_basic_fs(void) { | |||
704 | 704 | ||
705 | // update /var directory in order to support multiple sandboxes running on the same root directory | 705 | // update /var directory in order to support multiple sandboxes running on the same root directory |
706 | fs_var_lock(); | 706 | fs_var_lock(); |
707 | fs_var_tmp(); | 707 | if (!arg_keep_var_tmp) |
708 | fs_var_tmp(); | ||
708 | if (!arg_writable_var_log) | 709 | if (!arg_writable_var_log) |
709 | fs_var_log(); | 710 | fs_var_log(); |
710 | else | 711 | else |
@@ -1015,7 +1016,8 @@ void fs_overlayfs(void) { | |||
1015 | // if (!arg_private_dev) | 1016 | // if (!arg_private_dev) |
1016 | // fs_dev_shm(); | 1017 | // fs_dev_shm(); |
1017 | fs_var_lock(); | 1018 | fs_var_lock(); |
1018 | fs_var_tmp(); | 1019 | if (!arg_keep_var_tmp) |
1020 | fs_var_tmp(); | ||
1019 | if (!arg_writable_var_log) | 1021 | if (!arg_writable_var_log) |
1020 | fs_var_log(); | 1022 | fs_var_log(); |
1021 | else | 1023 | else |
@@ -1258,7 +1260,8 @@ void fs_chroot(const char *rootdir) { | |||
1258 | // if (!arg_private_dev) | 1260 | // if (!arg_private_dev) |
1259 | // fs_dev_shm(); | 1261 | // fs_dev_shm(); |
1260 | fs_var_lock(); | 1262 | fs_var_lock(); |
1261 | fs_var_tmp(); | 1263 | if (!arg_keep_var_tmp) |
1264 | fs_var_tmp(); | ||
1262 | if (!arg_writable_var_log) | 1265 | if (!arg_writable_var_log) |
1263 | fs_var_log(); | 1266 | fs_var_log(); |
1264 | else | 1267 | else |