diff options
author | netblue30 <netblue30@yahoo.com> | 2017-05-13 08:18:47 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-05-13 08:18:47 -0400 |
commit | cb8b64f75f6ae44dd5c0c125868b33f088f80fc4 (patch) | |
tree | 6f26f45db7d0ca5091c14341d7b3edbc9bee0fa1 /src | |
parent | compile fix (diff) | |
download | firejail-cb8b64f75f6ae44dd5c0c125868b33f088f80fc4.tar.gz firejail-cb8b64f75f6ae44dd5c0c125868b33f088f80fc4.tar.zst firejail-cb8b64f75f6ae44dd5c0c125868b33f088f80fc4.zip |
--protocol fix
Diffstat (limited to 'src')
-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); |