Multilevel security

Also known as: MLS

On this page 7

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.

RuleInformal nameWhat it prevents
Simple security propertyNo read upA subject reading data above its clearance
Star propertyNo write downA subject copying secret data into a lower-level object
Discretionary propertyNeed-to-know checkAccess beyond permissions granted within a level
Tranquility principleLabels stay stableLabel changes that open covert downgrade paths
Core rules of the Bell-LaPadula model

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.

ElementExample valuesRole in access decisions
Hierarchical levelUnclassified, Confidential, Secret, Top SecretOrders sensitivity from low to high
Category or compartmentNATO, CRYPTO, Project AlphaRestricts access to a defined group
Subject clearanceSecret with NATOUpper bound of what a user may read
Session levelConfidential within a Secret clearanceWorking level chosen at login
SELinux MLS ranges0-s3:c0.c255Low and high bounds on a Linux process
Example of an MLS label scheme

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.

ModelWho decides accessPrimary goalTypical deployment
Discretionary access controlObject ownerFlexible sharingDefault desktop permissions and ACLs
Multilevel securitySystem policy by labelConfidentiality across levelsDefense and intelligence systems
Biba integrity modelSystem policy by integrity labelPrevent corruption by low-trust dataIntegrity levels, such as Windows Mandatory Integrity Control
Type enforcementPolicy by process domainConfine programs to least privilegeSELinux targeted policy
Role-based access controlAssigned organizational rolesManageable administrationEnterprise applications
Multilevel security versus related access control models

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.

ChallengeCauseTypical response
Covert storage channelShared attributes such as file locks or disk quotasAnalyze and restrict shared state
Covert timing channelObservable timing of CPU or cache useAdd noise, partition resources, limit bandwidth
Label creepData inherits the highest label it touchesControlled review and trusted downgrade tools
Application breakageSoftware assumes it can write anywherePolicy modules and polyinstantiation
Administrative burdenComplex labels for users and objectsDedicated security officers and tooling
Common MLS challenges and responses

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.