diff options
author | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2023-01-18 12:15:44 +0100 |
---|---|---|
committer | Tom Hromatka <tom.hromatka@oracle.com> | 2023-04-25 13:16:09 -0600 |
commit | dd5c9c24e8ba11c9c3ee6b60c93cef64a9ad5c86 (patch) | |
tree | 73de360a6aa1f4bbbfdf4892a4e72007c9a3861d /tools | |
parent | 744c9a897b74ad66d065791593e25a05e4b6f6a1 (diff) | |
download | libseccomp-dd5c9c24e8ba11c9c3ee6b60c93cef64a9ad5c86.tar.gz |
arch: Add 32-bit Motorola 68000 support
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/scmp_arch_detect.c | 2 | ||||
-rw-r--r-- | tools/scmp_bpf_sim.c | 2 | ||||
-rw-r--r-- | tools/util.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/tools/scmp_arch_detect.c b/tools/scmp_arch_detect.c index c23cf7f..dcf33ad 100644 --- a/tools/scmp_arch_detect.c +++ b/tools/scmp_arch_detect.c @@ -83,6 +83,8 @@ int main(int argc, char *argv[]) break; case SCMP_ARCH_LOONGARCH64: printf("loongarch64\n"); + case SCMP_ARCH_M68K: + printf("m68k\n"); break; case SCMP_ARCH_MIPS: printf("mips\n"); diff --git a/tools/scmp_bpf_sim.c b/tools/scmp_bpf_sim.c index 7d31d79..46e449e 100644 --- a/tools/scmp_bpf_sim.c +++ b/tools/scmp_bpf_sim.c @@ -261,6 +261,8 @@ int main(int argc, char *argv[]) arch = AUDIT_ARCH_AARCH64; else if (strcmp(optarg, "loongarch64") == 0) arch = AUDIT_ARCH_LOONGARCH64; + else if (strcmp(optarg, "m68k") == 0) + arch = AUDIT_ARCH_M68K; else if (strcmp(optarg, "mips") == 0) arch = AUDIT_ARCH_MIPS; else if (strcmp(optarg, "mipsel") == 0) diff --git a/tools/util.c b/tools/util.c index f67dea7..1e39c79 100644 --- a/tools/util.c +++ b/tools/util.c @@ -46,6 +46,8 @@ #define ARCH_NATIVE AUDIT_ARCH_AARCH64 #elif __loongarch_lp64 #define ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 +#elif __m68k__ +#define ARCH_NATIVE AUDIT_ARCH_M68K #elif __mips__ && _MIPS_SIM == _MIPS_SIM_ABI32 #if __MIPSEB__ #define ARCH_NATIVE AUDIT_ARCH_MIPS |