]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_linux: check if statx syscall is defined
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 1 Mar 2021 09:13:19 +0000 (10:13 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 3 Mar 2021 09:04:07 +0000 (10:04 +0100)
statx seems to be missing in older kernel and libseccomp headers, still
used on some supported systems.

sys_linux.c

index 058cec37843fe0c704388c660356c596c606055a..06ec45f9fd4b1a25c8226d80382a64dd50c0b57f 100644 (file)
@@ -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),