aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-04-10 20:25:28 -0400
committerLibravatar netblue30 <netblue30@protonmail.com>2022-04-10 20:25:28 -0400
commitf29f815c003adb55ac88b58b541e66ac38efe63b (patch)
tree20bed63c06e1de00b66d62ad14eef172874d988e
parentMerge pull request #5092 from smitsohu/vlc (diff)
downloadfirejail-f29f815c003adb55ac88b58b541e66ac38efe63b.tar.gz
firejail-f29f815c003adb55ac88b58b541e66ac38efe63b.tar.zst
firejail-f29f815c003adb55ac88b58b541e66ac38efe63b.zip
small fixes
-rw-r--r--etc/profile-m-z/server.profile12
-rw-r--r--src/fnettrace/main.c2
-rw-r--r--src/include/seccomp.h3
3 files changed, 14 insertions, 3 deletions
diff --git a/etc/profile-m-z/server.profile b/etc/profile-m-z/server.profile
index 9e40796a6..f1cf0ca59 100644
--- a/etc/profile-m-z/server.profile
+++ b/etc/profile-m-z/server.profile
@@ -33,6 +33,9 @@ include globals.local
33 33
34noblacklist /sbin 34noblacklist /sbin
35noblacklist /usr/sbin 35noblacklist /usr/sbin
36noblacklist /etc/init.d
37noblacklist /var/lib/apt
38noblacklist /var/cache/apt
36# noblacklist /var/opt 39# noblacklist /var/opt
37 40
38blacklist /tmp/.X11-unix 41blacklist /tmp/.X11-unix
@@ -50,7 +53,9 @@ include disable-xdg.inc
50# include whitelist-usr-share-common.inc 53# include whitelist-usr-share-common.inc
51# include whitelist-var-common.inc 54# include whitelist-var-common.inc
52 55
53apparmor 56# people use to install servers all over the place!
57# apparmor runs executable only from default system locations
58# apparmor
54caps 59caps
55# ipc-namespace 60# ipc-namespace
56machine-id 61machine-id
@@ -59,15 +64,16 @@ no3d
59nodvd 64nodvd
60# nogroups 65# nogroups
61noinput 66noinput
62# nonewprivs 67nonewprivs
63# noroot 68# noroot
64nosound 69nosound
65notv 70notv
66nou2f 71nou2f
67novideo 72novideo
68# protocol unix,inet,inet6,netlink 73protocol unix,inet,inet6,netlink,packet
69seccomp 74seccomp
70# shell none 75# shell none
76tab # allow tab completion
71 77
72disable-mnt 78disable-mnt
73private 79private
diff --git a/src/fnettrace/main.c b/src/fnettrace/main.c
index fd3cd5016..634d408a3 100644
--- a/src/fnettrace/main.c
+++ b/src/fnettrace/main.c
@@ -233,6 +233,8 @@ static inline const char *common_port(uint16_t port) {
233 return "(telnet)"; 233 return "(telnet)";
234 else if (port == 25) 234 else if (port == 25)
235 return "(SMTP)"; 235 return "(SMTP)";
236 else if (port == 43)
237 return "(WHOIS)";
236 else if (port == 67) 238 else if (port == 67)
237 return "(DHCP)"; 239 return "(DHCP)";
238 else if (port == 69) 240 else if (port == 69)
diff --git a/src/include/seccomp.h b/src/include/seccomp.h
index 9dbe25bfa..503bf54ac 100644
--- a/src/include/seccomp.h
+++ b/src/include/seccomp.h
@@ -250,6 +250,9 @@
250#define RETURN_ALLOW \ 250#define RETURN_ALLOW \
251 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW) 251 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
252 252
253#define RETURN_KILL \
254 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL)
255
253#define RETURN_ERRNO(nr) \ 256#define RETURN_ERRNO(nr) \
254 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ERRNO | nr) 257 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ERRNO | nr)
255 258