mmap (string)

This commit is contained in:
mrbesen 2021-08-29 11:49:42 +02:00
parent d8addeac3c
commit 4baff22dfa
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,8 @@ static bool enableSecurity() {
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
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(mmap), 0);
seccomp_rule_add(scmp, SCMP_ACT_ALLOW, SCMP_SYS(munmap), 0);
//apply seccomp
int err = seccomp_load(scmp);
@ -155,3 +157,4 @@ int main(int argc, const char** argv) {
Log::stop();
return 0;
}