dhcpcd-discuss

Re: dhcpcd-9.0.0 released

Roy Marples

Wed Apr 08 17:15:10 2020

On 08/04/2020 16:51, Julian Wollrath wrote:
Hi Roy,

When dhcpcd starts and it can enable privsep, it (amongst other
things) binds /dev to /var/chroot/dhcpcd/dev (depends on where the
chroot is, but you get the idea).
Now, the 00-linux hook script handles this ..... and this should
include the syslog socket, /dev/log.
Can you verify it's there and working please?

it is there and works:

# ll /var/lib/dhcpcd/dev/log
lrwxrwxrwx 1 root root 28 Apr  8 11:36 /var/lib/dhcpcd/dev/log ->
/run/systemd/journal/dev-log
# ll /run/systemd/journal/dev-log
srw-rw-rw- 1 root root 0 Apr  8 11:36 /run/systemd/journal/dev-log

% echo test | nc -uU /var/lib/dhcpcd/dev/log

syslog:
Apr 08 17:48:40 hostname nc[18146]: test

But that won't work from inside the chroot will it :)
Here's how to emulate it:
echo test | nc -uU /var/lib/dhcpcd/run/systemd/journal/dev-log

I wonder if it's fixable though. Does this fix it?
mkdir -p /var/lib/dhcpcd/run/systemd/journal
mount --bind /run/systemd/journal /var/lib/dhcpcd/run/systemd/journal
Does it work then?

Roy

Follow-Ups:
Re: dhcpcd-9.0.0 releasedJulian Wollrath
References:
dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedJulian Wollrath
Re: dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedJulian Wollrath
Re: dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedJulian Wollrath
Re: dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedJulian Wollrath
Re: dhcpcd-9.0.0 releasedRoy Marples
Re: dhcpcd-9.0.0 releasedJulian Wollrath
Archive administrator: postmaster@marples.name