SELinux update in Linux 6.4 Kernel: Run-Time disabling support deprecated for improved security
With the Linux 6.4 kernel, SELinux can no longer be run-time disabled. While the ability to disable SELinux via its config file or sysfs has been deprecated for some time, this removal of run-time disabling support allows SELinux developers to make significant improvements currently blocked by this code.
However, those who still wish to disable SELinux support can do so through the selinux=0 boot time option or by toggling the "CONFIG_SECURITY_SELINUX_DISABLE" Kconfig switch when building the Linux kernel. This change was made as part of a larger effort to safely mark the LSM hook structures as '__ro_after_init'.
While some users may be inconvenienced by the removal of SELinux run-time disabling, this change ultimately helps to improve the security of the Linux operating system by preventing unwanted modifications to its security features. Check out the article linked under Official Sources for more technical details on this change.
