allow clone & socketpair

This commit is contained in:
mrbesen 2021-08-20 17:58:24 +02:00
parent e0f86da8d6
commit d8addeac3c
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ static bool enableSecurity() {
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(restart_syscall), 0);
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(futex), 0);
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(socketpair), 0); // what?
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(clone), 0); // curl wants to spawn threads
//apply seccomp
int err = seccomp_load(scmp);