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:
parent
4f878ba144
commit
b7347d931b
1 changed files with 2 additions and 0 deletions
|
@ -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),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue