Multi-Category Security (MCS)
Use Multi-Category Security (MCS) to limit access based on category labels, such as project or department names. MCS ensures separation and privacy between different work areas.
Multi-Category Security (MCS) is an access control mechanism that uses categories assigned to processes and files. Files can be accessed only by processes assigned to the same categories. MCS maintains data confidentiality on your system.
MCS categories use values c0 to c1023. You can also define a text label for each category or combination, such as "Personnel", "ProjectX", or "ProjectX.Personnel". The MCS Translation service (mcstrans) replaces the category values with labels in system inputs and outputs. Users can then use these labels instead of the category values.
When users are assigned to categories, they can label any of their files with any of the categories to which they have been assigned.
MCS works on a simple principle: to access a file, a user must be assigned to all categories assigned to that file. The MCS check applies after normal Linux Discretionary Access Control (DAC) and SELinux Type Enforcement (TE) rules. Therefore, MCS can only further restrict existing security configuration.
MCS within Multi-Level Security (MLS) Copy linkLink copied!
You can use MCS on its own as a non-hierarchical system. You can also use it with Multi-Level Security (MLS) as a non-hierarchical layer within a hierarchical system.
An example of MCS within MLS could be a secretive research organization, where files are classified as shown in the following table:
|
Security level |
Category |
|||
|
Not specified |
Project X |
Project Y |
Project Z |
|
|
Unclassified |
|
|
|
|
|
Confidential |
|
|
|
|
|
Secret |
|
|
|
|
|
Top secret |
|
|
|
|
A user with a range s0:c0.1023 can access all files assigned to all categories on level s0. Other security mechanisms, such as DAC or type enforcement policy rules, might still prohibit access.
The resulting security context of a file or process is a combination of:
- SELinux user
- SELinux role
- SELinux type
- MLS sensitivity level
- MCS category
For example, a non-privileged user with access to sensitivity level 1 and category 2 in an MLS/MCS environment could have the following SELinux context:
user_u:user_r:user_t:s1:c2