]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: allow pselect(2) to work in SECCOMP
authorRoy Marples <roy@marples.name>
Sun, 31 Jan 2021 21:07:43 +0000 (21:07 +0000)
committerRoy Marples <roy@marples.name>
Sun, 31 Jan 2021 21:07:43 +0000 (21:07 +0000)
The default is ppoll(2), but we still allow epoll(7) so
allowing pselect(2) makes perfect sense and allows the user
to pick the polling mechanism they want.

src/privsep-linux.c

index 89c396abe7480a7237eb8e045c381cf2fcbdfea1..65193035da000aa500aefd5cf4a9a5a078ced9d8 100644 (file)
@@ -306,6 +306,9 @@ static struct sock_filter ps_seccomp_filter[] = {
 #ifdef __NR_ppoll_time64
        SECCOMP_ALLOW(__NR_ppoll_time64),
 #endif
+#ifdef __NR_pselect6
+       SECCOMP_ALLOW(__NR_pselect6),
+#endif
 #ifdef __NR_read
        SECCOMP_ALLOW(__NR_read),
 #endif