diff options
author | Jan Willeke <willeke@linux.vnet.ibm.com> | 2015-06-01 14:22:08 +0200 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-07-13 10:27:59 -0400 |
commit | 02030ce9920181bc1058990ecaefaa754de9ad3a (patch) | |
tree | fb9362e75c484acb8b38b355e3005df9aae1fa20 /src/arch-s390x.c | |
parent | b104193d48d479b7e342c292ddcae0133575f68a (diff) | |
download | libseccomp-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 'src/arch-s390x.c')
-rw-r--r-- | src/arch-s390x.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/arch-s390x.c b/src/arch-s390x.c new file mode 100644 index 0000000..23c711c --- /dev/null +++ b/src/arch-s390x.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-s390x.h" + +const struct arch_def arch_def_s390x = { + .token = SCMP_ARCH_S390X, + .token_bpf = AUDIT_ARCH_S390X, + .size = ARCH_SIZE_64, + .endian = ARCH_ENDIAN_BIG, +}; |