sysfs-selinux-disable 1.3 KB

1234567891011121314151617181920212223242526
  1. What: /sys/fs/selinux/disable
  2. Date: April 2005 (predates git)
  3. KernelVersion: 2.6.12-rc2 (predates git)
  4. Contact: [email protected]
  5. Description:
  6. The selinuxfs "disable" node allows SELinux to be disabled at runtime
  7. prior to a policy being loaded into the kernel. If disabled via this
  8. mechanism, SELinux will remain disabled until the system is rebooted.
  9. The preferred method of disabling SELinux is via the "selinux=0" boot
  10. parameter, but the selinuxfs "disable" node was created to make it
  11. easier for systems with primitive bootloaders that did not allow for
  12. easy modification of the kernel command line. Unfortunately, allowing
  13. for SELinux to be disabled at runtime makes it difficult to secure the
  14. kernel's LSM hooks using the "__ro_after_init" feature.
  15. Thankfully, the need for the SELinux runtime disable appears to be
  16. gone, the default Kconfig configuration disables this selinuxfs node,
  17. and only one of the major distributions, Fedora, supports disabling
  18. SELinux at runtime. Fedora is in the process of removing the
  19. selinuxfs "disable" node and once that is complete we will start the
  20. slow process of removing this code from the kernel.
  21. More information on /sys/fs/selinux/disable can be found under the
  22. CONFIG_SECURITY_SELINUX_DISABLE Kconfig option.