summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/seccomp.h.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index 4cfc17c..ea95781 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -163,6 +163,11 @@ struct scmp_arg_cmp {
#define SCMP_ARCH_MIPSEL64N32 AUDIT_ARCH_MIPSEL64N32
/**
+ * The S390X architecture token
+ */
+#define SCMP_ARCH_S390X AUDIT_ARCH_S390X
+
+/**
* Convert a syscall name into the associated syscall number
* @param x the syscall name
*/
@@ -1476,6 +1481,31 @@ int seccomp_export_bpf(const scmp_filter_ctx ctx, int fd);
#define __NR_usr32 __PNR_usr32
#endif /* __ARM_NR_usr32 */
+#define __PNR_get_mempolicy -10180
+#ifndef __NR_get_mempolicy
+#define __NR_get_mempolicy __PNR_get_mempolicy
+#endif /* __NR_get_mempolicy */
+
+#define __PNR_move_pages -10181
+#ifndef __NR_move_pages
+#define __NR_move_pages __PNR_move_pages
+#endif /* __NR_move_pages */
+
+#define __PNR_mbind -10182
+#ifndef __NR_mbind
+#define __NR_mbind __PNR_mbind
+#endif /* __NR_mbind */
+
+#define __PNR_set_mempolicy -10183
+#ifndef __NR_set_mempolicy
+#define __NR_set_mempolicy __PNR_set_mempolicy
+#endif /* __NR_set_mempolicy */
+
+#define __PNR_s390_runtime_instr -10184
+#ifndef __NR_s390_runtime_instr
+#define __NR_s390_runtime_instr __PNR_s390_runtime_instr
+#endif /* __NR_s390_runtime_instr */
+
#ifdef __cplusplus
}
#endif