* lib-src/seccomp-filter.c (main): Use faccessat2 only if defined.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user