From b7347d931bcd089763687612f6dcc37ba189cfb3 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 1 Mar 2021 10:13:19 +0100 Subject: [PATCH] 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. --- sys_linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys_linux.c b/sys_linux.c index 058cec3..06ec45f 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -555,7 +555,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context) SCMP_SYS(stat64), SCMP_SYS(statfs), SCMP_SYS(statfs64), +#ifdef __NR_statx SCMP_SYS(statx), +#endif SCMP_SYS(unlink), SCMP_SYS(unlinkat),