aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2019-02-19 11:57:43 +0000
committerJoe MacDonald <joe@deserted.net>2019-04-14 17:14:54 -0400
commitd00cb4413c3af04a5f04c5398372c832a541a460 (patch)
treef22740c30198dc056398de3e2a3a5912e9c6cad3
parentaed85f4d0c5686d8e202e0d24699d71c1759b455 (diff)
downloadmeta-selinux-d00cb4413c3af04a5f04c5398372c832a541a460.tar.gz
meta-selinux-d00cb4413c3af04a5f04c5398372c832a541a460.tar.bz2
meta-selinux-d00cb4413c3af04a5f04c5398372c832a541a460.zip
packagegroup-selinux-minimal: add selinux-init
When trying to build a minimal image (eg: without python), the default user on autologin is not mapped to the intended user/role/domain: # id -Z system_u:system_r:kernel_t:s0 And the following error is displayed on autologin: Unable to get valid context for <user> While on an image built with the core-selinux packagegroup: # id -Z unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 Adding selinux-init to the minimal package list fixes the issue. This package does not seem to bring along additional dependencies. Signed-off-by: Luca Boccassi <bluca@debian.org> Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r--recipes-security/packagegroups/packagegroup-selinux-minimal.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-security/packagegroups/packagegroup-selinux-minimal.bb b/recipes-security/packagegroups/packagegroup-selinux-minimal.bb
index 5c2eabd..e198e84 100644
--- a/recipes-security/packagegroups/packagegroup-selinux-minimal.bb
+++ b/recipes-security/packagegroups/packagegroup-selinux-minimal.bb
@@ -19,6 +19,7 @@ RDEPENDS_${PN} = "\
policycoreutils-semodule \
policycoreutils-sestatus \
policycoreutils-setfiles \
+ selinux-init \
selinux-labeldev \
refpolicy \
"