Skip to content

Commit

Permalink
Merge pull request #1614 from Inform-Software/sandbox-futex
Browse files Browse the repository at this point in the history
Allow futex syscall in sandbox, fixes #1612.
  • Loading branch information
masatake committed Dec 12, 2017
2 parents 248cffc + f384fde commit ec924da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/seccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ int installSyscallFilter (void)
// main/parse.c:2764 : tagFilePosition (&tagfpos);
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (lseek), 0);

// libxml2 uses pthread_once, which in turn uses a futex
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (futex), 0);

verbose ("Entering sandbox\n");
int err = seccomp_load (ctx);
if (err < 0)
Expand Down

0 comments on commit ec924da

Please sign in to comment.