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)
committerMichael Biebl <biebl@debian.org>
Thu, 18 Mar 2021 19:59:14 +0000 (19:59 +0000)
Some architectures need the arguments to be reordered because of alignment
issues. Otherwise, it's the same as sync_file_range.

(cherry picked from commit a8fb09f57395613d472d7b555db6e0ce802a8c84)

Gbp-Pq: Name shared-seccomp-add-sync_file_range2.patch

src/shared/seccomp-util.c

index cc58b3c07879d4bb0d7fd143e239c4bbd49bd96e..958128c61bb453599db223fb871d2a710241cbd9 100644 (file)
@@ -756,6 +756,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] = {