Skip to content

Commit

Permalink
Merge pull request universal-ctags#3958 from wuruilong01/master
Browse files Browse the repository at this point in the history
add support for loongarch
  • Loading branch information
masatake authored Mar 14, 2024
2 parents 6f5356c + 1673103 commit 7b085e7
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 7b085e7

Please sign in to comment.