Skip to content
EntityQ2550704· pop 14· linked from 173 articles

Linux安全模組

Sign in to save

Also known as LSM

允許Linux核心支援多種電腦安全模型的框架

Described at

Linux Security Module framework The Linux Security Module (LSM) framework provides a mechanism for various security checks to be hooked by new kernel extensions. The name "module" is a bit of a misnomer since these extensions are not actually loadable kernel modules. Instead, they are selectable at build-time via CONFIG DEFAULT SECURITY and can be overridden at boot-time via the "security=..." kernel command line argument, in the case where multiple LSMs 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. Examples include SELinux, Smack, Tomoyo, and AppArmor. In addition to the larger MAC extensions, other extensions can be built using the LSM to provide specific changes to system operation when these tweaks are not available in the core functionality of Linux itself. Without a specific LSM built into the kernel, the default LSM will be the Linux capabilities system. Most LSMs choose to extend the capabilities system, building their checks on top of the defined capability hooks. For more details on capabilities, see capabilities(7) in the Linux man-pages project. A list of the active security modules can be found by reading /sys/kernel/security/lsm. This is a comma separated list, and will always include the capability module. The list reflects the order in which checks are made. The capability module will always be first, followed by any "minor" modules (e.g. Yama) and then the one "major" module (e.g. SELinux) if there is one configured. Based on a new LSM is accepted into the kernel when its intent (a description of what it tries to protect against and in what cases one would expect to use it) has been appropriately documented in Documentation/security/. This allows an LSM's code to be easily compared to its goals, and so that end users and distros can make a more informed decision about which LSMs suit their requirements. For extensive documentation on the available LSM hook interfaces, please see include/linux/security.h.

Excerpt from a page describing this subject · 2,144 chars · not written by Vinony

Wikidata facts

Show 1 more fact
Sources (1)

via Wikidata · CC0

Article · 中文

Linux安全模块(英語:Linux Security Modules,简称LSM)是Linux内核中用于支持各种的框架,它与任何单独的安全实现无关。这个框架使用GNU通用公共许可证授权,并且从Linux 2.6开始成为官方Linux内核的一部分。目前,AppArmor、SELinux、、和Yama是官方Linux内核中支持的安全模块。 Linux安全模块提供了强制访问控制所需的功能,同时尽量减少对Linux内核的修改。因此,它仅仅用于解决访问控制的问题。Linux安全模块的访问控制和很相似,但有细微的不同。审计要求所有的访问(包括成功的和被阻止的)都被记录下来,而Linux安全模块无法实现此功能。因为访问控制可能在调用Linux安全模块之前就阻止该访问。 目前,AppArmor为Ubuntu、OpenSUSE、SUSE、Debian默认的LSM;SELinux为RHEL、Fedora、CentOS默认的LSM。 然而一些开发者并不喜欢Linux安全模块。的作者不喜欢LSM,因为LSM导出了它的全部符号,这在方便插入安全模块的同时也方便了恶意模块(Rootkit)。

Abstract from DBpedia / Wikipedia · CC BY-SA