summaryrefslogtreecommitdiffstats
path: root/src/firejail/checkcfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/checkcfg.c')
-rw-r--r--src/firejail/checkcfg.c32
1 files changed, 24 insertions, 8 deletions
diff --git a/src/firejail/checkcfg.c b/src/firejail/checkcfg.c
index 5bc859f8d..99266c575 100644
--- a/src/firejail/checkcfg.c
+++ b/src/firejail/checkcfg.c
@@ -241,6 +241,14 @@ int checkcfg(int val) {
241 else 241 else
242 goto errout; 242 goto errout;
243 } 243 }
244 else if (strncmp(ptr, "private-home ", 13) == 0) {
245 if (strcmp(ptr + 13, "yes") == 0)
246 cfg_val[CFG_PRIVATE_HOME] = 1;
247 else if (strcmp(ptr + 13, "no") == 0)
248 cfg_val[CFG_PRIVATE_HOME] = 0;
249 else
250 goto errout;
251 }
244 else if (strncmp(ptr, "chroot-desktop ", 15) == 0) { 252 else if (strncmp(ptr, "chroot-desktop ", 15) == 0) {
245 if (strcmp(ptr + 15, "yes") == 0) 253 if (strcmp(ptr + 15, "yes") == 0)
246 cfg_val[CFG_CHROOT_DESKTOP] = 1; 254 cfg_val[CFG_CHROOT_DESKTOP] = 1;
@@ -295,14 +303,6 @@ void print_compiletime_support(void) {
295#endif 303#endif
296 ); 304 );
297 305
298 printf("\t- overlayfs support is %s\n",
299#ifdef HAVE_OVERLAYFS
300 "enabled"
301#else
302 "disabled"
303#endif
304 );
305
306 printf("\t- file and directory whitelisting support is %s\n", 306 printf("\t- file and directory whitelisting support is %s\n",
307#ifdef HAVE_WHITELIST 307#ifdef HAVE_WHITELIST
308 "enabled" 308 "enabled"
@@ -332,6 +332,22 @@ void print_compiletime_support(void) {
332 printf("\t- networking features are available only to root user\n"); 332 printf("\t- networking features are available only to root user\n");
333#endif 333#endif
334 334
335 printf("\t- overlayfs support is %s\n",
336#ifdef HAVE_OVERLAYFS
337 "enabled"
338#else
339 "disabled"
340#endif
341 );
342
343 printf("\t- private-home support is %s\n",
344#ifdef HAVE_PRIVATE_HOME
345 "enabled"
346#else
347 "disabled"
348#endif
349 );
350
335 printf("\t- seccomp-bpf support is %s\n", 351 printf("\t- seccomp-bpf support is %s\n",
336#ifdef HAVE_SECCOMP 352#ifdef HAVE_SECCOMP
337 "enabled" 353 "enabled"