From 65adea1086833fdf5f37585d719f0a09b76e7480 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 3 Apr 2022 20:30:06 +0200 Subject: [PATCH] dhcpcd: fix privsep on ppc64le --- srcpkgs/dhcpcd/patches/privsep-ppc64le.patch | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/dhcpcd/patches/privsep-ppc64le.patch diff --git a/srcpkgs/dhcpcd/patches/privsep-ppc64le.patch b/srcpkgs/dhcpcd/patches/privsep-ppc64le.patch new file mode 100644 index 00000000000..38a4264a59c --- /dev/null +++ b/srcpkgs/dhcpcd/patches/privsep-ppc64le.patch @@ -0,0 +1,23 @@ +commit 156383a2ff84c01b347579ec8651a0a21384adf4 +Author: Daniel Kolesa +Date: Sun Apr 3 20:18:51 2022 +0200 + + use correct SECCOMP_AUDIT_ARCH + +diff --git a/src/privsep-linux.c b/src/privsep-linux.c +index 9534fb0..b866bce 100644 +--- a/src/privsep-linux.c ++++ b/src/privsep-linux.c +@@ -213,7 +213,11 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg) + #elif defined(__or1k__) + # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_OPENRISC + #elif defined(__powerpc64__) +-# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64 ++# ifdef __LITTLE_ENDIAN__ ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE ++# else ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64 ++# endif + #elif defined(__powerpc__) + # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC + #elif defined(__riscv)