]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: Include arm_fadvise64_64 in syscall allow_list
authorMichał Górny <mgorny@gentoo.org>
Sun, 17 Nov 2024 15:34:35 +0000 (16:34 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Nov 2024 02:43:35 +0000 (11:43 +0900)
Add the `arm_fadvise64_64` syscall to the allow_list, in addition
to the existing `fadvise64` and `fadvise64_64` syscalls, as this is
the syscall actually defined for `arm` architecture.  Adding it fixes
the syscall being rejected in arm32 containers.

Fixes #35194

src/nspawn/nspawn-seccomp.c

index 4d45651b3b001edf843bc8df3d81c6bcbf3fd951..e85c3c72cc19a0c15fb48c2dce8e08dc5deabc50 100644 (file)
@@ -50,6 +50,7 @@ static int add_syscall_filters(
                 { CAP_IPC_LOCK,       "@memlock"                     },
 
                 /* Plus a good set of additional syscalls which are not part of any of the groups above */
+                { 0,                  "arm_fadvise64_64"             },
                 { 0,                  "brk"                          },
                 { 0,                  "capget"                       },
                 { 0,                  "capset"                       },