aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-01-22 15:48:25 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2022-01-22 15:48:25 -0500
commitac83117d02c01f144f73ccb407c9697ec6510778 (patch)
tree6ae279612fc1d0e896f9012b4f2df96b5a893fd2
parentman: mention that private-bin and private-etc are cumulative (diff)
downloadfirejail-ac83117d02c01f144f73ccb407c9697ec6510778.tar.gz
firejail-ac83117d02c01f144f73ccb407c9697ec6510778.tar.zst
firejail-ac83117d02c01f144f73ccb407c9697ec6510778.zip
netlink - fixing the fix
-rw-r--r--etc/profile-m-z/supertuxkart.profile2
-rw-r--r--src/fseccomp/protocol.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/etc/profile-m-z/supertuxkart.profile b/etc/profile-m-z/supertuxkart.profile
index 473472251..862f8f336 100644
--- a/etc/profile-m-z/supertuxkart.profile
+++ b/etc/profile-m-z/supertuxkart.profile
@@ -43,7 +43,7 @@ noroot
43notv 43notv
44nou2f 44nou2f
45novideo 45novideo
46protocol unix,inet,inet6,bluetooth 46protocol unix,inet,inet6,bluetooth,netlink
47seccomp 47seccomp
48seccomp.block-secondary 48seccomp.block-secondary
49shell none 49shell none
diff --git a/src/fseccomp/protocol.c b/src/fseccomp/protocol.c
index b072f6ad6..25742c173 100644
--- a/src/fseccomp/protocol.c
+++ b/src/fseccomp/protocol.c
@@ -58,7 +58,6 @@ static char *protocol[] = {
58 "netlink", 58 "netlink",
59 "packet", 59 "packet",
60 "bluetooth", 60 "bluetooth",
61 "netlink",
62 NULL 61 NULL
63}; 62};
64 63
@@ -69,8 +68,7 @@ static struct sock_filter protocol_filter_command[] = {
69 WHITELIST(AF_INET6), 68 WHITELIST(AF_INET6),
70 WHITELIST(AF_NETLINK), 69 WHITELIST(AF_NETLINK),
71 WHITELIST(AF_PACKET), 70 WHITELIST(AF_PACKET),
72 WHITELIST(AF_BLUETOOTH), 71 WHITELIST(AF_BLUETOOTH)
73 WHITELIST(AF_NETLINK)
74}; 72};
75#endif 73#endif
76// Note: protocol[] and protocol_filter_command are synchronized 74// Note: protocol[] and protocol_filter_command are synchronized