From 86d54bba35dc2fbd6cab0bbe58a0ee3a02cd9bf7 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 1 Feb 2016 09:41:04 -0500 Subject: 0.9.38 testing --- src/firejail/sandbox.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 0ad8e2f65..85f65b610 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c @@ -349,7 +349,9 @@ int sandbox(void* sandbox_arg) { //**************************** // configure filesystem //**************************** +#ifdef HAVE_SECCOMP int enforce_seccomp = 0; +#endif #ifdef HAVE_CHROOT if (cfg.chrootdir) { fs_chroot(cfg.chrootdir); @@ -361,7 +363,9 @@ int sandbox(void* sandbox_arg) { // force default seccomp inside the chroot, no keep or drop list // the list build on top of the default drop list is kept intact arg_seccomp = 1; +#ifdef HAVE_SECCOMP enforce_seccomp = 1; +#endif if (cfg.seccomp_list_drop) { free(cfg.seccomp_list_drop); cfg.seccomp_list_drop = NULL; -- cgit v1.2.3-54-g00ecf