Skip to content

Commit

Permalink
add support for loongarch
Browse files Browse the repository at this point in the history
  • Loading branch information
wuruilong01 committed Mar 14, 2024
1 parent 5e26443 commit 1673103
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/seccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ int installSyscallFilter (void)
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (exit_group), 0);

// The bowels of stdio want to know the size of a file, even for stdout.
#if (defined(__SNR_fstat) && __SNR_fstat)
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (fstat), 0);
#endif
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (fstat64), 0);
#ifdef __SNR_newfstatat
seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS (newfstatat), 0);
Expand Down

0 comments on commit 1673103

Please sign in to comment.