πŸŽ“ BookMCQ
← Back to 14. Protection

πŸ“ Comparison of Implementation of the Access Matrix techniques (12 MCQs)

Four Representations of the Access Matrix

The access matrix is a logical protection model that can be implemented through global tables, access control lists, capability lists, and lock-key mechanisms. These techniques represent the same general relationship between domains, objects, and permitted operations, but organise the information differently. Their practical differences concern lookup direction, storage efficiency, delegation, administration, and revocation.

Choosing Storage Around Access Patterns

A global table stores authorised domain-object-rights records centrally. An ACL attaches permitted subjects and rights to each object, while a capability list records accessible objects and rights within each domain. Lock-key mechanisms use matching credentials. The best representation depends on whether administration usually begins with an object, a process, or a broad collection of permissions.

Comparing Permission Lookup Procedures

For an ACL, the system examines the target object's list to find the requesting subject. A capability design checks the requesting domain's capabilities for the object and right. A global table searches for a matching tuple, while a lock-key design checks for a valid match. Indexing, caching, and kernel architecture affect actual lookup performance.

Example of Equivalent Permission Policies

Suppose D1 may read F1 but not write it. An ACL for F1 lists D1 with read permission; D1's capability list contains a read capability for F1; and a global table stores D1, F1, read. Each representation expresses the same authorisation even though the permission is stored in a different place.

Trade-Offs in Delegation and Revocation

ACLs make object-specific revocation relatively direct, while capability systems can make delegation efficient but copied capabilities harder to invalidate. Global tables centralise policy records but may require searching. Lock-key arrangements can simplify shared permissions yet make key changes broad in effect. No representation is universally superior across every workload and security requirement.

Misconceptions When Comparing Implementations

'An ACL and a capability list store permissions in the same direction' overlooks their object-centred and domain-centred organisation. 'The global table is the access matrix itself' confuses one implementation with the abstract model. 'Capabilities cannot be revoked' is too absolute because indirection, versioning, and other mechanisms can support revocation.

Exam Focus: Selecting and Comparing Representations

Be able to identify the storage location of permissions in each technique and trace how a request is checked. Comparison questions commonly focus on lookup, storage for sparse matrices, delegation, and revocation. Use a small D1-to-F1 example to show how the same read permission can be represented in different forms.

Key Terms of Access Matrix Implementations

  • Global table - Central permission record collection.
  • ACL - Object-centred permission list.
  • Capability - Domain-held reference carrying authority.
  • Lock-key - Matching credential-based representation.
  • Revocation - Withdrawal of existing access rights.
2
Easy
6
Medium
4
Hard

πŸ“ All Comparison of Implementation of the Access Matrix techniques MCQs

Q1. Domain D1 holds the copy right for read on file F2. Which action is D1 allowed to perform?

A.Delete the read right from D1's entry
B.Copy the read right into D3's entry for F2 βœ…
C.Transfer ownership of F2 to D3
D.Grant execute right to D2
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: The copy right permits duplication of an existing right without taking it away from the original entry. Consequently D1 can copy the read right for F2 into D3’s column while still retaining its own read right. Deleting the right would require a delete or owner right, which D1 does not have. Transferring ownership or granting an unrelated execute right also needs different rights. Thus the only permitted action aligns with option B.

Q2. If a domain possesses the transfer right for write on file F1, what occurs when it uses this right?

A.The write right is duplicated to another domain while remaining in the original
B.The write right moves to another domain and is removed from the original βœ…
C.Only a limited copy of the write right is created
D.The domain gains owner rights for F1
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: The transfer right is defined to move a right from one domain to another and simultaneously remove it from the source entry. When a domain uses the transfer right for write on F1, the write permission disappears from the original domain and appears in the target domain. Options describing duplication or limited copying do not match this definition, and gaining owner rights is unrelated. Therefore the correct choice is option B.

Q3. Which statement best distinguishes the copy, transfer, and limited copy rights in an access matrix?

A.Copy creates a permanent duplicate; transfer removes the original; limited copy creates a duplicate that cannot be further copied.
B.Copy and transfer are identical; limited copy only works for read rights.
C.Copy duplicates without removal; transfer moves the right and deletes it from the source; limited copy duplicates but blocks any subsequent copying of the new right. βœ…
D.All three rights behave the same except for owner rights.
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: The copy, transfer, and limited copy rights each manipulate rights differently. A copy right creates a duplicate while leaving the original intact. A transfer right moves the right, deleting it from the source. A limited copy right also creates a duplicate, but the newly created right cannot be copied again, preventing further propagation. Options that claim all three behave identically or that limited copy works only for read rights are inaccurate. Hence option C correctly captures the distinctions.

Q4. Why is the owner right essential for adding or removing other rights in a column of the access matrix?

A.It grants the domain authority to modify any entry for the associated object. βœ…
B.It automatically propagates all rights to every domain.
C.It limits the domain to only read operations on the object.
D.It converts copy rights into transfer rights.
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: The owner right grants a domain the authority to modify any entry in the column of the object it owns. This ability includes adding new rights or deleting existing ones for that object, which is why the owner can manage the matrix for its column. It does not automatically spread rights to other domains, nor does it restrict the domain to read‑only access. Consequently, option A accurately describes the essential function of the owner right.

Q5. What does the term 'owner right' refer to in the context of an access matrix?

A.A right that allows a domain to execute a file.
B.A right that permits a domain to copy any other right.
C.A right that gives a domain the ability to add or delete rights for a particular object. βœ…
D.A right that restricts a domain to read-only access.
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: The owner right is a special privilege that allows a domain to add or remove rights for a specific object, effectively controlling the column associated with that object in the access matrix. It is not limited to execution, copying, or read‑only permissions. Recognizing this definition helps distinguish the owner right from other rights such as copy or transfer. Option C precisely states the role of the owner right.

Q6. Domain D2 copies the read* right from D1 to D3 using the limited copy right. Which of the following is true about D3's ability to further copy this right?

A.D3 can copy the read* right to any other domain because it now holds a copy right.
B.D3 can copy the read* right only if it also possesses the transfer right.
C.D3 cannot copy the read* right again because the limited copy right prevents further propagation. βœ…
D.D3 can delete the read* right from its own entry but cannot copy it.
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: Limited copy rights allow a domain to duplicate a right but deliberately block any further copying of the newly created right. When D2 uses a limited copy to move the read* right from D1 to D3, D3 obtains the right but cannot propagate it because the limited copy restriction applies to the copied instance. Options suggesting that D3 can copy again or that additional conditions are needed do not reflect the limited copy behavior. Therefore option C is correct.

Q7. A system implements all three copy rights. Which combination of rights allows a domain Dk to propagate a newly obtained write right to another domain and still retain the original right?

A.Copy right alone βœ…
B.Transfer right alone
C.Limited copy right alone
D.Both copy and transfer rights together
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: The copy right alone creates a duplicate of a right while preserving the original, enabling the domain to propagate the right to another domain without losing its own privilege. Transfer removes the original right, and limited copy blocks further copying. To both propagate a newly obtained write right and retain it, the copy right is sufficient. Options involving transfer or limited copy would either remove the original or prevent further use. Hence option A correctly identifies the required combination.

Q8. How does allowing the transfer right instead of only the copy right affect the overall security of the system?

A.It reduces the number of rights in the matrix, making it easier to audit.
B.It increases the risk of rights being lost unintentionally, but does not change privilege escalation possibilities.
C.It enables a domain to move a right to another domain while removing it from itself, which can be used to delegate authority but also to hide the origin of a privilege. βœ…
D.It forces every domain to become an owner of all objects.
πŸ’‘ Difficulty: hard | βœ… Correct: C

πŸ“– Explanation: Allowing the transfer right lets a domain move a privilege to another domain and erase it from the source, which can be used to delegate authority but also to obscure where a privilege originated. This can increase the difficulty of tracking privilege escalation compared to a simple copy right that leaves the original untouched. While auditability may improve, the potential for hidden delegation raises security concerns. Option C captures this nuanced impact on system security.

Q9. In what way does the limited copy right impact the closure of rights when calculating the transitive closure of an access matrix?

A.It adds additional paths, expanding the closure.
B.It blocks the creation of new paths from the copied right, thus limiting the closure. βœ…
C.It has no effect on the closure because it behaves like a regular copy.
D.It converts all rights into owner rights, simplifying the closure.
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: The limited copy right creates a duplicate that cannot be copied again, effectively cutting off any additional paths that would arise from further duplication. When computing the transitive closure of rights, such a restriction eliminates the branches that would have been formed by unlimited copying, thereby limiting the closure. It does not add paths or behave like a regular copy, and it does not convert rights to owner rights. Option B accurately describes this effect.

Q10. Given an initial matrix where D1 is the owner of F1 and D2 is the owner of F2 and F3, D1 attempts to add a write right to F3. After the operation, which entries contain the new write right?

A.Only the entry (D1, F3) receives the write right.
B.Only the entry (D2, F3) receives the write right.
C.Both entries (D1, F3) and (D2, F3) receive the write right.
D.No entry receives the write right because D1 lacks ownership of F3. βœ…
πŸ’‘ Difficulty: hard | βœ… Correct: D

πŸ“– Explanation: Owner rights are scoped to the column of the object a domain owns. Since D1 owns F1 but not F3, it cannot add rights to the column of F3. Attempting to add a write right to F3 therefore fails, leaving the matrix unchanged. Options suggesting that D1’s entry, D2’s entry, or both receive the new write right assume D1 has authority over F3, which it does not. Consequently, the correct answer is option D.

Q11. A domain D1 holds a limited copy right for execute on file F1 and copies it to D2. D2 then attempts to copy the execute right to D3. Which outcome is correct?

A.D3 receives the execute right because D2 now has a copy right.
B.D3 receives a limited copy of the execute right.
C.D3 does not receive the execute right because the limited copy prevents further copying. βœ…
D.D2 loses the execute right after attempting the second copy.
πŸ’‘ Difficulty: hard | βœ… Correct: C

πŸ“– Explanation: The limited copy right permits a single duplication of a right, after which the new instance cannot be copied again. D1’s limited copy of the execute right to D2 gives D2 the right, but the restriction prevents D2 from copying it further to D3. Therefore D3 does not obtain the execute right, and D2 retains its copy. Options implying successful further copying or loss of the right are inconsistent with the definition of limited copy. Option C is correct.

Q12. Comparing the three schemesβ€”copy, transfer, and limited copyβ€” which one aligns most closely with the principle of least privilege?

A.Copy right, because it allows duplication without removal.
B.Transfer right, because it moves privileges and eliminates the original source.
C.Limited copy right, because it permits a single duplication but blocks further propagation. βœ…
D.All three equally satisfy least privilege.
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: The principle of least privilege advises granting only the minimum rights necessary. The limited copy right fulfills this by allowing a single duplication while preventing unlimited spreading of the privilege, thereby reducing the chance of excessive propagation. The regular copy right enables unrestricted duplication, and the transfer right removes the original but does not limit how the transferred right can be further copied. Consequently, the limited copy right aligns most closely with least‑privilege concepts, making option C the correct choice.

πŸ”— Related Topics (MCQs)