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:
Baruch Siach 2021-01-28 15:11:31 +02:00 committed by Miroslav Lichvar
parent 362d7c517d
commit a2372b0c3a

View file

@ -547,7 +547,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
SCMP_SYS(readlinkat), SCMP_SYS(readlinkat),
SCMP_SYS(rename), SCMP_SYS(rename),
SCMP_SYS(renameat), SCMP_SYS(renameat),
#ifdef __NR_renameat2
SCMP_SYS(renameat2), SCMP_SYS(renameat2),
#endif
SCMP_SYS(stat), SCMP_SYS(stat),
SCMP_SYS(stat64), SCMP_SYS(stat64),
SCMP_SYS(statfs), SCMP_SYS(statfs),