mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
sys_linux: check if execveat is defined
The syscall is missing on older systems.
This commit is contained in:
@@ -616,7 +616,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
|
|||||||
|
|
||||||
const int denied_any[] = {
|
const int denied_any[] = {
|
||||||
SCMP_SYS(execve),
|
SCMP_SYS(execve),
|
||||||
|
#ifdef __NR_execveat
|
||||||
SCMP_SYS(execveat),
|
SCMP_SYS(execveat),
|
||||||
|
#endif
|
||||||
SCMP_SYS(fork),
|
SCMP_SYS(fork),
|
||||||
SCMP_SYS(ptrace),
|
SCMP_SYS(ptrace),
|
||||||
SCMP_SYS(vfork),
|
SCMP_SYS(vfork),
|
||||||
|
|||||||
Reference in New Issue
Block a user