From: Antoine Tenart Date: Fri, 31 Jul 2020 10:10:36 +0000 (+0200) Subject: package/refpolicy: allow selecting additional modules X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f3b075609c82fdc8ab3c0353ae718c801d56abe;p=buildroot.git package/refpolicy: allow selecting additional modules Allow users to select additional modules available in the refpolicy, to be built in the binary policy. This will allow non-base modules to be selected based on the user use-case and to select extra module dependencies when providing out-of-tree modules. Signed-off-by: Antoine Tenart Signed-off-by: Thomas Petazzoni --- diff --git a/package/refpolicy/Config.in b/package/refpolicy/Config.in index 1912f24a58..24c811ca24 100644 --- a/package/refpolicy/Config.in +++ b/package/refpolicy/Config.in @@ -67,6 +67,11 @@ config BR2_REFPOLICY_EXTRA_MODULES_DIRS sub-directories. Also, you cannot have several modules with the same name in different directories. +config BR2_REFPOLICY_EXTRA_MODULES + string "Extra modules to enable" + help + List of extra SELinux modules to enable in the refpolicy. + endif comment "refpolicy needs a toolchain w/ threads" diff --git a/package/refpolicy/refpolicy.mk b/package/refpolicy/refpolicy.mk index a7a924f0af..50d86699b2 100644 --- a/package/refpolicy/refpolicy.mk +++ b/package/refpolicy/refpolicy.mk @@ -54,6 +54,7 @@ REFPOLICY_MODULES = \ unconfined \ userdomain \ $(PACKAGES_SELINUX_MODULES) \ + $(call qstrip,$(BR2_REFPOLICY_EXTRA_MODULES)) \ $(foreach d,$(REFPOLICY_EXTRA_MODULES_DIRS),\ $(basename $(notdir $(wildcard $(d)/*.te))))