summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2021-01-31 21:07:43 +0000
committerRoy Marples <roy@marples.name>2021-01-31 21:07:43 +0000
commit1c6c0860c5b7a46ae11d4582b8eab65214d3ff9b (patch)
tree5a3113f62dc881a4d97c88f562220890a1ce59e6
parente3a40586dbb584774d0a17bc277e69cb500cfa38 (diff)
downloaddhcpcd-1c6c0860c5b7a46ae11d4582b8eab65214d3ff9b.tar.xz
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.
-rw-r--r--src/privsep-linux.c3
1 files changed, 3 insertions, 0 deletions
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