diff mbox series

[meta-arago,master/scarthgap,v1] meta-arago: Enable SELinux packages for recipe

Message ID 20241114054707.2945853-1-a-shenai@ti.com
State New
Headers show
Series [meta-arago,master/scarthgap,v1] meta-arago: Enable SELinux packages for recipe | expand

Commit Message

Aashvij Shenai Nov. 14, 2024, 5:47 a.m. UTC
This patch adds SELinux packages for platforms building tisdk-default-image

However, this does not mean that SELinux will be enabled by default.
Additional boot time parameters are required to enable SELinux.

Signed-off-by: Aashvij Shenai <a-shenai@ti.com>
---
 meta-arago-distro/conf/distro/arago.conf                     | 1 +
 meta-arago-distro/recipes-core/images/tisdk-default-image.bb | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index 8e094e02..3fc8252e 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -52,6 +52,7 @@  DISTRO_FEATURES:remove = "x11"
 DISTRO_FEATURES:append = " vulkan"
 DISTRO_FEATURES:append = " opencv"
 DISTRO_FEATURES:append = " openmp"
+DISTRO_FEATURES:append =" acl xattr pam selinux"
 
 # Normally target distro features will not be applied to native builds:
 # Native distro features on this list will use the target feature value
diff --git a/meta-arago-distro/recipes-core/images/tisdk-default-image.bb b/meta-arago-distro/recipes-core/images/tisdk-default-image.bb
index faae53d3..ff603b19 100644
--- a/meta-arago-distro/recipes-core/images/tisdk-default-image.bb
+++ b/meta-arago-distro/recipes-core/images/tisdk-default-image.bb
@@ -27,6 +27,7 @@  IMAGE_INSTALL += "\
     ti-demos \
     ${ARAGO_DEFAULT_IMAGE_EXTRA_INSTALL} \
     packagegroup-arago-tisdk-sysrepo \
+    ${@bb.utils.contains('DISTRO_FEATURES','selinux','packagegroup-core-selinux','',d)} \
 "
 
 export IMAGE_BASENAME = "tisdk-default-image${ARAGO_IMAGE_SUFFIX}"