summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2014-08-19 15:35:08 -0400
committerPaul Moore <pmoore@redhat.com>2014-08-20 00:06:56 -0400
commit9cd35f411eeb591e0a201063cb8cda5dee530953 (patch)
tree26e96ac4f856d08e5e245dd00b1e6e204fb5517f /tools
parent7d84274035bd7ec8969912ba3eb02620f9d73a0f (diff)
downloadlibseccomp-9cd35f411eeb591e0a201063cb8cda5dee530953.tar.gz
all: add support for mips64 to the tools and tests
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/scmp_arch_detect.c6
-rw-r--r--tools/scmp_bpf_disasm.c4
-rw-r--r--tools/scmp_bpf_sim.c4
3 files changed, 14 insertions, 0 deletions
diff --git a/tools/scmp_arch_detect.c b/tools/scmp_arch_detect.c
index 02d291b..217af84 100644
--- a/tools/scmp_arch_detect.c
+++ b/tools/scmp_arch_detect.c
@@ -84,6 +84,12 @@ int main(int argc, char *argv[])
case SCMP_ARCH_MIPSEL:
printf("mipsel\n");
break;
+ case SCMP_ARCH_MIPS64:
+ printf("mips64\n");
+ break;
+ case SCMP_ARCH_MIPSEL64:
+ printf("mipsel64\n");
+ break;
default:
printf("unknown\n");
}
diff --git a/tools/scmp_bpf_disasm.c b/tools/scmp_bpf_disasm.c
index d7babbe..ca99f07 100644
--- a/tools/scmp_bpf_disasm.c
+++ b/tools/scmp_bpf_disasm.c
@@ -324,6 +324,10 @@ int main(int argc, char *argv[])
arch = AUDIT_ARCH_MIPS;
else if (strcmp(optarg, "mipsel") == 0)
arch = AUDIT_ARCH_MIPSEL;
+ else if (strcmp(optarg, "mips64") == 0)
+ arch = AUDIT_ARCH_MIPS64;
+ else if (strcmp(optarg, "mipsel64") == 0)
+ arch = AUDIT_ARCH_MIPSEL64;
else
exit_usage(argv[0]);
break;
diff --git a/tools/scmp_bpf_sim.c b/tools/scmp_bpf_sim.c
index e910c64..fbe9df6 100644
--- a/tools/scmp_bpf_sim.c
+++ b/tools/scmp_bpf_sim.c
@@ -239,6 +239,10 @@ int main(int argc, char *argv[])
arch = AUDIT_ARCH_MIPS;
else if (strcmp(optarg, "mipsel") == 0)
arch = AUDIT_ARCH_MIPSEL;
+ else if (strcmp(optarg, "mips64") == 0)
+ arch = AUDIT_ARCH_MIPS64;
+ else if (strcmp(optarg, "mipsel64") == 0)
+ arch = AUDIT_ARCH_MIPSEL64;
else
exit_fault(EINVAL);
break;