π 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.
π 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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?
π 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.