LSM.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. Linux Security Module framework
  2. -------------------------------
  3. The Linux Security Module (LSM) framework provides a mechanism for
  4. various security checks to be hooked by new kernel extensions. The name
  5. "module" is a bit of a misnomer since these extensions are not actually
  6. loadable kernel modules. Instead, they are selectable at build-time via
  7. CONFIG_DEFAULT_SECURITY and can be overridden at boot-time via the
  8. "security=..." kernel command line argument, in the case where multiple
  9. LSMs were built into a given kernel.
  10. The primary users of the LSM interface are Mandatory Access Control
  11. (MAC) extensions which provide a comprehensive security policy. Examples
  12. include SELinux, Smack, Tomoyo, and AppArmor. In addition to the larger
  13. MAC extensions, other extensions can be built using the LSM to provide
  14. specific changes to system operation when these tweaks are not available
  15. in the core functionality of Linux itself.
  16. Without a specific LSM built into the kernel, the default LSM will be the
  17. Linux capabilities system. Most LSMs choose to extend the capabilities
  18. system, building their checks on top of the defined capability hooks.
  19. For more details on capabilities, see capabilities(7) in the Linux
  20. man-pages project.
  21. Based on https://lkml.org/lkml/2007/10/26/215,
  22. a new LSM is accepted into the kernel when its intent (a description of
  23. what it tries to protect against and in what cases one would expect to
  24. use it) has been appropriately documented in Documentation/security/.
  25. This allows an LSM's code to be easily compared to its goals, and so
  26. that end users and distros can make a more informed decision about which
  27. LSMs suit their requirements.
  28. For extensive documentation on the available LSM hook interfaces, please
  29. see include/linux/security.h.