Yocto Project Discussions
 help / color / mirror / Atom feed
* busybox + SELinux (warrior) - reboot issue
@ 2019-11-13 18:06 Yair Itzhaki
  2019-11-22  5:50 ` [yocto] " Yi Zhao
  0 siblings, 1 reply; 5+ messages in thread
From: Yair Itzhaki @ 2019-11-13 18:06 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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

Hi ,
I'm using Poky (Warrior), with busybox (aiming at a lightweight system).
Recently, added SELinux to my project (by adding "packagegroup-core-selinux" to my local.conf, with mls policy).

Booted with "selinux=1 enforing=0".
The auto-relabeling reported an error, since the root is mounted RO.
So, patched slelinux-autorelabel script to mount "/" RW before relabeling.

Booted again.
This time, selinux-init had the same issue ( / mounted RO).
Patched this one as well, but the system keeps rebooting:
It seems that the init process keeps it's kernel_t context, which forces re-labeling, reboot and so on…. (per the selinux-init script)

Q1: Is SELinux+busybox a valid combination, or should I switch to systemd?
Q2: Which context should the init process end up as?

BTW – the build of "core-image-selinux" fails, with the following error
   Copying files into the device: set_inode_xattr: No data available while reading attribute "security.selinux" of "network"
Any idea?

Thanks,
Yair



[-- Attachment #2: Type: text/html, Size: 4831 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: busybox + SELinux (warrior) - reboot issue
@ 2019-11-21 14:54 Yair Itzhaki
  2019-11-21 15:15 ` Mark Hatle
  0 siblings, 1 reply; 5+ messages in thread
From: Yair Itzhaki @ 2019-11-21 14:54 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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

Anybody?

Thanks,
Yair



[-- Attachment #2: Type: text/html, Size: 2124 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-11-22 18:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-13 18:06 busybox + SELinux (warrior) - reboot issue Yair Itzhaki
2019-11-22  5:50 ` [yocto] " Yi Zhao
2019-11-22 18:27   ` Ayoub Zaki
  -- strict thread matches above, loose matches on Subject: below --
2019-11-21 14:54 Yair Itzhaki
2019-11-21 15:15 ` Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox