diff mbox series

[meta-oe] ostree: remove untested PACKAGECONFIG settings

Message ID 20260915022524.844005-1-chenqi_hycx@cetc.com.cn
State Under Review
Headers show
Series [meta-oe] ostree: remove untested PACKAGECONFIG settings | expand

Commit Message

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

These two settings, class-native and class-nativesdk, were obviously
not tested. This is because for native and nativesdk, if users don't
do special settings, 'smack' and 'selinux' will never appear in the
DISTRO_FEATURES. In addition, there's even no nativesdk class extension
for libselinux.

Most likely, these two settings were just copied from above and were
left there ever since.

Note that if we enable 'selinux' for ostree-native, the following error
will appear at rootfs:

  | bwrap: Creating new namespace failed: Operation not permitted
  | error: Deploying tree: Finalizing deployment: Finalizing SELinux policy:
           failed to run semodule: Child process exited with code 1

Signed-off-by: Chen Qi <chenqi_hycx@cetc.com.cn>
---
 meta-oe/recipes-extended/ostree/ostree_2026.4.bb | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-extended/ostree/ostree_2026.4.bb b/meta-oe/recipes-extended/ostree/ostree_2026.4.bb
index b48fbb0a62..05a514c262 100644
--- a/meta-oe/recipes-extended/ostree/ostree_2026.4.bb
+++ b/meta-oe/recipes-extended/ostree/ostree_2026.4.bb
@@ -52,14 +52,12 @@  PACKAGECONFIG ??= " \
 # We include curl because ostree can't (currently) be built without
 # soup or curl - https://github.com/ostreedev/ostree/issues/1897
 PACKAGECONFIG:class-native ??= " \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \
     builtin-grub2-mkconfig \
     gpgme \
     curl \
 "
 
 PACKAGECONFIG:class-nativesdk ??= " \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'selinux smack', d)} \
     builtin-grub2-mkconfig \
     gpgme \
     curl \