sys_linux: check if statx syscall is defined

statx seems to be missing in older kernel and libseccomp headers, still
used on some supported systems.
This commit is contained in:
Miroslav Lichvar 2021-03-01 10:13:19 +01:00
parent 4f878ba144
commit b7347d931b

View file

@ -555,7 +555,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
SCMP_SYS(stat64), SCMP_SYS(stat64),
SCMP_SYS(statfs), SCMP_SYS(statfs),
SCMP_SYS(statfs64), SCMP_SYS(statfs64),
#ifdef __NR_statx
SCMP_SYS(statx), SCMP_SYS(statx),
#endif
SCMP_SYS(unlink), SCMP_SYS(unlink),
SCMP_SYS(unlinkat), SCMP_SYS(unlinkat),