Chapter 44. Security and SELinux
726
44.1.5. Multi-Level Security (MLS)
Multi-Level Security
(MLS) is a specific Mandatory Access Control (MAC) security scheme. Under this
scheme, processes are called Subjects. Files, sockets and other passive operating system entities are
called Objects. For more information, refer to
Section 44.6, “Multi-Level Security (MLS)”
.
44.1.6. Multi-Category Security (MCS)
Multi-Category Security
(MCS) is an enhancement to SELinux, and allows users to label files with
categories. MCS is an adaptation of MLS and re-uses much of the MLS framework in SELinux. For
more information, refer to
Section 44.4.1, “Introduction”
44.2. Introduction to SELinux
Security-Enhanced Linux
(SELinux) is a security architecture integrated into the 2.6.x kernel using the
Linux Security Modules
(LSM). It is a project of the United States National Security Agency (NSA) and
the SELinux community. SELinux integration into Red Hat Enterprise Linux was a joint effort between
the NSA and Red Hat.
44.2.1. SELinux Overview
SELinux provides a flexible
Mandatory Access Control
(MAC) system built into the Linux kernel. Under
standard Linux
Discretionary Access Control
(DAC), an application or process running as a user (UID
or SUID) has the user's permissions to objects such as files, sockets, and other processes. Running a
MAC kernel protects the system from malicious or flawed applications that can damage or destroy the
system.
SELinux defines the access and transition rights of every user, application, process, and file on the
system. SELinux then governs the interactions of these entities using a security policy that specifies
how strict or lenient a given Red Hat Enterprise Linux installation should be.
On a day-to-day basis, system users will be largely unaware of SELinux. Only system administrators
need to consider how strict a policy to implement for their server environment. The policy can be
as strict or as lenient as needed, and is very finely detailed. This detail gives the SELinux kernel
complete, granular control over the entire system.
The SELinux Decision Making Process
When a subject, (for example, an application), attempts to access an object (for example, a file), the
policy enforcement server in the kernel checks an
access vector cache
(AVC), where subject and
object permissions are cached. If a decision cannot be made based on data in the AVC, the request
continues to the security server, which looks up the
security context
of the application and the file in a
matrix. Permission is then granted or denied, with an
avc: denied
message detailed in
/var/log/
messages
if permission is denied. The security context of subjects and objects is applied from the
installed policy, which also provides the information to populate the security server's matrix.
Refer to the following diagram:
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...