mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/dhcpcd: add BR2_PACKAGE_DHCPCD_ENABLE_PRIVSEP
Add BR2_PACKAGE_DHCPCD_ENABLE_PRIVSEP following Arnout feedback: https://patchwork.ozlabs.org/project/buildroot/patch/20210303091904.467706-1-fontaine.fabrice@gmail.com Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Reviewed-by: Joachim Wiberg <troglobit@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
5b9c58531e
commit
20dd9453f3
@@ -8,3 +8,22 @@ config BR2_PACKAGE_DHCPCD
|
|||||||
An RFC2131 compliant DHCP client
|
An RFC2131 compliant DHCP client
|
||||||
|
|
||||||
http://roy.marples.name/projects/dhcpcd/
|
http://roy.marples.name/projects/dhcpcd/
|
||||||
|
|
||||||
|
if BR2_PACKAGE_DHCPCD
|
||||||
|
|
||||||
|
config BR2_PACKAGE_DHCPCD_ENABLE_PRIVSEP
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
# Audit headers were only added in recent kernels for some arches
|
||||||
|
depends on !(BR2_arceb || BR2_arcle) || \
|
||||||
|
BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
|
||||||
|
depends on !(BR2_microblazeel || BR2_microblazebe) || \
|
||||||
|
BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
|
||||||
|
depends on !BR2_nds32 || BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
|
||||||
|
depends on !BR2_nios2 || BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
|
||||||
|
depends on !BR2_or1k || BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
|
||||||
|
depends on !BR2_sh || BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
|
||||||
|
depends on !BR2_xtensa || BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
@@ -17,23 +17,9 @@ DHCPCD_CONFIG_OPTS = \
|
|||||||
--os=linux \
|
--os=linux \
|
||||||
--privsepuser=dhcpcd
|
--privsepuser=dhcpcd
|
||||||
|
|
||||||
# AUDIT_ARCH_{OPENRISC,SH,SHEL,SH64,SHEL64} are only available with kernel >= 3.7
|
ifeq ($(BR2_PACKAGE_DHCPCD_ENABLE_PRIVSEP),y)
|
||||||
ifeq ($(BR2_or1k)$(BR2_sh):$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7),y:)
|
DHCPCD_CONFIG_OPTS += --enable-privsep
|
||||||
DHCPCD_CONFIG_OPTS += --disable-privsep
|
else
|
||||||
endif
|
|
||||||
|
|
||||||
# AUDIT_ARCH_MICROBLAZE is only available with kernel >= 3.18
|
|
||||||
ifeq ($(BR2_microblazeel)$(BR2_microblazebe):$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18),y:)
|
|
||||||
DHCPCD_CONFIG_OPTS += --disable-privsep
|
|
||||||
endif
|
|
||||||
|
|
||||||
# AUDIT_ARCH_XTENSA is only available with kernel >= 5.0
|
|
||||||
ifeq ($(BR2_xtensa):$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0),y:)
|
|
||||||
DHCPCD_CONFIG_OPTS += --disable-privsep
|
|
||||||
endif
|
|
||||||
|
|
||||||
# AUDIT_ARCH_{ARCOMPACT,ARCV2,NDS32,NIOS2} are only available with kernel >= 5.2
|
|
||||||
ifeq ($(BR2_arceb)$(BR2_arcle)$(BR2_nds32)$(BR2_nios2):$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2),y:)
|
|
||||||
DHCPCD_CONFIG_OPTS += --disable-privsep
|
DHCPCD_CONFIG_OPTS += --disable-privsep
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -49,7 +35,7 @@ DHCPCD_CONFIG_OPTS += --enable-static
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_USE_MMU),)
|
ifeq ($(BR2_USE_MMU),)
|
||||||
DHCPCD_CONFIG_OPTS += --disable-fork --disable-privsep
|
DHCPCD_CONFIG_OPTS += --disable-fork
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define DHCPCD_CONFIGURE_CMDS
|
define DHCPCD_CONFIGURE_CMDS
|
||||||
|
|||||||
Reference in New Issue
Block a user