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
282 stars 49 forks source link

Ensure SELinux relabelling can be disabled in configfile #2079

Closed davidcassany closed 2 months ago

davidcassany commented 2 months ago

With this PR the mount command checks if SELinux is enabled in the Kernel to enable or disable relabeling before loading the config files. This way whatever is defined in config files will prevail over the runtime check. This allows to disable relabeling on systems using SELinux.