From: Miroslav Lichvar Date: Thu, 6 May 2021 13:41:52 +0000 (+0200) Subject: sys_linux: check if execveat is defined X-Git-Tag: 4.1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9cbc4803d338dd2745157d2041a5b44c3316320;p=thirdparty%2Fchrony.git sys_linux: check if execveat is defined The syscall is missing on older systems. --- diff --git a/sys_linux.c b/sys_linux.c index 9f317102..50c08431 100644 --- a/sys_linux.c +++ b/sys_linux.c @@ -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),