summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2020-08-17 13:12:14 +0200
committerPaul Moore <paul@paul-moore.com>2021-03-08 19:55:32 -0500
commitc12945db0b7e32f409ba3a68d18c6d6f6dd22b19 (patch)
treed87fc7447552cc09a1fe385a2a27a604c7717419 /include
parent83d7b022fa7ef8c24516cc668efc879e5398403f (diff)
downloadlibseccomp-c12945db0b7e32f409ba3a68d18c6d6f6dd22b19.tar.gz
arch: Add SuperH 32-bit support
Initial support for seccomp for SuperH in Linux was added in 2.6.27-rc2, support for SECCOMP_FILTER was added for Linux 5.9. This adds support for SuperH in libseccomp, both for little-endian and big-endian mode. Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include')
-rw-r--r--include/seccomp.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index 1e47de9..333a89c 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -217,6 +217,12 @@ struct scmp_arg_cmp {
#define SCMP_ARCH_RISCV64 AUDIT_ARCH_RISCV64
/**
+ * The SuperH architecture tokens
+ */
+#define SCMP_ARCH_SHEB AUDIT_ARCH_SH
+#define SCMP_ARCH_SH AUDIT_ARCH_SHEL /* Little-endian SH is more common than big */
+
+/**
* Convert a syscall name into the associated syscall number
* @param x the syscall name
*/