Discretionary and Mandatory Access Control
Access control models describe who decides access and how. This lesson explains discretionary access control, in which owners decide, and mandatory access control, in which the system enforces labels and clearances.
Learning outcomes
After completing this lesson, you will be able to:
- Describe subjects, objects and access control models.
- Explain discretionary access control and its weaknesses.
- Explain mandatory access control with labels and clearances.
- Determine whether a clearance dominates a label.
Subjects, objects and access control models
Access control is described in terms of subjects (active entities such as users and processes) requesting access to objects (passive entities such as files, databases and devices) to perform operations such as read, write or execute. An access control model defines how the decision is made and who can change it. The two classic models are discretionary and mandatory access control, which sit at opposite ends of the spectrum of control.
Discretionary access control
In discretionary access control (DAC), the owner of an object, usually its creator, decides who may access it and with what permissions. Permissions are typically stored in an access control list (ACL) attached to the object. Standard file permissions in Windows (NTFS ACLs) and Linux (owner, group and other permissions, plus POSIX ACLs) are DAC, as is sharing a document with colleagues in a cloud storage service.
DAC is flexible and familiar, and it lets people share information easily. Its weaknesses follow from the same flexibility. Security depends on owners making good decisions, so over-sharing is common. Permissions are scattered across many objects, so it is hard to see who can access what. And a program running with a user's rights, including malware, can read and change everything the user can and can change the permissions of the user's files. Organisations limit DAC's weaknesses with policies, default permissions, monitoring and periodic reviews.
The following diagram compares the owner's change with precise sharing.

DAC or MAC?
Mandatory access control
In mandatory access control (MAC), access is decided by the system according to a central policy that users cannot change. Every object carries a security label with a classification level, such as Confidential, Secret or Top Secret, and often categories or compartments, such as a project name. Every subject has a clearance with a level and categories. Access is granted only if the subject's clearance dominates the object's label (the level is high enough and the subject holds every category) and the subject has need to know.
Owners cannot override MAC: even the creator of a Secret document cannot share it with an Unclassified user. MAC is used where confidentiality is paramount, such as military and intelligence systems. It is implemented in operating systems through mechanisms such as SELinux and AppArmor, which also confine processes so that a compromised service cannot access files outside its policy. MAC is strong and consistent but rigid and administratively demanding, because every object and subject must be labelled correctly.
The following comparison summarises the two models.
Labels and clearances in practice
Consider a document labelled Secret: Project Atlas. A user cleared for Top Secret: Project Atlas, Project Borealis may read it: the level is higher and the user holds the Atlas category. A user cleared for Top Secret: Project Borealis may not, because the user lacks the Atlas category, despite the higher level. A user cleared for Confidential: Project Atlas may not, because the level is too low. Categories implement need to know within a level.
Identifying the model
In a government system, an analyst who created a report cannot give a colleague access to it; the system grants access automatically to anyone whose clearance and compartments match the report's marking. Which model is in use?
Mandatory access control. The decisive clues are labels (markings) and clearances, and that the owner cannot grant access. In DAC, the analyst as owner could share the report.
The risk of DAC
On a shared Linux server, a user sets permissions on a home directory containing customer exports to allow read access for all users, to share one file with a colleague. Which weakness of DAC does this illustrate, and what controls help?
It shows over-sharing by owners, the main weakness of DAC: the owner granted far broader access than needed. Helpful controls are restrictive default permissions (a umask that denies access to others), sharing through a group or an ACL entry for the specific colleague, periodic scans for world-readable sensitive files, and policy and training on data handling.
A user cleared for Secret with categories Alpha and Beta requests a document labelled Secret: Alpha, Gamma. Is access granted under MAC?
Show answer
No. The level matches, but the user lacks the Gamma category, so the clearance does not dominate the label.
Exam Tips
Remember for the exam
- Owner decides: DAC. Labels and clearances, system decides: MAC.
- Clearance must dominate the label: level and all categories.
- Malware running as a user inherits that user's DAC permissions.