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))))