diff options
| author | Roy Marples <roy@marples.name> | 2020-05-05 17:55:10 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-05-05 17:55:10 +0100 |
| commit | 5a3fd90a17d8c0cda02dd4ca590f29acf5912d83 (patch) | |
| tree | c49887a28a5ebee009a64e878999a9718cb6ece4 /configure | |
| parent | cc4dd2f1349fb2ba76cd43bc7934c198cce172c2 (diff) | |
| download | dhcpcd-5a3fd90a17d8c0cda02dd4ca590f29acf5912d83.tar.xz | |
privsep: Allow a blank string to force privsep users home directory
So FreeBSD users can set it like other OS's if they so choose.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -583,7 +583,11 @@ if [ "$PRIVSEP" = yes ]; then echo "PRIVSEP_USER?= $PRIVSEP_USER" >>$CONFIG_MK if [ -n "$PRIVSEP_CHROOT" ]; then echo "PRIVSEP_CHROOT= $PRIVSEP_CHROOT" >>$CONFIG_MK - echo "SED_CHROOT= -e 's:@CHDIR^@.*@CHDIR\$\$@:default of:g' -e 's:@CHDIR@:.Pa \${PRIVSEP_CHROOT} .:g'" >>$CONFIG_MK + cat <<EOF >>$CONFIG_MK +SED_CHROOT= -e 's:@CHDIR^@.*@CHDIR\$\$@:default of:g' \\ + -e 's:@CHDIR1@:.Pa \${PRIVSEP_CHROOT} .:g' \\ + -e 's:@CHDIR2@:A blank string chroots to the privileged separation users home directory.:g' +EOF fi echo "#ifndef PRIVSEP_USER" >>$CONFIG_H echo "#define PRIVSEP_USER \"$PRIVSEP_USER\"" >>$CONFIG_H |
