about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-15 23:57:55 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-15 23:57:55 +0200
commitdd5f480ebecec6758991c226af208c79e2fe9cbc (patch)
treed777b35f764198f06269d128d450f29ca26676be /src/utils
parent4a394302f3197dfa48edb09bd0773aa94dc8188d (diff)
downloadchawan-dd5f480ebecec6758991c226af208c79e2fe9cbc.tar.gz
sandbox: always allow epoll_pwait
looks like it's also necessary for musl
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/sandbox.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/sandbox.nim b/src/utils/sandbox.nim
index 6f63139f..9e0498a5 100644
--- a/src/utils/sandbox.nim
+++ b/src/utils/sandbox.nim
@@ -89,7 +89,6 @@ elif SandboxMode == stLibSeccomp:
       # Things needed for bionic libc. Tested with Termux.
       const androidAllowList = [
         cstring"rt_sigprocmask",
-        "epoll_pwait",
         "madvise"
       ]
       for it in androidAllowList:
@@ -177,6 +176,7 @@ elif SandboxMode == stLibSeccomp:
       "close", # duh
       "connect", # for outgoing requests to loader
       "epoll_create", "epoll_create1", "epoll_ctl", "epoll_wait", # epoll stuff
+      "epoll_pwait", # for bionic & musl
       "eventfd", # used by Nim selectors
       "exit_group", # for quit
       "fork", # for when fork is really fork