diff options
-rw-r--r-- | src/firejail/sandbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index ecc365895..5bfa06ade 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #ifdef HAVE_APPARMOR | 43 | #ifdef HAVE_APPARMOR |
44 | #include <sys/apparmor.h> | 44 | #include <sys/apparmor.h> |
45 | #endif | 45 | #endif |
46 | 46 | #include <syscall.h> | |
47 | 47 | ||
48 | static int monitored_pid = 0; | 48 | static int monitored_pid = 0; |
49 | static void sandbox_handler(int sig){ | 49 | static void sandbox_handler(int sig){ |
@@ -907,7 +907,7 @@ int sandbox(void* sandbox_arg) { | |||
907 | // set seccomp //todo: push it down after drop_privs and/or configuring noroot | 907 | // set seccomp //todo: push it down after drop_privs and/or configuring noroot |
908 | #ifdef HAVE_SECCOMP | 908 | #ifdef HAVE_SECCOMP |
909 | // install protocol filter | 909 | // install protocol filter |
910 | #ifdef SYS_SOCKET | 910 | #ifdef SYS_socket |
911 | if (cfg.protocol) { | 911 | if (cfg.protocol) { |
912 | if (arg_debug) | 912 | if (arg_debug) |
913 | printf("Install protocol filter: %s\n", cfg.protocol); | 913 | printf("Install protocol filter: %s\n", cfg.protocol); |