From 1c6c0860c5b7a46ae11d4582b8eab65214d3ff9b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 31 Jan 2021 21:07:43 +0000 Subject: [PATCH] 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. --- src/privsep-linux.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3