diff mbox series

[meta-selinux,1/2] layer.conf: add selinux to DISTRO_FEATURES_FILTER_NATIVE

Message ID 20260915024100.1955287-1-chenqi_hycx@cetc.com.cn
State New
Headers show
Series [meta-selinux,1/2] layer.conf: add selinux to DISTRO_FEATURES_FILTER_NATIVE | expand

Commit Message

Chen Qi Sept. 15, 2026, 2:40 a.m. UTC
From: Chen Qi <chenqi_hycx@cetc.com.cn>

Previously, no matter how you set DISTRO_FEATURES, it does not affect
native recipes regarding the selinux ditro feature. Add 'selinux' to
DISTRO_FEATURES_FILTER_NATIVE so that 'selinux' can be filtered into
native recipes' DISTRO_FEATURES.

This enables us to build selinux support for some native utilities,
notably coreutils-native.

This will also bring possible 'regressions' in case some recipes are
enabling selinux for native variable without testing it, e.g., ostree.
But these 'regressions' are really findings of errors of those recipes.

Signed-off-by: Chen Qi <chenqi_hycx@cetc.com.cn>
---
 conf/layer.conf | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/conf/layer.conf b/conf/layer.conf
index 245b4ef..172a1db 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -25,3 +25,5 @@  LAYERDEPENDS_selinux = " \
 "
 
 PREFERRED_PROVIDER_virtual/refpolicy ??= "refpolicy-targeted"
+
+DISTRO_FEATURES_FILTER_NATIVE:append = " selinux"