]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: Add support for NDS32BE SECCOMP
authorRoy Marples <roy@marples.name>
Sun, 31 Jan 2021 07:37:03 +0000 (07:37 +0000)
committerRoy Marples <roy@marples.name>
Fri, 9 Jul 2021 14:24:58 +0000 (15:24 +0100)
src/privsep-linux.c

index f1b33f918ed04bde83ab81147a3e6c8fd703c3cb..04950ed297fc5e41ac7258e060f2c85b2f64696b 100644 (file)
@@ -183,7 +183,11 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg)
 #    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPS
 #  endif
 #elif defined(__nds32__)
-#  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_NDS32
+#  if (BYTE_ORDER == LITTLE_ENDIAN)
+#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_NDS32
+#ele
+#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_NDS32BE
+#endif
 #elif defined(__powerpc64__)
 #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
 #elif defined(__powerpc__)