rancher / elemental-toolkit

:snowflake: The toolkit to build, ship and maintain cloud-init driven Linux derivatives based on container images
https://rancher.github.io/elemental-toolkit/docs/
Apache License 2.0
288 stars 49 forks source link

Enable SELinux for tumbleweed and green #2052

Closed davidcassany closed 3 months ago

davidcassany commented 4 months ago

This PR uses SELinux in enforce mode for the active/passive systems and in permissive mode for recovery and ISO systems.

The elemental labelling code changed slightly, basically the change is that now it is also executed as part of the close transaction step once the new root is already rsynced. In addition it also tries to label from the outer system any eventual mountpoint that was labeled in a chroot env (/dev, /proc, /sys, etc.).

Current unsolved issues:

Fixes #2054

Signed-off-by: David Cassany dcassany@suse.com

anmazzotti commented 4 months ago

@davidcassany FYI on Tumbleweed a patterns-microos-selinux is available. I used it for the dev image.