---
title: "Choosing an Access-Control Model | FiveStudy"
description: "Subjects, objects, and operations; RBAC, RuBAC, DAC, and MAC; Bell-LaPadula's read down, write up; least privilege; and how to choose a model for an organization."
url: https://fivestudy.com/guides/ap-cybersecurity-5-2-c-choosing-an-access-control-model
---

[AP Cybersecurity](https://fivestudy.com/ap-cybersecurity) · Study guide

# Choosing an Access-Control Model

[Figure: FiveStudy]

FiveStudy

AP® Cybersecurity · Unit 5 · Applications, Data & Cryptography

AP® Cybersecurity · Unit 5 · Applications, Data & Cryptography

# Choosing an Access-Control Model

Subjects, objects, and operations; role-based, rule-based, discretionary, and mandatory access control; Bell-LaPadula; and least privilege.

1. Subjects, objects, operations 2. Role-based access control (RBAC) 3. Rule-based access control (RuBAC) 4. Discretionary access control (DAC) 5. Mandatory access control (MAC) and Bell-LaPadula 6. Least privilege 7. Choosing a model 8. Worked examples 9. Common mistakes

## 1 Subjects, objects, operations

**Access control** enforces which users or applications (**subjects**) can access, modify, add, or remove (**operations**) which files or applications (**objects**). An **access control model** is the method for deciding which subjects get which operations on which objects. Four models differ in *who* makes that decision and *what it is based on*.

## 2 Role-based access control (RBAC)

RBAC assigns every subject to a **role** and defines which roles have which access to which objects. Permissions attach to the role, not the person. If “accountant” is a role and the payroll software is an object, only subjects assigned to “accountant” can use the payroll software. When someone changes jobs, an administrator changes their role and every permission follows.

## 3 Rule-based access control (RuBAC)

RuBAC checks a set of **rules** to decide what access a subject has to an object, and allows or denies based on those rules. It is usually **layered on top of another model**. For example, a rule can block everyone, even people who normally have access, from a database outside local working hours.

| User | Role | Object | Time | Decision |
| --- | --- | --- | --- | --- |
| mrivera | accountant | payroll app | 10:00 | allowed |
| tbanks | sales | payroll app | 10:00 | denied (role) |
| jcho | accountant | payroll app | 23:00 | denied (rule: outside 08:00 to 18:00) |

The role check (RBAC) runs first; the time rule (RuBAC) then applies even to people the role allows. `jcho` is an accountant, but at 23:00 the rule denies access.

## 4 Discretionary access control (DAC)

DAC lets each subject set the access that others have to the objects they **own**. Bob creates a file and decides that Alice may edit it, Frank may only view it, and everyone else gets no access. Some subjects are administrators (super users) who can override what owners set. Sharing a document from your own cloud drive is DAC: you are the one choosing.

## 5 Mandatory access control (MAC) and Bell-LaPadula

MAC follows strict rules about what access each subject *level* has to objects above, at, or below that level. Levels for both subjects and objects are assigned by an outside administrator; owners cannot change them.

The **Bell-LaPadula model** is a MAC model used by governments and the military to protect confidentiality. It has two properties:

- **Simple Security Property**: subjects may not *read* objects above their level (no read up).
- *** (Star) Security Property**: subjects may not *write* to objects below their level (no write down).

Together these are summarized as **“write up, read down” (WURD)**.

**Figure 1.** Reading down and writing up both keep information from flowing to a lower level. A Secret subject can never copy Secret text into an Unclassified file.

| Object level | Secret subject reads it? | Secret subject writes to it? |
| --- | --- | --- |
| Top Secret | denied | allowed |
| Secret | allowed | allowed |
| Confidential | allowed | denied |
| Unclassified | allowed | denied |

## 6 Least privilege

The **principle of least privilege** says every entity should get as much access as it needs to do its job, and no more. It applies under every model: roles should carry only the permissions the job needs, owners should share narrowly, and a stolen account then reaches as little as possible.

## 7 Choosing a model

| Model | Who decides access | Based on | Fits best when |
| --- | --- | --- | --- |
| RBAC | Administrators define roles | The subject's job role | Many people share the same jobs (a company, a hospital, a school) |
| RuBAC | Administrators write rules | Conditions such as time, location, or device | Extra limits are needed on top of another model |
| DAC | The owner of each object | The owner's choice | People need to share their own files flexibly |
| MAC | An outside administrator assigns levels | Fixed levels for subjects and objects | Confidentiality is critical and must not depend on users (government, military) |

The key idea

RBAC grants access by role, RuBAC adds conditions like time, DAC lets owners decide, and MAC enforces fixed levels set by an administrator. Bell-LaPadula is the MAC model that reads down and writes up. Under any model, give the least privilege needed.

## 8 Worked examples

Worked Example 1 Choose a model

### The hospital

A 400-bed hospital has nurses, doctors, pharmacists, and billing staff, and people move between departments often. Which model fits best for its patient-record system?

1. 1

   Many people share a small number of jobs, and each job needs the same access.

2. 2

   When staff move departments, changing their role updates every permission at once.

**Answer:** RBAC. Grant access to records by role (nurse, pharmacist, billing), and add RuBAC rules if needed.

Worked Example 2 Apply Bell-LaPadula

### The analyst's report

An analyst cleared at Confidential wants to (a) read a Secret briefing, (b) read an Unclassified news summary, (c) write notes into a Top Secret file, (d) write notes into an Unclassified file. Which are allowed?

1. 1

   (a) Secret is above Confidential: no read up. Denied.

2. 2

   (b) Unclassified is below: reading down is allowed.

3. 3

   (c) Top Secret is above: writing up is allowed.

4. 4

   (d) Unclassified is below: no write down. Denied.

**Answer:** (b) and (c) are allowed; (a) and (d) are denied.

Worked Example 3 Identify the model

### Name it

Name the model: (a) a student shares a slideshow and sets one classmate to edit and another to view; (b) no one can log in to the payroll system from outside the country; (c) document labels are set by a security office and users cannot change them.

1. 1

   (a) The owner chooses who gets which access: DAC.

2. 2

   (b) A condition (location) decides access: RuBAC.

3. 3

   (c) Fixed levels set by an outside administrator: MAC.

**Answer:** (a) DAC, (b) RuBAC, (c) MAC.

Worked Example 4 Least privilege

### The summer intern

A summer intern needs to update the company blog. IT gives the intern the same role as the marketing manager, which includes access to the customer list and the ad budget. Evaluate.

1. 1

   The intern's job needs blog editing only.

2. 2

   The manager's role carries far more access than that.

3. 3

   If the intern's account is phished, the attacker reaches customer data and the budget.

**Answer:** This violates least privilege. Create a narrower role with blog access only.

## 9 Common mistakes

Common Mistake 1 · Mixing up RBAC and RuBAC

Role-based asks “what is your job?” Rule-based asks “does this request meet the conditions?” RuBAC is usually added on top of another model.

Common Mistake 2 · Reversing Bell-LaPadula

It is read *down* and write *up*. Both directions stop information from flowing to a lower level.

Common Mistake 3 · Thinking DAC means no control

Owners decide, but administrators can still override their settings.

Justify an access control model like this

“Role-based access control fits the school because staff fall into a few roles, such as teacher, counselor, and office staff, that each need the same access. A rule that blocks the grade system outside school hours can be layered on top with rule-based access control, and each role should get only the access its job requires.”

Name the model, connect it to how the organization is structured, and apply least privilege.

FiveStudy AP® Cybersecurity · Choosing an Access-Control Model
