aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-10 18:02:08 +0000
committerOmar Polo <op@omarpolo.com>2021-02-10 18:02:08 +0000
commit4c857c0afcb7d76cb03323ba7d0dfef60b27589f (patch)
treeb9a585ce33c46093fcc1066866fac8d4c692e0eb /sandbox.c
parentaa37287565c6eb7ac3da814b334ab61a5b567a22 (diff)
[seccomp] epoll_wait(2) isn't available on every arch
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox.c b/sandbox.c
index 6916c61..d71ac08 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -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),