Skip to contentSkip to conversation

audit-arch.h: add defines for m68k, sh

PATCH Applied Chris Hofstaedtler 4 participants 4 messages Apr 9, 2024 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audit-arch.h: add defines for m68k, sh

John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0, too.

---
 include/audit-arch.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/audit-arch.h +8 -0
index ade182417..9afc663cd 100644
@@ -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
@@ -47,6 +49,12 @@
 #    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
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Chris Hofstaedtler

John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0, too.

Indeed ;-).

Quoted 21 lines
---
 include/audit-arch.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/audit-arch.h +2 -0
index ade182417..9afc663cd 100644
@@ -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
@@ -47,6 +49,12 @@
 #    else
 # 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2

include/audit-arch.h line 60

Quoted 10 lines
include/audit-arch.h +6 -0
 #    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
Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Reviewed-by on v1 1/1
#2 lore raw
In reply to Chris Hofstaedtler
Quoted 2 lines · Chris Hofstaedtler

John Paul Adrian Glaubitz points out that libseccomp needs to release 2.6.0, too.

For the record: util-linux does not use libseccomp.

Quoted 1 line
Quoted 34 lines
---
 include/audit-arch.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/audit-arch.h +8 -0
index ade182417..9afc663cd 100644
@@ -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
@@ -47,6 +49,12 @@
 #    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
Signature · 1 line
2.39.2