]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/seccomp: add sync_file_range2
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Aug 2019 06:51:39 +0000 (08:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Aug 2019 09:10:40 +0000 (11:10 +0200)
Some architectures need the arguments to be reordered because of alignment
issues. Otherwise, it's the same as sync_file_range.

src/shared/seccomp-util.c

index 4e605523d9685665272dfc8936c78518fb01a960..acfe4352839799140718fd74d5df863e53779856 100644 (file)
@@ -760,6 +760,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "msync\0"
                 "sync\0"
                 "sync_file_range\0"
+                "sync_file_range2\0"
                 "syncfs\0"
         },
         [SYSCALL_FILTER_SET_SYSTEM_SERVICE] = {