diff options
author | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2023-01-18 12:15:44 +0100 |
---|---|---|
committer | Tom Hromatka <tom.hromatka@oracle.com> | 2023-04-25 13:16:09 -0600 |
commit | dd5c9c24e8ba11c9c3ee6b60c93cef64a9ad5c86 (patch) | |
tree | 73de360a6aa1f4bbbfdf4892a4e72007c9a3861d /tests | |
parent | 744c9a897b74ad66d065791593e25a05e4b6f6a1 (diff) | |
download | libseccomp-dd5c9c24e8ba11c9c3ee6b60c93cef64a9ad5c86.tar.gz |
arch: Add 32-bit Motorola 68000 support
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/15-basic-resolver.c | 1 | ||||
-rw-r--r-- | tests/26-sim-arch_all_be_basic.c | 3 | ||||
-rwxr-xr-x | tests/26-sim-arch_all_be_basic.py | 1 | ||||
-rw-r--r-- | tests/56-basic-iterate_syscalls.c | 1 | ||||
-rwxr-xr-x | tests/regression | 4 |
5 files changed, 9 insertions, 1 deletions
diff --git a/tests/15-basic-resolver.c b/tests/15-basic-resolver.c index bdb73f7..7e2e03f 100644 --- a/tests/15-basic-resolver.c +++ b/tests/15-basic-resolver.c @@ -33,6 +33,7 @@ unsigned int arch_list[] = { SCMP_ARCH_ARM, SCMP_ARCH_AARCH64, SCMP_ARCH_LOONGARCH64, + SCMP_ARCH_M68K, SCMP_ARCH_MIPS, SCMP_ARCH_MIPS64, SCMP_ARCH_MIPS64N32, diff --git a/tests/26-sim-arch_all_be_basic.c b/tests/26-sim-arch_all_be_basic.c index 7db48ea..2b83f0b 100644 --- a/tests/26-sim-arch_all_be_basic.c +++ b/tests/26-sim-arch_all_be_basic.c @@ -43,6 +43,9 @@ int main(int argc, char *argv[]) if (rc != 0) goto out; + rc = seccomp_arch_add(ctx, seccomp_arch_resolve_name("m68k")); + if (rc != 0) + goto out; rc = seccomp_arch_add(ctx, seccomp_arch_resolve_name("mips")); if (rc != 0) goto out; diff --git a/tests/26-sim-arch_all_be_basic.py b/tests/26-sim-arch_all_be_basic.py index b0e5f5a..2afa93a 100755 --- a/tests/26-sim-arch_all_be_basic.py +++ b/tests/26-sim-arch_all_be_basic.py @@ -30,6 +30,7 @@ from seccomp import * def test(args): f = SyscallFilter(KILL) f.remove_arch(Arch()) + f.add_arch(Arch("m68k")) f.add_arch(Arch("mips")) f.add_arch(Arch("mips64")) f.add_arch(Arch("mips64n32")) diff --git a/tests/56-basic-iterate_syscalls.c b/tests/56-basic-iterate_syscalls.c index b514afa..d5cf746 100644 --- a/tests/56-basic-iterate_syscalls.c +++ b/tests/56-basic-iterate_syscalls.c @@ -34,6 +34,7 @@ unsigned int arch_list[] = { SCMP_ARCH_ARM, SCMP_ARCH_AARCH64, SCMP_ARCH_LOONGARCH64, + SCMP_ARCH_M68K, SCMP_ARCH_MIPS, SCMP_ARCH_MIPS64, SCMP_ARCH_MIPS64N32, diff --git a/tests/regression b/tests/regression index 32463c0..a1be57d 100755 --- a/tests/regression +++ b/tests/regression @@ -30,6 +30,7 @@ GLBL_ARCH_LE_SUPPORT=" \ riscv64 \ sh" GLBL_ARCH_BE_SUPPORT=" \ + m68k \ mips mips64 mips64n32 \ parisc parisc64 \ ppc ppc64 \ @@ -39,6 +40,7 @@ GLBL_ARCH_BE_SUPPORT=" \ GLBL_ARCH_32B_SUPPORT=" \ x86 x32 \ arm \ + m68k \ mips mipsel mips64n32 mipsel64n32 \ parisc \ ppc \ @@ -803,7 +805,7 @@ function run_test_live() { # setup the arch specific return values case "$arch" in - x86|x86_64|x32|arm|aarch64|loongarch64|parisc|parisc64|ppc|ppc64|ppc64le|ppc|s390|s390x|riscv64|sh|sheb) + x86|x86_64|x32|arm|aarch64|loongarch64|m68k|parisc|parisc64|ppc|ppc64|ppc64le|ppc|s390|s390x|riscv64|sh|sheb) rc_kill_process=159 rc_kill=159 rc_allow=160 |