aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-04-10 17:30:49 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2021-04-18 12:05:12 +0200
commit1a0afbd6f21fa44a57ce643dcc99dad654231855 (patch)
tree1a69c9b82cc828740f772390d83000b11abf7a4f /package/network
parent36ee555c5fe0dcb77f6bcec72d8be223ba897b48 (diff)
downloadupstream-1a0afbd6f21fa44a57ce643dcc99dad654231855.tar.gz
upstream-1a0afbd6f21fa44a57ce643dcc99dad654231855.tar.bz2
upstream-1a0afbd6f21fa44a57ce643dcc99dad654231855.zip
umdns: add missing syscalls to seccomp filter
Looks like 'openat', 'pipe2' and 'ppoll' are now needed, possibly due to changes on libraries used by umdns now using slightly different calls. Found using /etc/init.d/umdns trace now use umdns, ie. cover all ubus call etc., then /etc/init.d/umdns stop find list of syscalls traced in /tmp/umdns.*.json Fixes: FS#3355 ("UMDNS: does not start on master with seccomp") Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit 00a85a163405fdf9bee4d8c3f0ee87ca9ed259d6)
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/umdns/files/umdns.json57
1 files changed, 30 insertions, 27 deletions
diff --git a/package/network/services/umdns/files/umdns.json b/package/network/services/umdns/files/umdns.json
index 4d5ed886d0..5533b7c512 100644
--- a/package/network/services/umdns/files/umdns.json
+++ b/package/network/services/umdns/files/umdns.json
@@ -3,41 +3,44 @@
"syscalls": [
{
"names": [
- "read",
- "write",
- "writev",
- "open",
- "close",
- "time",
- "brk",
- "ioctl",
- "uname",
"bind",
+ "brk",
+ "clock_gettime",
+ "close",
"connect",
- "getsockname",
- "recvmsg",
- "recvfrom",
- "sendmsg",
- "sendto",
- "setsockopt",
- "socket",
- "pipe",
- "poll",
- "fcntl64",
- "fstat",
"epoll_create",
"epoll_create1",
"epoll_ctl",
- "epoll_wait",
"epoll_pwait",
- "rt_sigaction",
- "sigreturn",
- "rt_sigreturn",
- "rt_sigprocmask",
- "exit_group",
+ "epoll_wait",
"exit",
+ "exit_group",
"fcntl",
- "clock_gettime"
+ "fcntl64",
+ "fstat",
+ "getsockname",
+ "ioctl",
+ "open",
+ "openat",
+ "pipe",
+ "pipe2",
+ "poll",
+ "ppoll",
+ "read",
+ "recvfrom",
+ "recvmsg",
+ "rt_sigaction",
+ "rt_sigprocmask",
+ "rt_sigreturn",
+ "sendmsg",
+ "sendto",
+ "setsockopt",
+ "sigreturn",
+ "socket",
+ "time",
+ "uname",
+ "write",
+ "writev"
],
"action": "SCMP_ACT_ALLOW"
}