diff options
| author | Roy Marples <roy@marples.name> | 2021-01-31 07:37:03 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2021-01-31 07:37:03 +0000 |
| commit | 8253ef16e11db8b52af1ed8021cd2517046165d6 (patch) | |
| tree | fa97e6c7dc7ea47fde8e1a8453f23cd96222aa08 | |
| parent | 19c3d9209a834e02918a17e011afd9da3e5be38d (diff) | |
| download | dhcpcd-8253ef16e11db8b52af1ed8021cd2517046165d6.tar.xz | |
Linux: Add support for NDS32BE SECCOMP
| -rw-r--r-- | src/privsep-linux.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/privsep-linux.c b/src/privsep-linux.c index e2f12b02..89d4d89f 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -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__) |
