mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:25:07 -05:00
sys_linux: fix build with older kernel headers
The renameat2 system call was introduced in kernel version 3.15. Fix build against older headers.
This commit is contained in:
committed by
Miroslav Lichvar
parent
362d7c517d
commit
a2372b0c3a
@@ -547,7 +547,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
|
||||
SCMP_SYS(readlinkat),
|
||||
SCMP_SYS(rename),
|
||||
SCMP_SYS(renameat),
|
||||
#ifdef __NR_renameat2
|
||||
SCMP_SYS(renameat2),
|
||||
#endif
|
||||
SCMP_SYS(stat),
|
||||
SCMP_SYS(stat64),
|
||||
SCMP_SYS(statfs),
|
||||
|
||||
Reference in New Issue
Block a user