about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-21 18:01:58 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-21 18:02:11 +0200
commit9e845de83f692e70f9877eacfb83cfed43e4b9d5 (patch)
tree7c35be36d6ef366aa81bd6ef20524b76b1fdffb0 /src
parentc6ed209619a31ad4022038e990b015f7849d5a6a (diff)
downloadchawan-9e845de83f692e70f9877eacfb83cfed43e4b9d5.tar.gz
sandbox: add sigreturn
seems to get called for signal handlers
Diffstat (limited to 'src')
-rw-r--r--src/utils/sandbox.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/sandbox.nim b/src/utils/sandbox.nim
index 0d0b5770..0e79ec06 100644
--- a/src/utils/sandbox.nim
+++ b/src/utils/sandbox.nim
@@ -96,9 +96,11 @@ elif defined(linux) and not disableSandbox:
       "pipe2", # for when pipe is implemented as pipe2
       "prlimit64", # for when getrlimit is implemented as prlimit64
       "read", "recv", "recvfrom", "recvmsg", # for reading from sockets
+      "rt_sigreturn", # for when sigreturn is implemented as rt_sigreturn
       "send", "sendmsg", "sendto", # for writing to sockets
       "set_robust_list", # glibc seems to need it for whatever reason
       "setrlimit", # glibc seems to use it for whatever reason
+      "sigreturn", # called by signal trampoline
       "timerfd_create", # used by Nim selectors
       "timerfd_gettime", # not actually used by Nim but may be in the future
       "timerfd_settime", # used by Nim selectors