From 9e845de83f692e70f9877eacfb83cfed43e4b9d5 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 21 May 2024 18:01:58 +0200 Subject: sandbox: add sigreturn seems to get called for signal handlers --- src/utils/sandbox.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit 1.4.1-2-gfad0