Multilevel security (MLS) is a security model in which a single system stores and processes information at several sensitivity levels at once, such as Unclassified, Secret and Top Secret, while guaranteeing that users and processes can access only data their clearance and need-to-know permit. In OS security, MLS is implemented as a form of mandatory access control enforced by the kernel, not by the discretion of file owners.
MLS originated in military and intelligence computing during the 1970s and remains in use in defense, government and some regulated industries. Its formal foundation is the Bell-LaPadula model, and modern implementations appear in SELinux, Trusted Solaris and its successor Solaris Trusted Extensions, and specialized evaluated systems.
How multilevel security controls information flow
Multilevel security works by attaching a security label to every subject (a process acting for a user) and every object (a file, socket, memory segment or device). A label combines a hierarchical level with a set of non-hierarchical categories, sometimes called compartments, such as a project or nation code.
The kernel compares labels on every access using a dominance relation. Label A dominates label B when A’s level is equal or higher and A’s categories include all of B’s. Access decisions follow the two core rules of Bell-LaPadula, summarized in the table below, which together prevent information from flowing downward to less trusted subjects.
| Rule | Informal name | What it prevents |
|---|---|---|
| Simple security property | No read up | A subject reading data above its clearance |
| Star property | No write down | A subject copying secret data into a lower-level object |
| Discretionary property | Need-to-know check | Access beyond permissions granted within a level |
| Tranquility principle | Labels stay stable | Label changes that open covert downgrade paths |
The no write down rule is the distinctive part. Even a fully cleared user cannot paste Top Secret text into an Unclassified document, because the process carries the higher label. This protects against Trojan horse programs that might otherwise leak data under a legitimate user identity.
Security levels, categories and labels
Labels give MLS its precision. A typical government scheme uses four hierarchical levels, while categories split each level into compartments so that clearance at Secret does not automatically grant access to every Secret project.
| Element | Example values | Role in access decisions |
|---|---|---|
| Hierarchical level | Unclassified, Confidential, Secret, Top Secret | Orders sensitivity from low to high |
| Category or compartment | NATO, CRYPTO, Project Alpha | Restricts access to a defined group |
| Subject clearance | Secret with NATO | Upper bound of what a user may read |
| Session level | Confidential within a Secret clearance | Working level chosen at login |
| SELinux MLS range | s0-s3:c0.c255 | Low and high bounds on a Linux process |
Systems often allow a user to log in at a session level below the full clearance, so that ordinary work produces lower-labeled files that can be shared more widely. Changing a label downward, called downgrading or declassification, requires a privileged trusted process and is usually audited.
MLS compared with other access control models
MLS is one specific policy within the broader family of mandatory access control, and it differs sharply from the discretionary access control used by default on Windows, macOS and Linux. The comparison below shows where each model fits.
| Model | Who decides access | Primary goal | Typical deployment |
|---|---|---|---|
| Discretionary access control | Object owner | Flexible sharing | Default desktop permissions and ACLs |
| Multilevel security | System policy by label | Confidentiality across levels | Defense and intelligence systems |
| Biba integrity model | System policy by integrity label | Prevent corruption by low-trust data | Integrity levels, such as Windows Mandatory Integrity Control |
| Type enforcement | Policy by process domain | Confine programs to least privilege | SELinux targeted policy |
| Role-based access control | Assigned organizational roles | Manageable administration | Enterprise applications |
The Biba model is the mirror image of Bell-LaPadula: it forbids reading down and writing up to protect integrity rather than secrecy. Practical systems frequently combine MLS with type enforcement, as SELinux does in its MLS policy, so that both who can see data and what programs may do are constrained.
Implementing MLS in operating systems
A credible MLS system depends on a small, verifiable trusted computing base that mediates every access through a reference monitor. The monitor must be always invoked, tamperproof and small enough to analyze, which is why MLS products have historically been evaluated under the Orange Book (TCSEC) B-levels and later the Common Criteria with the Labeled Security Protection Profile.
- Labeled networking: protocols such as CIPSO and CALIPSO, or IPsec with labels, carry the sensitivity level across hosts so that remote peers enforce the same policy.
- Trusted path: a secure attention key or protected login screen ensures the user talks to the genuine system and sees the true session level.
- Polyinstantiation: shared directories such as /tmp are given separate instances per level so that their contents do not reveal higher-level activity.
- Labeled printing and display: output carries visible banners showing the classification to prevent accidental disclosure.
On Linux, administrators enable MLS by installing the SELinux MLS policy and assigning ranges to users and services. This is considerably more demanding than the default targeted policy, because almost every application must run with correctly assigned labels to function.
Limitations, covert channels and usability
MLS provides strong confidentiality guarantees on paper, but practitioners know its practical costs well. The main technical weakness is the covert channel, a path that leaks information through shared resources rather than through explicit reads and writes.
| Challenge | Cause | Typical response |
|---|---|---|
| Covert storage channel | Shared attributes such as file locks or disk quotas | Analyze and restrict shared state |
| Covert timing channel | Observable timing of CPU or cache use | Add noise, partition resources, limit bandwidth |
| Label creep | Data inherits the highest label it touches | Controlled review and trusted downgrade tools |
| Application breakage | Software assumes it can write anywhere | Policy modules and polyinstantiation |
| Administrative burden | Complex labels for users and objects | Dedicated security officers and tooling |
Because of these costs, many organizations use separate physical or virtual networks per level together with guarded cross-domain solutions instead of a single MLS host. The trade-off is simpler assurance at the price of duplicated infrastructure.
Put simply
Imagine a building where every room and every visitor wears a colored badge showing how secret things are. A visitor may enter rooms at or below their badge color, but anything they carry out of a high room keeps its high color. They cannot leave a secret note in a public room.
Multilevel security makes the computer act like that building. The system itself, not the user, decides who sees what, based on labels. The key benefit is that secrets cannot slip down to people who should not have them, even by mistake or through a malicious program.
In practice
A defense analysis unit runs a Linux workstation cluster with the SELinux MLS policy enabled. Analysts hold clearances up to Secret with two compartments, and each logs in at the session level required for the current task.
An analyst working at Secret opens a briefing and then tries to attach an excerpt to an email addressed to an unclassified contractor mailbox. The mail client process carries the Secret label, so the kernel blocks the write to the lower-level queue. To share approved content, the analyst submits it to a trusted downgrade workflow, where a reviewer releases a sanitized version labeled Unclassified.
Over a year of operation, audit logs show dozens of attempted downward writes, all stopped by policy, and no confirmed leak of labeled material. The unit also avoids maintaining a separate physical network for each classification level.