aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-17 17:30:45 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-17 17:30:45 +0200
commit6751b1a1aef638d6a831b57b32199fb60dc5b142 (patch)
tree268001484d50520b2df39d45638a70b57a229eb5 /src/utils
parentc20166207867f536201ae7148608b9db202a2739 (diff)
downloadchawan-6751b1a1aef638d6a831b57b32199fb60dc5b142.tar.gz
sandbox: do not ask for signal permissions
On a second thought, no timeouts for name resolution is fine - and even if it weren't, it's better implemented in the loader.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/sandbox.nim3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/utils/sandbox.nim b/src/utils/sandbox.nim
index 7c886807..cb74c1b7 100644
--- a/src/utils/sandbox.nim
+++ b/src/utils/sandbox.nim
@@ -232,9 +232,6 @@ elif SandboxMode == stLibSeccomp:
"restart_syscall", # for resuming poll on SIGCONT
"getpid", # used indirectly by OpenSSL EVP_RAND_CTX_new (through drbg)
"futex", # bionic libc & WSL both need it
- # we either have to use CURLOPT_NOSIGNAL or allow signals.
- # do the latter, otherwise the default name resolver will never time out.
- "signal", "sigaction", "rt_sigaction",
]
for it in allowList:
doAssert seccomp_rule_add(ctx, SCMP_ACT_ALLOW,