Cyberstudy
4.6 In progress

Discretionary and Mandatory Access Control

13 flashcards

Summary

Access control models decide who sets permissions and how. In discretionary access control (DAC) the owner of a resource decides who may use it. In mandatory access control (MAC) the system enforces rules based on security labels that users can't change.

In plain words

In discretionary access control (DAC) the owner of a file decides who can use it; Windows and Linux work this way by default. In mandatory access control (MAC) the system decides using labels and clearances that users can't change.

Detailed explanation

  • Discretionary access control (DAC): Resource owners grant and revoke permissions at their own discretion, usually through access control lists.
    • Strength: Flexible and easy to use; the default model of Windows and Linux file systems.
    • Weakness: Hard to control centrally, and malware running as a user inherits that user's ability to change permissions.
  • Mandatory access control (MAC): The system grants access by comparing a subject's clearance with an object's classification label; owners can't override it.
    • Labels: Classification levels such as Confidential, Secret and Top Secret.
    • Compartments: Categories within a level that also require need-to-know.
    • Implementations: SELinux and military or government systems.
  • Bell-LaPadula model: A confidentiality model for MAC: no read up (can't read above your clearance) and no write down (can't write to a lower level).

Important terms

taken from the text above
Discretionary access control (DAC)
Resource owners grant and revoke permissions at their own discretion, usually through access control lists.
Mandatory access control (MAC)
The system grants access by comparing a subject's clearance with an object's classification label; owners can't override it.
Labels
Classification levels such as Confidential, Secret and Top Secret.
Compartments
Categories within a level that also require need-to-know.
Implementations
SELinux and military or government systems.
Bell-LaPadula model
A confidentiality model for MAC: no read up (can't read above your clearance) and no write down (can't write to a lower level).

Examples & real-world scenarios

  • DAC: you share a document with a colleague.
  • MAC: a 'Secret' clearance can read Secret and lower, but not Top Secret.
  • Compartments: 'Secret + HR' access.

Scenario

A contractor is added to a project folder by the folder's owner without IT knowing. That's DAC's flexibility, and its weakness for central control.

Common mistakes

  • Reading 'Write Up, Read Down' as a mistake. It lists what's allowed, which is the same rule as 'no read up, no write down'.
  • Thinking MAC labels can be changed by the data owner.

Practical skills

  • Decide whether a scenario describes DAC or MAC.

What I should remember

  • DAC: The owner decides who gets access.
  • MAC: The system enforces access using labels and clearances.
  • Bell-LaPadula: No read up, no write down; protects confidentiality.
  • SELinux: A common MAC implementation on Linux.