All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux][PATCH 1/2] layer.conf: add selinux to DISTRO_FEATURES_FILTER_NATIVE
@ 2026-09-15  2:40 chenqi_hycx
  2026-09-15  2:41 ` [meta-selinux][PATCH 2/2] coreutils: enable selinux support for native variant chenqi_hycx
  0 siblings, 1 reply; 3+ messages in thread
From: chenqi_hycx @ 2026-09-15  2:40 UTC (permalink / raw)
  To: yocto-patches; +Cc: joe.macdonald

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 --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"
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-15  6:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-15  2:40 [meta-selinux][PATCH 1/2] layer.conf: add selinux to DISTRO_FEATURES_FILTER_NATIVE chenqi_hycx
2026-09-15  2:41 ` [meta-selinux][PATCH 2/2] coreutils: enable selinux support for native variant chenqi_hycx
2026-09-15  6:56   ` [yocto-patches] " Jörg Sommer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.