dhcpcd-discuss

Re: Specify chrootdir independent of privsep_user's homedir

Roy Marples

Mon May 04 16:49:31 2020

On 04/05/2020 15:50, Ben Woods wrote:
Just letting you know that I have now tested this, and it looks to be working well.

Nice!


I now have dhcpcd from the recent commit edec47c on 2020-05-01 running as the _dhcp user on FreeBSD using the chrootdir /var/chroot/dhcpcd.

Thanks very much for adding this.

Welome.

This only potential tiny improvement (and I am not sure if this is the right behaviour or not) could be to print the value of the CHROOTDIR variable at the end of the configure phase so that it appears in the list below? This could help people troubleshooting in the future?

    SYSCONFDIR =		/usr/local/etc
    SBINDIR =		/usr/local/sbin
    LIBDIR =		/usr/local/lib
    LIBEXECDIR =		/usr/local/libexec
    DBDIR =		/var/db/dhcpcd
    RUNDIR =		/var/run/dhcpcd
    MANDIR =		/usr/local/man
    DATADIR =		/usr/local/share/examples
    HOOKSCRIPTS =	50-ntp.conf
    EGHOOKSCRIPTS =	50-ypbind
    STATUSARG = 		onestatus
    PRIVSEPUSER =	_dhcp

https://roy.marples.name/cgit/dhcpcd.git/commit/?id=725b0bd3faa5f9c4417c71097e4fb01608f5f953

Roy

Follow-Ups:
Re: Specify chrootdir independent of privsep_user's homedirBen Woods
References:
Specify chrootdir independent of privsep_user's homedirBen Woods
Re: Specify chrootdir independent of privsep_user's homedirRoy Marples
Re: Specify chrootdir independent of privsep_user's homedirBen Woods
Archive administrator: postmaster@marples.name