diff options
Diffstat (limited to 'src/privsep-linux.c')
| -rw-r--r-- | src/privsep-linux.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/privsep-linux.c b/src/privsep-linux.c index 4bbd7796..d00894ab 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -206,6 +206,20 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg) # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390X #elif defined(__s390__) # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390 +#elif defined(__sh__) +# if defined(__LP64__) +# if (BYTE_ORDER == LITTLE_ENDIAN) +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_SHEL64 +# else +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_SH64 +# endif +# else +# if (BYTE_ORDER == LITTLE_ENDIAN) +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_SHEL +# else +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_SH +# endif +# endif #elif defined(__sparc__) # if defined(__arch64__) # define AUDIT_ARCH_SPARC64 |
