Inferensys

Glossary

Mandatory Access Control (MAC)

Mandatory Access Control (MAC) is a non-discretionary security model where a central authority enforces access decisions based on predefined security labels assigned to subjects and objects.
ML engineer managing model versions on laptop, version history visible, technical Git-like workflow.
SECURITY MODEL

What is Mandatory Access Control (MAC)?

A foundational security model for enforcing strict, centralized data access policies.

Mandatory Access Control (MAC) is a non-discretionary security model where a central authority, not the resource owner, makes all access decisions based on system-wide security policies and labels assigned to subjects (users/processes) and objects (data/resources). This model enforces a strict hierarchical or compartmentalized flow of information, commonly implemented in government and military systems using classifications like Top Secret, Secret, and Confidential. Unlike Discretionary Access Control (DAC), where owners set permissions, MAC policies are universally applied and immutable by end-users, ensuring consistent enforcement of the principle of least privilege.

In MAC systems, every subject and object is tagged with immutable security labels defining its sensitivity level and need-to-know compartments. The central Policy Enforcement Point (PEP) compares these labels against a predefined security policy—such as the Bell-LaPadula model for confidentiality—to allow or deny access. This architecture is critical for agentic threat modeling and secure enclave execution, where autonomous AI agents must operate within rigidly defined authorization boundaries. By eliminating user discretion, MAC provides a robust framework for tenant isolation and protecting sensitive data in multi-agent or multi-tenant environments.

SECURITY MODEL

Core Characteristics of MAC

Mandatory Access Control (MAC) is a non-discretionary security model where a central authority enforces access decisions based on predefined security labels assigned to both subjects (users/processes) and objects (data/resources).

01

Centralized Policy Enforcement

In MAC, access decisions are mandated by a central policy, not by the resource owner. A Policy Decision Point (PDP), such as a security kernel or reference monitor, evaluates all access requests against a global security policy. This eliminates the risk of users accidentally or maliciously misconfiguring permissions, as seen in Discretionary Access Control (DAC) models. The policy is defined by a system security officer, not individual users.

02

Labels and Classifications

MAC operates on a system of security labels assigned to all entities. These labels typically include:

  • Classification Levels: Hierarchical tiers like Top Secret, Secret, Confidential, Unclassified.
  • Compartments: Non-hierarchical categories (e.g., Project Alpha, Finance, EU-Only) that enforce need-to-know. A subject can access an object only if the subject's label dominates the object's label, meaning it meets or exceeds the classification level and possesses all required compartments. This is formalized in models like Bell-LaPadula.
03

Non-Discretionary Control

The defining feature of MAC is its non-discretionary nature. Users cannot alter the access rights to resources they own. This is a fundamental contrast to Discretionary Access Control (DAC), where file owners can set permissions via Access Control Lists (ACLs). In MAC, the policy is immutable by end-users, providing a higher assurance security model suitable for environments with strict data sovereignty, regulatory compliance, or classified information handling.

04

Principle of Least Privilege Enforcement

MAC is a rigorous implementation of the principle of least privilege. Access is granted only if explicitly permitted by the security policy based on label matching. There are no default or inherited broad permissions. This minimizes the attack surface and limits the potential damage from compromised accounts. Even if a user's credentials are stolen, the attacker is constrained by the victim's security label and cannot access data at a higher classification or in different compartments.

05

Formal Security Policy Models

MAC is implemented using mathematically formal models that define precise rules for information flow. The two most cited models are:

  • Bell-LaPadula Model: Focuses on confidentiality. Enforces the simple security property (no read-up) and the *property (no write-down).
  • Biba Model: Focuses on integrity. Enforces the simple integrity property (no read-down) and the *integrity property (no write-up). These models provide a provable foundation for system security, moving beyond ad-hoc permission lists.
06

Use Cases and Examples

MAC is employed in high-security environments where data confidentiality and integrity are paramount.

  • Military and Government Systems: Classified data handling (e.g., SELinux, originally developed by the NSA).
  • Highly Regulated Industries: Healthcare (HIPAA), Finance (PCI-DSS) for protecting sensitive patient or financial data.
  • Multi-Tenant Cloud Infrastructure: Enforcing strict tenant isolation in SaaS platforms.
  • Container and Microservice Security: Using Linux Security Modules (LSMs) like AppArmor or SELinux to sandbox processes. In these contexts, MAC provides the deterministic, auditable control required for compliance and risk mitigation.
ACCESS CONTROL MODELS

MAC vs. DAC vs. RBAC: Access Control Models Compared

A comparison of the core characteristics, enforcement mechanisms, and typical use cases for three fundamental access control models: Mandatory Access Control (MAC), Discretionary Access Control (DAC), and Role-Based Access Control (RBAC).

Feature / CharacteristicMandatory Access Control (MAC)Discretionary Access Control (DAC)Role-Based Access Control (RBAC)

Primary Decision Authority

Centralized Security Policy / System

Resource Owner / User

Centralized Role Administrator

Permission Flexibility

Enforcement Granularity

Object & Subject Labels (e.g., Top Secret, Confidential)

Access Control Lists (ACLs) on objects

Roles assigned to users; Permissions assigned to roles

User's Ability to Delegate Access

Inherent Support for Least Privilege

Typical Administrative Overhead

High (Label Management, Policy Definition)

Low to Moderate (User-Managed)

Moderate (Role Engineering, User-Role Assignment)

Common Implementation Examples

SELinux, Trusted Solaris, Military Systems

Unix/Linux file permissions (user/group/other), Windows ACLs

Enterprise IAM systems, Cloud IAM (AWS IAM, Azure RBAC)

Best Suited For

Environments with strict, multi-level security requirements (MLS)

Collaborative environments where resource owners control sharing

Structured business environments with clear functional roles

PERMISSION AND SCOPE MANAGEMENT

Frequently Asked Questions

Mandatory Access Control (MAC) is a foundational security model for enforcing strict, centralized authorization policies. These questions address its core mechanisms, applications in AI systems, and its distinction from other access control models.

Mandatory Access Control (MAC) is a non-discretionary security model where a central policy administrator defines and enforces all access decisions based on system-wide security labels assigned to subjects (users, processes) and objects (files, data).

Unlike Discretionary Access Control (DAC), where resource owners set permissions, MAC removes user discretion. Access is determined by comparing security labels, which typically consist of a classification (e.g., Top Secret, Confidential) and compartments (e.g., PROJECT_ALPHA, FINANCE). A subject can access an object only if the subject's label dominates the object's label—meaning the subject's classification is equal to or higher and the subject possesses all required compartments. This model is fundamental to multi-level security (MLS) systems used by governments and highly regulated industries to prevent data leakage.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.