]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_linux: allow renameat2 in seccomp filter
authorVincent Blut <vincent.debian@free.fr>
Thu, 16 Jan 2020 16:04:35 +0000 (17:04 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 20 Jan 2020 11:26:54 +0000 (12:26 +0100)
This is needed for architectures that support neither rename() nor
renameat() (e.g. riscv64)

sys_linux.c

index fcf89c249418277e1e1d00f932d0a2556011e37b..d2dc908a72232391c080a957011a39bfaa9f164b 100644 (file)
@@ -493,8 +493,8 @@ SYS_Linux_EnableSystemCallFilter(int level)
     SCMP_SYS(chown32), SCMP_SYS(faccessat), SCMP_SYS(fchmodat), SCMP_SYS(fchownat),
     SCMP_SYS(fstat), SCMP_SYS(fstat64), SCMP_SYS(getdents), SCMP_SYS(getdents64),
     SCMP_SYS(lseek), SCMP_SYS(newfstatat), SCMP_SYS(rename), SCMP_SYS(renameat),
-    SCMP_SYS(stat), SCMP_SYS(stat64), SCMP_SYS(statfs), SCMP_SYS(statfs64),
-    SCMP_SYS(unlink), SCMP_SYS(unlinkat),
+    SCMP_SYS(renameat2), SCMP_SYS(stat), SCMP_SYS(stat64), SCMP_SYS(statfs),
+    SCMP_SYS(statfs64), SCMP_SYS(unlink), SCMP_SYS(unlinkat),
     /* Socket */
     SCMP_SYS(accept), SCMP_SYS(bind), SCMP_SYS(connect), SCMP_SYS(getsockname),
     SCMP_SYS(getsockopt), SCMP_SYS(recv), SCMP_SYS(recvfrom),