aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/profile.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2018-09-10 22:54:23 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2018-09-10 22:54:23 +0200
commit58d9899f3165bfc71c7a55a41d361e161114853d (patch)
tree7245927309ad3363155a46651c4e890ba367ffa2 /src/firejail/profile.c
parentsmall rlimits adjustment (diff)
downloadfirejail-58d9899f3165bfc71c7a55a41d361e161114853d.tar.gz
firejail-58d9899f3165bfc71c7a55a41d361e161114853d.tar.zst
firejail-58d9899f3165bfc71c7a55a41d361e161114853d.zip
add switch to disable/enable private-cache
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r--src/firejail/profile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index bc5915d46..db58d2e0b 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -225,7 +225,10 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
225 return 0; 225 return 0;
226 } 226 }
227 else if (strcmp(ptr, "private-cache") == 0) { 227 else if (strcmp(ptr, "private-cache") == 0) {
228 arg_private_cache = 1; 228 if (checkcfg(CFG_PRIVATE_CACHE))
229 arg_private_cache = 1;
230 else
231 warning_feature_disabled("private-cache");
229 return 0; 232 return 0;
230 } 233 }
231 else if (strcmp(ptr, "private-dev") == 0) { 234 else if (strcmp(ptr, "private-dev") == 0) {