umdns: add missing syscall to seccomp filter
authorChen Minqiang <ptpt52@gmail.com>
Sat, 30 Jul 2022 21:04:58 +0000 (05:04 +0800)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 6 Aug 2022 20:25:07 +0000 (22:25 +0200)
There is some syscall missing:
'getdents64'
'getrandom'
'statx'
'newfstatat'

Found with:
'mkdir /etc/umdns; ln -s /tmp/1.json /etc/umdns/; utrace /usr/sbin/umdns'

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
(cherry picked from commit 31cca8f8d3f6218965812c46de35ba30c4ba83ab)

package/network/services/umdns/files/umdns.json

index 92f1a17b52098ff18cc600052e9a3a0df9ae88ee..554b616633075ea5f6537b62fe8afc986d83a353 100644 (file)
                                "fcntl",
                                "fcntl64",
                                "fstat",
+                               "getdents64",
                                "getsockname",
+                               "getrandom",
                                "ioctl",
                                "madvise",
                                "mmap",
                                "mmap2",
                                "munmap",
+                               "newfstatat",
                                "open",
                                "openat",
                                "pipe",
@@ -42,6 +45,7 @@
                                "setsockopt",
                                "sigreturn",
                                "socket",
+                               "statx",
                                "time",
                                "uname",
                                "write",