]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
audit-arch.h: add defines for m68k, sh
authorChris Hofstaedtler <zeha@debian.org>
Tue, 9 Apr 2024 08:34:59 +0000 (10:34 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Apr 2024 11:48:37 +0000 (13:48 +0200)
John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0,
too.

Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
include/audit-arch.h

index ade1824174d308400b20dee74f0c020fe8ebc79e..9afc663cd53e2c51a5c8fc051c616b804ded5ea9 100644 (file)
@@ -35,6 +35,8 @@
 #    endif
 #elif __powerpc__
 #    define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC
+#elif __m68k__
+#    define SECCOMP_ARCH_NATIVE AUDIT_ARCH_M68K
 #elif __mips__
 #    if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 #       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_MIPS
 #    else
 #       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2
 #    endif
+#elif __sh__
+#    if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+#       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SH
+#    else
+#       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SHEL
+#    endif
 #elif __sparc__
 #    if __SIZEOF_POINTER__ == 4
 #       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SPARC