allow restart _syscall

This commit is contained in:
mrbesen 2021-08-10 15:21:08 +02:00
parent 72adddcff6
commit d5ee38a553
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ static bool enableSecurity() {
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(pwritev2), 0);
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(preadv2), 0);
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(restart_syscall), 0);
//apply seccomp
int err = seccomp_load(scmp);
if(err != 0) {