BIT303 · 0 · 10 marks
Consider a system having users U1, U2, U3 & files F1, F2 and F3 as F4. User U1 can read and write files F2 and F3. User U2 can read all the files but can perform write operation on F2. The user U3 can perform read operation on F3 and append on file F4. Now prepare access control matrix, access contr
Consider a system having users U1, U2, U3 & files F1, F2 and F3 as F4. User U1 can read and write files F2 and F3. User U2 can read all the files but can perform write operation on F2. The user U3 can perform read operation on F3 and append on file F4. Now prepare access control matrix, access control list and capability list.[10]
Access Control Matrix, ACL, and Capability List
Given
Subjects (Users): U1, U2, U3 Objects (Files): F1, F2, F3, F4
Stated permissions:
- U1: read and write on F2 and F3
- U2: read all files (F1, F2, F3, F4); write on F2
- U3: read on F3; append on F4
All permissions fully specified. Nothing missing.
Solution
1. Access Control Matrix
Rows = subjects (users), Columns = objects (files). Each cell holds allowed operations.
| F1 | F2 | F3 | F4 | |
|---|---|---|---|---|
| U1 | -- | Read, Write | Read, Write | -- |
| U2 | Read | Read, Write | Read | Read |
| U3 | -- | -- | Read | Append |
-- denotes no access rights.
2. Access Control List (ACL)
Derived column-wise; each file stores the list of users and their rights.
F1 --> (U2: Read)
F2 --> (U1: Read, Write) --> (U2: Read, Write)
F3 --> (U1: Read, Write) --> (U2: Read) --> (U3: Read)
F4 --> (U2: Read) --> (U3: Append)
ACL is attached to each object (file); convenient for answering "who can access this file?"
3. Capability List
Derived row-wise; each user holds a list (capabilities/tickets) of files with rights.
U1 --> (F2: Read, Write) --> (F3: Read, Write)
U2 --> (F1: Read) --> (F2: Read, Write) --> (F3: Read) --> (F4: Read)
U3 --> (F3: Read) --> (F4: Append)
Capability list is attached to each subject (user); convenient for answering "what can this user access?"
Comparison Summary
| Feature | Access Matrix | ACL | Capability List |
|---|---|---|---|
| Perspective | Full 2D table | Per file (column) | Per user (row) |
| Stored with | System table | Each object | Each subject |
| Answers | Overview | Who can access file? | What can user access? |
All three representations encode the same rights, consistent with the given permissions.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.