Modelintro
Mandatory access control
Also called nondiscretionary access control.
An access control model in which a system-wide policy on labels of subjects and objects decides access, and users cannot override it.
Mandatory access control (MAC) is the class of access control policies in which a rule fixed for the whole system decides access, from labels attached to subjects and objects, and no ordinary user can change the rule or the labels. In the TCSEC (1985), the rule restricts access by the sensitivity of the information in an object, given by its label, and the formal authorization, the clearance, of the subject. The owner of a file cannot grant a reader who lacks the clearance, and a program cannot copy secret data into a public file, even when every discretionary right allows it. MAC is the counterpart of discretionary access control: the two differ in who may change the policy. The Bell-LaPadula model is the main model of the class for confidentiality and the Biba model for integrity; MAC is the class, and these are models in it.
The machine
State. A protection state as in the access control matrix, and in addition:
- a finite set of labels with a partial order dom ("dominates"), usually a lattice;
- a label function that maps each subject and each object to a label.
A common label is a pair of a level from a total order, such as unclassified < confidential < secret < top secret, and a set of categories, such as {crypto, nuclear}. Then dom exactly when and . The labels with this order form a lattice, the Denning lattice of security classes.
Decision. A request is allowed when the discretionary matrix allows it and the mandatory rule allows it. For the confidentiality rule of Bell and LaPadula, with the rights read and write:
CHECK(s, o, r)- 1
if r ∉ A[s, o] then return false ▷ the discretionary part - 2
if r = read then return lab(s) dom lab(o) ▷ no read up - 3
if r = write then return lab(o) dom lab(s) ▷ no write down - 4
return false
Line L2 lets a subject read only objects at or below its own label. Line L3 lets it write only objects at or above its label, so that it cannot copy what it read into a place with a lower label. The Biba rule for integrity turns both tests around: read only at or above, write only at or below.
Transitions. Users change the matrix by discretionary commands, as on the DAC page. No user command changes or the order dom. Only a trusted subject, such as a security officer, may set a label, or lower the label of an object (declassify it); the reference monitor applies the rule at each access.
Example. Take two labels, low and high, with high dom low. Bob is high, carol is low, f1 is high and the file g of carol is low. The Trojan horse of the DAC page runs as bob: it reads f1, which line L2 allows because high dom high, and tries to write g. Line L3 denies this, because low does not dominate high, whatever rights the matrix gives. The same program run by carol cannot read f1 at all, by line L2. The data of f1 can reach carol only through a declassification by a trusted subject, or through a covert channel, which the access rule does not see.
What it counts
The access decision. One lookup in the matrix and one test of dom. With categories stored as a bit mask of bits, the test is one comparison of levels and one subset test, so it takes time in the word RAM when fits in a word, and bit operations in general. The label of each subject and object costs bits, where is the number of levels.
Safety. The question changes from "can a right leak?" to "can information flow from a high label to a lower one?". For Bell-LaPadula with no trusted subjects, each access that the rule allows moves information only upward in dom, so no sequence of allowed accesses moves it down; this is the content of the basic security theorem. The discretionary part can still leak rights, but a leaked right cannot pass the mandatory test.
Relation to other models
- DAC. In DAC the holders of rights change the policy; in MAC only the system does. Most systems apply both, as line L1 shows: MAC limits what DAC can grant.
- Bell-LaPadula and Biba. The Bell-LaPadula model is MAC for confidentiality with the rule above, and the Biba model is MAC for integrity with the dual rule. Using both with the same labels allows reads and writes only at the same label.
- Lattice models of flow. The Denning lattice model explains why the labels form a lattice: the label of data computed from two inputs is their join. Noninterference states the goal of MAC as a property of the whole system, not of single accesses.
- RBAC. Osborn, Sandhu and Munawer (2000) showed how to configure role-based access control so that it enforces lattice-based MAC, with a role for each label and separate roles for reading and for writing. RBAC shares the main trait of MAC: the administrator, not the user, assigns roles.
- Other mandatory rules. Type enforcement, as in SELinux, labels each process with a domain and each object with a type, and a fixed table says which domain may do what to which type. The table has no order, so it is MAC without a lattice.
Known results in the model
- Decision. One matrix lookup and one dom test, time in the word RAM for labels that fit in a word.
- No flow downward. For a Bell-LaPadula system with no trusted subjects, every reachable state is secure if the initial state is and every transition keeps the two properties; see the basic security theorem.
- Simulation. RBAC with suitable constraints can enforce lattice-based MAC (Osborn, Sandhu and Munawer 2000).
- Limits. The rule is about single accesses. It does not stop flows through shared resources that are not objects, such as timing or the state of a disk arm; the TCSEC asks for an analysis of these covert channels in its higher classes, and the confinement problem states the general question.
References
- Department of Defense, Trusted Computer System Evaluation Criteria, DoD 5200.28-STD, December 1985, the glossary entries for mandatory access control and sensitivity labels, and the mandatory access control requirements of the classes of division B
- D. Elliott Bell and Leonard J. LaPadula, Secure computer system, unified exposition and Multics interpretation, MITRE technical report MTR-2997, 1976, the simple security property, the star property and the discretionary security property
- Sylvia Osborn, Ravi Sandhu and Qamar Munawer, Configuring role-based access control to enforce mandatory and discretionary access control policies, ACM Transactions on Information and System Security 3(2), 2000, pages 85 to 106 (lattice-based mandatory policies as role-based configurations)
- Jerome H. Saltzer and Michael D. Schroeder, The protection of information in computer systems, Proceedings of the IEEE 63(9), 1975, pages 1278 to 1308 (controls that a user cannot change, and the compartments of a system)
- Matt Bishop, Computer Security: Art and Science, second edition, Addison-Wesley, 2018, ISBN 9780321712332, Chapter 4, Section 4.4 (types of access control, discretionary and mandatory)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag EFKQSM Edit this page History Report an error Markdown