| Message ID | 20260915024100.1955287-2-chenqi_hycx@cetc.com.cn |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-selinux,1/2] layer.conf: add selinux to DISTRO_FEATURES_FILTER_NATIVE | expand |
Chen Qi via lists.yoctoproject.org schrieb am Di 15. Sep, 10:41 (+0800): > 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 --git a/recipes-core/coreutils/coreutils_%.bbappend b/recipes-core/coreutils/coreutils_%.bbappend > index 74e22b3..21de5a7 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.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}" Would `bb.utils.filter('DISTRO_FEATURES', 'selinux', d)` be better?
diff --git a/recipes-core/coreutils/coreutils_%.bbappend b/recipes-core/coreutils/coreutils_%.bbappend index 74e22b3..21de5a7 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.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"