Skip to contentSkip to conversation

Add util-linux-agetty to core-image-selinux IMAGE_INSTALL.

meta-selinux Applied Philip Tricca 3 participants 3 messages Sep 26, 2013 – Sep 27, 2013

lore
Share & tools
lore
#0 lore raw

Currently logins to core-image-selinux images through a getty (serial) fail. This is caused by the use of the busybox getty. SELinux depends on executable files and their labels to transition between types. The symlink to busybox is not sufficient to cause the getty processes to transition to the right SELinux context. Using a getty binary like the one provided by util-linux fixes this.

---
 recipes-security/images/core-image-selinux.bb |    1 +
 1 file changed, 1 insertion(+)
recipes-security/images/core-image-selinux.bb +1 -0
index 0109933..1ec7b08 100644
@@ -6,6 +6,7 @@ LICENSE = "MIT"
 
 IMAGE_INSTALL = "\
 	${CORE_IMAGE_BASE_INSTALL} \
+	util-linux-agetty \
 	packagegroup-core-basic \
 	packagegroup-core-selinux \
 "   
Signature · 1 line
1.7.10.4
#1 lore raw

All opposed? If the motion is carried, I'll merge it both into master and what will soon become master-next.

-J.

Quoted 24 lines · [[yocto] [meta-selinux] Add util-linux-agetty to core-image-selinux…

Currently logins to core-image-selinux images through a getty (serial) fail. This is caused by the use of the busybox getty. SELinux depends on executable files and their labels to transition between types. The symlink to busybox is not sufficient to cause the getty processes to transition to the right SELinux context. Using a getty binary like the one provided by util-linux fixes this.

---
 recipes-security/images/core-image-selinux.bb |    1 +
 1 file changed, 1 insertion(+)
recipes-security/images/core-image-selinux.bb +1 -0
index 0109933..1ec7b08 100644
@@ -6,6 +6,7 @@ LICENSE = "MIT"
 
 IMAGE_INSTALL = "\
 	${CORE_IMAGE_BASE_INSTALL} \
+	util-linux-agetty \
 	packagegroup-core-basic \
 	packagegroup-core-selinux \
 "   
Signature · 2 lines
-Joe MacDonald.
:wq
#2 lore raw
In reply to Philip Tricca

Merged, thanks.
-J.

Quoted 24 lines · [[yocto] [meta-selinux] Add util-linux-agetty to core-image-selinux…

Currently logins to core-image-selinux images through a getty (serial) fail. This is caused by the use of the busybox getty. SELinux depends on executable files and their labels to transition between types. The symlink to busybox is not sufficient to cause the getty processes to transition to the right SELinux context. Using a getty binary like the one provided by util-linux fixes this.

---
 recipes-security/images/core-image-selinux.bb |    1 +
 1 file changed, 1 insertion(+)
recipes-security/images/core-image-selinux.bb +1 -0
index 0109933..1ec7b08 100644
@@ -6,6 +6,7 @@ LICENSE = "MIT"
 
 IMAGE_INSTALL = "\
 	${CORE_IMAGE_BASE_INSTALL} \
+	util-linux-agetty \
 	packagegroup-core-basic \
 	packagegroup-core-selinux \
 "   
Signature · 2 lines
-Joe MacDonald.
:wq