]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Avoid "unconfined" seccomp warnings
authorRoy Marples <roy@marples.name>
Sat, 19 Sep 2020 23:53:47 +0000 (00:53 +0100)
committerRoy Marples <roy@marples.name>
Sat, 19 Sep 2020 23:53:47 +0000 (00:53 +0100)
Unsure why these are needed atm....

src/privsep-linux.c

index 837ad281b4076c01a879ad31620522edee4710f6..ab844365d7e5649a7490654ac1e1f00574351c55 100644 (file)
@@ -243,6 +243,22 @@ static struct sock_filter ps_seccomp_filter[] = {
 #ifdef __NR_uname
        SECCOMP_ALLOW(__NR_uname),
 #endif
+
+       /* Avoid unconfined dmesg warnings.
+        * XXX Why do we need these? */
+#ifdef __NR_exit_group
+       SECCOMP_ALLOW(__NR_exit_group),
+#endif
+#ifdef __NR_ftruncate
+       SECCOMP_ALLOW(__NR_ftruncate),
+#endif
+#ifdef __NR_munmap
+       SECCOMP_ALLOW(__NR_munmap),
+#endif
+#ifdef __NR_unlink
+       SECCOMP_ALLOW(__NR_unlink),
+#endif
+
        /* Deny everything else */
        BPF_STMT(BPF_RET + BPF_K, SECCOMP_FILTER_FAIL),
 };