package/dhcpcd: create dhcpcd user
privsep is supported since version 9.0.0 and2020.08.xd5786118da
It is enabled by default since3a4c2e5604
So use --privsepuser to avoid that the detection mechanism finds a wrong value from host and create it on the target Fixes: - https://bugs.buildroot.org/show_bug.cgi?id=13416 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit9e20f09109
) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
parent
cdf90d4cdb
commit
bb5d61cf2b
|
@ -13,7 +13,8 @@ DHCPCD_LICENSE_FILES = LICENSE
|
||||||
|
|
||||||
DHCPCD_CONFIG_OPTS = \
|
DHCPCD_CONFIG_OPTS = \
|
||||||
--libexecdir=/lib/dhcpcd \
|
--libexecdir=/lib/dhcpcd \
|
||||||
--os=linux
|
--os=linux \
|
||||||
|
--privsepuser=dhcpcd
|
||||||
|
|
||||||
ifeq ($(BR2_STATIC_LIBS),y)
|
ifeq ($(BR2_STATIC_LIBS),y)
|
||||||
DHCPCD_CONFIG_OPTS += --enable-static
|
DHCPCD_CONFIG_OPTS += --enable-static
|
||||||
|
@ -50,6 +51,10 @@ define DHCPCD_INSTALL_INIT_SYSTEMD
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
define DHCPCD_USERS
|
||||||
|
dhcpcd -1 dhcpcd -1 * - - - dhcpcd user
|
||||||
|
endef
|
||||||
|
|
||||||
# NOTE: Even though this package has a configure script, it is not generated
|
# NOTE: Even though this package has a configure script, it is not generated
|
||||||
# using the autotools, so we have to use the generic package infrastructure.
|
# using the autotools, so we have to use the generic package infrastructure.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue