aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/sandbox.c')
-rw-r--r--src/firejail/sandbox.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index a1400db34..7922da9b9 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -833,9 +833,14 @@ int sandbox(void* sandbox_arg) {
833 } 833 }
834 } 834 }
835 835
836 // private cache directory by default 836 if (arg_private_cache) {
837 if (checkcfg(CFG_PRIVATE_CACHE)) 837 if (cfg.chrootdir)
838 fs_private_cache(); 838 fwarning("private-cache feature is disabled in chroot\n");
839 else if (arg_overlay)
840 fwarning("private-cache feature is disabled in overlay\n");
841 else
842 fs_private_cache();
843 }
839 844
840 if (arg_private_tmp) { 845 if (arg_private_tmp) {
841 // private-tmp is implemented as a whitelist 846 // private-tmp is implemented as a whitelist