summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-10 10:17:38 +0100
committerRoy Marples <roy@marples.name>2020-04-10 10:17:38 +0100
commit36c47a8df0951236a7842bbf8241e2932357ef61 (patch)
tree8f23254e7f5e7a674023e0e713166db9085f1bdc
parentd139699e3a48e3971dc70f3374dcc8d20d34fc72 (diff)
downloaddhcpcd-36c47a8df0951236a7842bbf8241e2932357ef61.tar.xz
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.
-rwxr-xr-xconfigure11
1 files changed, 0 insertions, 11 deletions
diff --git a/configure b/configure
index de0bf3f2..fe5db53a 100755
--- a/configure
+++ b/configure
@@ -555,18 +555,7 @@ fi
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