diff options
author | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2020-08-17 13:12:14 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-03-08 19:55:32 -0500 |
commit | c12945db0b7e32f409ba3a68d18c6d6f6dd22b19 (patch) | |
tree | d87fc7447552cc09a1fe385a2a27a604c7717419 /tests/16-sim-arch_basic.c | |
parent | 83d7b022fa7ef8c24516cc668efc879e5398403f (diff) | |
download | libseccomp-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 'tests/16-sim-arch_basic.c')
-rw-r--r-- | tests/16-sim-arch_basic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/16-sim-arch_basic.c b/tests/16-sim-arch_basic.c index 0b141e1..4fcbb5c 100644 --- a/tests/16-sim-arch_basic.c +++ b/tests/16-sim-arch_basic.c @@ -95,6 +95,9 @@ int main(int argc, char *argv[]) rc = seccomp_arch_add(ctx, SCMP_ARCH_RISCV64); if (rc != 0) goto out; + rc = seccomp_arch_add(ctx, SCMP_ARCH_SH); + if (rc != 0) + goto out; rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 1, SCMP_A0(SCMP_CMP_EQ, STDIN_FILENO)); |