diff mbox series

[meta-selinux,V2,2/2] coreutils: enable selinux support for native variant

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

Commit Message

Chen Qi Sept. 16, 2026, 12:55 a.m. UTC
From: Chen Qi <chenqi_hycx@cetc.com.cn>

It's really a common task to check selinux labels for rootfs to ensure
that files are labelled correctly. To do this, coreutils-native
needs to have libselinux linked to make commands such as 'ls -Z' work
as expected.

Signed-off-by: Chen Qi <chenqi_hycx@cetc.com.cn>
---
 recipes-core/coreutils/coreutils_%.bbappend | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/recipes-core/coreutils/coreutils_%.bbappend b/recipes-core/coreutils/coreutils_%.bbappend
index 74e22b3..09c7021 100644
--- a/recipes-core/coreutils/coreutils_%.bbappend
+++ b/recipes-core/coreutils/coreutils_%.bbappend
@@ -1 +1,3 @@ 
 inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
+
+PACKAGECONFIG:class-native:append = " ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"