package/refpolicy: enable systemd support
This patch enables systemd support in the refpolicy by turning on the 'SYSTEMD' policy build option when systemd is enabled in Buildroot. This enables conditional rules in SELinux policy modules (by defining 'init_systemd'), to better support systemd. Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
a734a600ba
commit
19063d043c
@ -29,11 +29,18 @@ REFPOLICY_POLICY_VERSION = $(BR2_PACKAGE_LIBSEPOL_POLICY_VERSION)
|
|||||||
REFPOLICY_POLICY_STATE = \
|
REFPOLICY_POLICY_STATE = \
|
||||||
$(call qstrip,$(BR2_PACKAGE_REFPOLICY_POLICY_STATE))
|
$(call qstrip,$(BR2_PACKAGE_REFPOLICY_POLICY_STATE))
|
||||||
|
|
||||||
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||||
|
define REFPOLICY_CONFIGURE_SYSTEMD
|
||||||
|
$(SED) "/SYSTEMD/c\SYSTEMD = y" $(@D)/build.conf
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define REFPOLICY_CONFIGURE_CMDS
|
define REFPOLICY_CONFIGURE_CMDS
|
||||||
$(SED) "/OUTPUT_POLICY/c\OUTPUT_POLICY = $(REFPOLICY_POLICY_VERSION)" \
|
$(SED) "/OUTPUT_POLICY/c\OUTPUT_POLICY = $(REFPOLICY_POLICY_VERSION)" \
|
||||||
$(@D)/build.conf
|
$(@D)/build.conf
|
||||||
$(SED) "/MONOLITHIC/c\MONOLITHIC = y" $(@D)/build.conf
|
$(SED) "/MONOLITHIC/c\MONOLITHIC = y" $(@D)/build.conf
|
||||||
$(SED) "/NAME/c\NAME = targeted" $(@D)/build.conf
|
$(SED) "/NAME/c\NAME = targeted" $(@D)/build.conf
|
||||||
|
$(REFPOLICY_CONFIGURE_SYSTEMD)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define REFPOLICY_BUILD_CMDS
|
define REFPOLICY_BUILD_CMDS
|
||||||
|
Loading…
Reference in New Issue
Block a user