[openwrt/openwrt] umdns: add missing syscall to seccomp filter

LEDE Commits lede-commits at lists.infradead.org
Fri Aug 5 05:11:24 PDT 2022


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/31cca8f8d3f6218965812c46de35ba30c4ba83ab

commit 31cca8f8d3f6218965812c46de35ba30c4ba83ab
Author: Chen Minqiang <ptpt52 at gmail.com>
AuthorDate: Sun Jul 31 05:04:58 2022 +0800

    umdns: add missing syscall to seccomp filter
    
    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 at gmail.com>
---
 package/network/services/umdns/files/umdns.json | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/network/services/umdns/files/umdns.json b/package/network/services/umdns/files/umdns.json
index 92f1a17b52..554b616633 100644
--- a/package/network/services/umdns/files/umdns.json
+++ b/package/network/services/umdns/files/umdns.json
@@ -19,12 +19,15 @@
 				"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",




More information about the lede-commits mailing list