diff options
author | Paul Moore <pmoore@redhat.com> | 2014-08-19 22:10:13 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2014-08-20 11:41:00 -0400 |
commit | 0783d0389450a4774f960b5af7a78cdb67c6f7ee (patch) | |
tree | be332e09b3e4b9eb793edcba6944e10024ee0d34 /tools | |
parent | 263fd5d1f29e4eb54782c89a8d6f29554a592708 (diff) | |
download | libseccomp-0783d0389450a4774f960b5af7a78cdb67c6f7ee.tar.gz |
all: add support for mips64n32 to the tools and tests
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/scmp_arch_detect.c | 6 | ||||
-rw-r--r-- | tools/scmp_bpf_disasm.c | 4 | ||||
-rw-r--r-- | tools/scmp_bpf_sim.c | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/tools/scmp_arch_detect.c b/tools/scmp_arch_detect.c index 217af84..d7f91b3 100644 --- a/tools/scmp_arch_detect.c +++ b/tools/scmp_arch_detect.c @@ -90,6 +90,12 @@ int main(int argc, char *argv[]) case SCMP_ARCH_MIPSEL64: printf("mipsel64\n"); break; + case SCMP_ARCH_MIPS64N32: + printf("mips64n32\n"); + break; + case SCMP_ARCH_MIPSEL64N32: + printf("mipsel64n32\n"); + break; default: printf("unknown\n"); } diff --git a/tools/scmp_bpf_disasm.c b/tools/scmp_bpf_disasm.c index ca99f07..98021dc 100644 --- a/tools/scmp_bpf_disasm.c +++ b/tools/scmp_bpf_disasm.c @@ -328,6 +328,10 @@ int main(int argc, char *argv[]) arch = AUDIT_ARCH_MIPS64; else if (strcmp(optarg, "mipsel64") == 0) arch = AUDIT_ARCH_MIPSEL64; + else if (strcmp(optarg, "mips64n32") == 0) + arch = AUDIT_ARCH_MIPS64N32; + else if (strcmp(optarg, "mipsel64n32") == 0) + arch = AUDIT_ARCH_MIPSEL64N32; else exit_usage(argv[0]); break; diff --git a/tools/scmp_bpf_sim.c b/tools/scmp_bpf_sim.c index fbe9df6..c9333f3 100644 --- a/tools/scmp_bpf_sim.c +++ b/tools/scmp_bpf_sim.c @@ -243,6 +243,10 @@ int main(int argc, char *argv[]) arch = AUDIT_ARCH_MIPS64; else if (strcmp(optarg, "mipsel64") == 0) arch = AUDIT_ARCH_MIPSEL64; + else if (strcmp(optarg, "mips64n32") == 0) + arch = AUDIT_ARCH_MIPS64N32; + else if (strcmp(optarg, "mipsel64n32") == 0) + arch = AUDIT_ARCH_MIPSEL64N32; else exit_fault(EINVAL); break; |