All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jörg Sommer" <joerg.sommer@navimatix.de>
To: yocto-patches@lists.yoctoproject.org,  Chen Qi <chenqi_hycx@cetc.com.cn>
Cc: joe.macdonald@siemens.com
Subject: Re: [yocto-patches] [meta-selinux][PATCH 2/2] coreutils: enable selinux support for native variant
Date: Tue, 15 Sep 2026 08:56:11 +0200	[thread overview]
Message-ID: <aqjrl79KPq7arcPB@navimatix.de> (raw)
In-Reply-To: <20260915024100.1955287-2-chenqi_hycx@cetc.com.cn>

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

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?


-- 
Navimatix GmbH           T: 03641 - 327 99 0
Tatzendpromenade 2       F: 03641 - 526 306
07745 Jena               www.navimatix.de

Geschäftsführer: Steffen Späthe, Jan Rommeley
Registergericht: Amtsgericht Jena, HRB 501480

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6684 bytes --]

      reply	other threads:[~2026-09-15  6:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Jörg Sommer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aqjrl79KPq7arcPB@navimatix.de \
    --to=joerg.sommer@navimatix.de \
    --cc=chenqi_hycx@cetc.com.cn \
    --cc=joe.macdonald@siemens.com \
    --cc=yocto-patches@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.