summaryrefslogtreecommitdiff
path: root/src/arch-s390.c
diff options
context:
space:
mode:
authorJan Willeke <willeke@linux.vnet.ibm.com>2015-06-01 14:22:09 +0200
committerPaul Moore <pmoore@redhat.com>2015-07-13 10:28:53 -0400
commitacc895703daf72d6c9a83db2b7a0f8ff73b37ad5 (patch)
tree569970abcf7bc126c69d41543b59a2db569fcace /src/arch-s390.c
parent02030ce9920181bc1058990ecaefaa754de9ad3a (diff)
downloadlibseccomp-acc895703daf72d6c9a83db2b7a0f8ff73b37ad5.tar.gz
arch: add support for s390
This patch adds support for S390 (32-bit) architecture. Signed-off-by: Jan Willeke <willeke@linux.vnet.ibm.com> [PM: rewrote the subject line, style fixes, s390x/s390 typo bugfixes] Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src/arch-s390.c')
-rw-r--r--src/arch-s390.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/arch-s390.c b/src/arch-s390.c
new file mode 100644
index 0000000..5aa36fe
--- /dev/null
+++ b/src/arch-s390.c
@@ -0,0 +1,18 @@
+/*
+ * Copyright 2015 IBM
+ * Author: Jan Willeke <willeke@linux.vnet.com.com>
+ */
+
+#include <stdlib.h>
+#include <errno.h>
+#include <linux/audit.h>
+
+#include "arch.h"
+#include "arch-s390.h"
+
+const struct arch_def arch_def_s390 = {
+ .token = SCMP_ARCH_S390,
+ .token_bpf = AUDIT_ARCH_S390,
+ .size = ARCH_SIZE_32,
+ .endian = ARCH_ENDIAN_BIG,
+};