From: Roy Marples Date: Sun, 31 Jan 2021 21:07:43 +0000 (+0000) Subject: Linux: allow pselect(2) to work in SECCOMP X-Git-Tag: v10.0.0~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c6c0860c5b7a46ae11d4582b8eab65214d3ff9b;p=thirdparty%2Fdhcpcd.git Linux: allow pselect(2) to work in SECCOMP 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. --- diff --git a/src/privsep-linux.c b/src/privsep-linux.c index 89c396ab..65193035 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -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