mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
dhcpcd: fix dhcpcd start failure on qemuppc64
Backport patch to fix dhcpcd start failed on qemuppc64. (From OE-Core rev: 4b4f071fd178b4c8208fccf2e218d3945ed224e3) Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a31d658198566de12cdd1aad18776b8da8065787) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
88ddcabcca
commit
23d5c8a6bd
@@ -16,6 +16,7 @@ SRC_URI = "https://roy.marples.name/downloads/${BPN}/${BPN}-${PV}.tar.xz \
|
|||||||
file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \
|
file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \
|
||||||
file://0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch \
|
file://0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch \
|
||||||
file://0002-privsep-Allow-newfstatat-syscall-as-well.patch \
|
file://0002-privsep-Allow-newfstatat-syscall-as-well.patch \
|
||||||
|
file://0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch \
|
||||||
file://dhcpcd.service \
|
file://dhcpcd.service \
|
||||||
file://dhcpcd@.service \
|
file://dhcpcd@.service \
|
||||||
"
|
"
|
||||||
|
|||||||
+34
@@ -0,0 +1,34 @@
|
|||||||
|
From 7a2d9767585ed2c407d4985bd2d81552034fb90a Mon Sep 17 00:00:00 2001
|
||||||
|
From: CHEN Xiangyu <xiangyu.chen@aol.com>
|
||||||
|
Date: Thu, 9 Feb 2023 18:41:52 +0800
|
||||||
|
Subject: [PATCH] privsep-linux: fix SECCOMP_AUDIT_ARCH missing ppc64le (#181)
|
||||||
|
|
||||||
|
when dhcpcd running on ppc64le platform, it would be killed by SIGSYS.
|
||||||
|
|
||||||
|
Upstream-Status: Backport [7a2d9767585ed2c407d4985bd2d81552034fb90a]
|
||||||
|
|
||||||
|
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
|
||||||
|
---
|
||||||
|
src/privsep-linux.c | 6 +++++-
|
||||||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/privsep-linux.c b/src/privsep-linux.c
|
||||||
|
index 7372d26b..6a301950 100644
|
||||||
|
--- a/src/privsep-linux.c
|
||||||
|
+++ b/src/privsep-linux.c
|
||||||
|
@@ -232,7 +232,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
|
||||||
|
+# if (BYTE_ORDER == 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)
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
|
|
||||||
Reference in New Issue
Block a user