From 65840f64efdb8390d11ee56fa39f72eb4656c84a Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 26 Oct 2022 11:02:53 -0700 Subject: [PATCH] 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 commit e119db7a23c773ca9, but but it evaded the test case added in commit 58ea21dae as 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 Signed-off-by: Kir Kolyshkin --- tests/integration/seccomp.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/seccomp.bats b/tests/integration/seccomp.bats index f3e12bbce..2babf6904 100644 --- a/tests/integration/seccomp.bats +++ b/tests/integration/seccomp.bats @@ -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=(