Course contentsShow
← Computer Science
Lesson 2530 of 2,87256. Authentication and AuthorizationFree lesson

Mandatory Access Control (MAC)

Understand MAC systems where access is determined by security labels and clearance levels.

Mandatory Access Control (MAC)

What you'll learn: How Mandatory Access Control uses centralized security labels and clearance levels to enforce system-wide access decisions that users cannot override.

What Is MAC?

Mandatory Access Control is an access control model where the operating system or security kernel enforces access decisions based on pre-defined security policies, rather than allowing individual users or resource owners to decide permissions. Unlike discretionary models where you can share your files as you choose, MAC imposes strict, system-wide rules that cannot be bypassed by ordinary users.

How MAC Works

In MAC systems, every subject (user or process) and every object (file, database, resource) receives a security label. These labels represent classification levels, such as:

  • Top Secret
  • Secret
  • Confidential
  • Unclassified

Users are assigned clearance levels that determine the maximum classification they can access. A core principle is no read up, no write down:

  • You cannot read data classified above your clearance level (prevents unauthorized access)
  • You cannot write data to levels below your clearance (prevents information leakage)

Real-World Analogy

Think of a military base: soldiers with "Confidential" clearance cannot enter "Top Secret" rooms, regardless of their personal relationships with people inside. The base security (the system) enforces these rules centrally—individual soldiers cannot change room classifications or grant access to their friends.

MAC vs Other Models

Unlike RBAC or ACLs where administrators or owners grant permissions, MAC decisions are policy-driven and mandatory. The system administrator defines security policies, and even administrators cannot easily override them without changing the entire security policy framework.

Key Takeaway: Mandatory Access Control enforces access decisions through centralized security labels and clearance levels, preventing users from modifying permissions and ensuring strict, policy-driven security suitable for highly sensitive environments.