]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_linux: check if execveat is defined
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 6 May 2021 13:41:52 +0000 (15:41 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 6 May 2021 13:43:04 +0000 (15:43 +0200)
The syscall is missing on older systems.

sys_linux.c

index 9f3171020013723e45460e1879be2264fbbc413f..50c084313bef715f278d319c16b77942ec4e9463 100644 (file)
@@ -616,7 +616,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
 
   const int denied_any[] = {
     SCMP_SYS(execve),
+#ifdef __NR_execveat
     SCMP_SYS(execveat),
+#endif
     SCMP_SYS(fork),
     SCMP_SYS(ptrace),
     SCMP_SYS(vfork),