aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/checkcfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/checkcfg.c')
-rw-r--r--src/firejail/checkcfg.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/firejail/checkcfg.c b/src/firejail/checkcfg.c
index 2aa7e7373..476ecbe10 100644
--- a/src/firejail/checkcfg.c
+++ b/src/firejail/checkcfg.c
@@ -74,8 +74,17 @@ int checkcfg(int val) {
74 if (!ptr) 74 if (!ptr)
75 continue; 75 continue;
76 76
77 // mount tmpfs on top of ~/.cache directory
78 if (strncmp(ptr, "cache-tmpfs ", 12) == 0) {
79 if (strcmp(ptr + 12, "yes") == 0)
80 cfg_val[CFG_CACHE_TMPFS] = 1;
81 else if (strcmp(ptr + 12, "no") == 0)
82 cfg_val[CFG_CACHE_TMPFS] = 0;
83 else
84 goto errout;
85 }
77 // file transfer 86 // file transfer
78 if (strncmp(ptr, "file-transfer ", 14) == 0) { 87 else if (strncmp(ptr, "file-transfer ", 14) == 0) {
79 if (strcmp(ptr + 14, "yes") == 0) 88 if (strcmp(ptr + 14, "yes") == 0)
80 cfg_val[CFG_FILE_TRANSFER] = 1; 89 cfg_val[CFG_FILE_TRANSFER] = 1;
81 else if (strcmp(ptr + 14, "no") == 0) 90 else if (strcmp(ptr + 14, "no") == 0)