Skip to content

Commit

Permalink
Merge pull request #3125 from athos-ribeiro/armhf-statx
Browse files Browse the repository at this point in the history
Add statx to seccomp rules
  • Loading branch information
masatake authored Aug 19, 2021
2 parents e10b136 + 142a1d7 commit 24aef07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/seccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ int installSyscallFilter (void)
#ifdef __SNR_newfstatat
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (newfstatat), 0);
#endif
#ifdef __SNR_statx
// armhf fallback
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (statx), 0);
#endif

// seems unnecessary, but this comes from
// main/parse.c:2764 : tagFilePosition (&tagfpos);
Expand Down

0 comments on commit 24aef07

Please sign in to comment.