summaryrefslogtreecommitdiff
path: root/tests/26-sim-arch_all_be_basic.c
diff options
context:
space:
mode:
authorJan Willeke <willeke@linux.vnet.ibm.com>2015-06-01 14:22:08 +0200
committerPaul Moore <pmoore@redhat.com>2015-07-13 10:27:59 -0400
commit02030ce9920181bc1058990ecaefaa754de9ad3a (patch)
treefb9362e75c484acb8b38b355e3005df9aae1fa20 /tests/26-sim-arch_all_be_basic.c
parentb104193d48d479b7e342c292ddcae0133575f68a (diff)
downloadlibseccomp-02030ce9920181bc1058990ecaefaa754de9ad3a.tar.gz
arch: add support for s390x
This patch adds support for S390x (64-bit) architecture. Signed-off-by: Jan Willeke <willeke@linux.vnet.ibm.com> [PM: rewrote the subject line, style fixes] Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'tests/26-sim-arch_all_be_basic.c')
-rw-r--r--tests/26-sim-arch_all_be_basic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/26-sim-arch_all_be_basic.c b/tests/26-sim-arch_all_be_basic.c
index a951b3c..0dcd78d 100644
--- a/tests/26-sim-arch_all_be_basic.c
+++ b/tests/26-sim-arch_all_be_basic.c
@@ -52,6 +52,9 @@ int main(int argc, char *argv[])
rc = seccomp_arch_add(ctx, seccomp_arch_resolve_name("mips64n32"));
if (rc != 0)
goto out;
+ rc = seccomp_arch_add(ctx, seccomp_arch_resolve_name("s390x"));
+ if (rc != 0)
+ goto out;
rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 1,
SCMP_A0(SCMP_CMP_EQ, STDIN_FILENO));