mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests/int/seccomp: fix flags test on ARM
On ARM, mkdirat(2) is used instead of mkdir(2), thus the seccomp rules needs to be amended accordingly. This is a change similar to one in commite119db7a23, but but it evaded the test case added in commit58ea21daeas it took a long time to merge, and we don't have ARM CI. Fixes:58ea21dae("seccomp: add support for flags") Reported-by: Ryan Phillips <rphillips@redhat.com> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -76,7 +76,7 @@ function teardown() {
|
||||
| .linux.seccomp = {
|
||||
"defaultAction":"SCMP_ACT_ALLOW",
|
||||
"architectures":["SCMP_ARCH_X86","SCMP_ARCH_X32","SCMP_ARCH_X86_64","SCMP_ARCH_AARCH64","SCMP_ARCH_ARM"],
|
||||
"syscalls":[{"names":["mkdir"], "action":"SCMP_ACT_ERRNO"}]
|
||||
"syscalls":[{"names":["mkdir", "mkdirat"], "action":"SCMP_ACT_ERRNO"}]
|
||||
}'
|
||||
|
||||
declare -A FLAGS=(
|
||||
|
||||
Reference in New Issue
Block a user