SELinux security module support (experimental).
Please note that SELinux is still in an experimental state in Talos Linux. Extensions currently do not support enforcing mode, which is a known missing feature being worked on. Expect some CNI and CSI plugins to not work in enforcing mode. Please report the issues you encounter with different configurations to help cover various usage scenarios. Enforcing mode should only be enabled on new installs as of version 1.10, since the upgrade path for enabling SELinux is still being worked on.As for version 1.10, SELinux runs in permissive mode by default, which does not offer any extra protection, but allows to log denials. SELinux can be put in enforcing mode (to actually prevent access when it is not authorized by the policy) by adding
enforcing=1
to the kernel cmdline.
This is most commonly done via the configuration in the Image Factory.
talosctl --nodes <IP> logs auditd > audit.log
You can get more insights on SELinux policy inner workings in the corresponding section of the Developing Talos page.