[seccomp] epoll_wait(2) isn't available on every arch

This commit is contained in:
Omar Polo 2021-02-10 18:02:08 +00:00
parent aa37287565
commit 4c857c0afc
1 changed files with 3 additions and 0 deletions

View File

@ -150,7 +150,10 @@ sandbox()
/* these are used to serve the files. note how we
* allow openat but not open. */
#ifdef __NR_epoll_wait
/* epoll_wait(2) isn't present on aarch64, at least */
SC_ALLOW(epoll_wait),
#endif
SC_ALLOW(epoll_pwait),
SC_ALLOW(epoll_ctl),
SC_ALLOW(accept4),