* lib-src/seccomp-filter.c (main): Use faccessat2 only if defined.
This commit is contained in:
parent
3bb01a499b
commit
0090318c61
1 changed files with 2 additions and 0 deletions
|
@ -240,7 +240,9 @@ main (int argc, char **argv)
|
|||
should be further restricted using mount namespaces. */
|
||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (access));
|
||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat));
|
||||
#ifdef __NR_faccessat2
|
||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
|
||||
#endif
|
||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (stat));
|
||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (stat64));
|
||||
RULE (SCMP_ACT_ALLOW, SCMP_SYS (lstat));
|
||||
|
|
Loading…
Add table
Reference in a new issue