dhcpcd-discuss

Re: 9.3.0 and later not working on my powerpc32 system

Roy Marples

Thu Oct 15 00:13:25 2020

On 14/10/2020 23:39, Tom Armistead wrote:
No, the patch didn't fix it.

With the patch applied my system started hanging during start up when it was trying to bring up the network.  So,  I booted in with a recovery image and disabled the automatic network startup.   I then ran the strace command on the patched version of dhcpcd.   The output from that is attached.

OK, keep a good version for booting the system.

With the dhcpcd-9.3.x, please keep a local patched copy to test with so we can test it like so:

# Kill running dhcpcd
./dhcpcd -x

# Start new dhcpcd to test with
./dhcpcd -dB

There should not be a need to install dhcpcd-9.3 into /sbin until this works on powerpc.

Here is a new patch that might get further yet.
Let me know if how you go!

Roy

diff --git a/src/privsep-linux.c b/src/privsep-linux.c
index 5d35ae2c..58b31526 100644
--- a/src/privsep-linux.c
+++ b/src/privsep-linux.c
@@ -247,6 +247,9 @@ static struct sock_filter ps_seccomp_filter[] = {
 #ifdef __NR_munmap
 	SECCOMP_ALLOW(__NR_munmap),
 #endif
+#ifdef __NR_nanosleep
+	SECCOMP_ALLOW(__NR_nanosleep),	/* XXX should use ppoll instead */
+#endif
 #ifdef __NR_ppoll
 	SECCOMP_ALLOW(__NR_ppoll),
 #endif
@@ -259,6 +262,9 @@ static struct sock_filter ps_seccomp_filter[] = {
 #ifdef __NR_readv
 	SECCOMP_ALLOW(__NR_readv),
 #endif
+#ifdef __NR_recv
+	SECCOMP_ALLOW(__NR_recv),
+#endif
 #ifdef __NR_recvfrom
 	SECCOMP_ALLOW(__NR_recvfrom),
 #endif
@@ -280,6 +286,9 @@ static struct sock_filter ps_seccomp_filter[] = {
 #ifdef __NR_wait4
 	SECCOMP_ALLOW(__NR_wait4),
 #endif
+#ifdef __NR_waitpid
+	SECCOMP_ALLOW(__NR_waitpid),
+#endif
 #ifdef __NR_write
 	SECCOMP_ALLOW(__NR_write),
 #endif

Follow-Ups:
Re: 9.3.0 and later not working on my powerpc32 systemTom Armistead
References:
9.3.0 and later not working on my powerpc32 systemTom Armistead
Re: 9.3.0 and later not working on my powerpc32 systemRoy Marples
Re: 9.3.0 and later not working on my powerpc32 systemTom Armistead
Re: 9.3.0 and later not working on my powerpc32 systemRoy Marples
Re: 9.3.0 and later not working on my powerpc32 systemTom Armistead
Re: 9.3.0 and later not working on my powerpc32 systemRoy Marples
Re: 9.3.0 and later not working on my powerpc32 systemTom Armistead
Archive administrator: postmaster@marples.name