Linux Security Module framework-------------------------------The Linux Security Module (LSM) framework provides a mechanism forvarious security checks to be hooked by new kernel extensions. The name"module" is a bit of a misnomer since these extensions are not actuallyloadable kernel modules. Instead, they are selectable at build-time viaCONFIG_DEFAULT_SECURITY and can be overridden at boot-time via the"security=..." kernel command line argument, in the case where multipleLSMs were built into a given kernel.The primary users of the LSM interface are Mandatory Access Control(MAC) extensions which provide a comprehensive security policy. Examplesinclude SELinux, Smack, Tomoyo, and AppArmor. In addition to the largerMAC extensions, other extensions can be built using the LSM to providespecific changes to system operation when these tweaks are not availablein the core functionality of Linux itself.Without a specific LSM built into the kernel, the default LSM will be theLinux capabilities system. Most LSMs choose to extend the capabilitiessystem, building their checks on top of the defined capability hooks.For more details on capabilities, see capabilities(7) in the Linuxman-pages project.Based on http://kerneltrap.org/Linux/Documenting_Security_Module_Intent,a new LSM is accepted into the kernel when its intent (a description ofwhat it tries to protect against and in what cases one would expect touse it) has been appropriately documented in Documentation/security/.This allows an LSM's code to be easily compared to its goals, and sothat end users and distros can make a more informed decision about whichLSMs suit their requirements.For extensive documentation on the available LSM hook interfaces, pleasesee include/linux/security.h.