changeset 5135:29f6e6bb802e draft

privsep: default to using _dhcpcd and not _dhcp _dhcp home dir defaults to /var/empty. System integrators can and should be in charge of changing it when needed. Packagers on the other hand don't have such a luxury and so should not use _dhcp by default.
author Roy Marples <roy@marples.name>
date Fri, 10 Apr 2020 10:17:38 +0100
parents 3b4dcb6c284c
children 0fea55d03199
files configure
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Apr 09 22:29:46 2020 +0100
+++ b/configure	Fri Apr 10 10:17:38 2020 +0100
@@ -555,18 +555,7 @@
 
 if [ "$PRIVSEP" = yes ]; then
 	echo "Enabling Privilege Separation"
-
-	# Try and work out a user
-	if [ -z "$PRIVSEP_USER" ]; then
-		for x in _dhcpcd _dhcp; do
-			if id "$x" 2>/dev/null >&2; then
-				PRIVSEP_USER="$x"
-				break
-			fi
-		done
-	fi
 	: ${PRIVSEP_USER:=_dhcpcd}
-
 	echo "CPPFLAGS+=	-DPRIVSEP" >>$CONFIG_MK
 	echo "#ifndef PRIVSEP_USER" >>$CONFIG_H
 	echo "#define PRIVSEP_USER		 \"$PRIVSEP_USER\"" >>$CONFIG_H