📝 A lock key mechanism for Implementation of the Access Matrix (8 MCQs)
Combining Locks and Keys for Access Decisions
The lock-key mechanism is an access matrix implementation in which objects carry locks and domains possess matching keys. A domain may access an object when one of its keys satisfies a lock associated with that object. This approach represents permissions through matching values rather than maintaining a separate explicit list for every domain-object relationship.
Why Matching Credentials Can Reduce Permission Lists
Explicit access records can become large when many domains share similar rights over numerous objects. Locks and keys offer an alternative by allowing a common key to match locks on selected objects. The design can simplify some sharing arrangements, but the security of the mechanism depends on protecting keys and controlling how they are issued or copied.
How the Lock-Key Check Works
An object is associated with one or more locks, and a protection domain holds a set of keys. When access is requested, the system checks whether an available key matches a lock and whether the requested operation is supported by the design. A successful match permits the associated access; otherwise, the request is rejected.
Example of Matching a Domain Key
Assume file F1 carries lock value 27 and domain D1 possesses key value 27. The matching values allow D1 to exercise the access associated with that lock. Domain D2 possesses key 41, so its request does not match F1's lock and must be denied unless another valid key or permission applies.
Flexibility and Management of Shared Authority
Lock-key schemes can support grouped permissions and reduce repeated explicit entries when many objects use common lock values. Their main challenge is safe key distribution and precise control over matching rights. Changing a key may affect many objects or domains, and a leaked key can expose every object protected by corresponding locks.
Misconceptions About Lock-Key Protection
'A lock is stored only in a user's process' reverses the usual model in which objects carry locks and domains hold keys. 'Any key opens every lock' is false because matching is required. 'Changing one lock always affects one user only' ignores shared key values that may connect multiple domains and objects.
Exam Focus: Testing Lock and Key Compatibility
Questions may provide objects with lock values and domains with key sets. Practise checking whether at least one permitted key matches an object's lock, then identify the resulting access decision. Be ready to compare this approach with ACLs and capabilities, especially in relation to key distribution, shared authority, and revocation.
Key Terms of Lock-Key Protection
- Lock - Matching value associated with an object.
- Key - Credential held by a domain.
- Match - Successful lock and key comparison.
- Domain - Holder of authorised keys.
- Key distribution - Controlled assignment of credentials.
📝 All A lock key mechanism for Implementation of the Access Matrix MCQs
Q1. Which right enables a domain to add or remove any rights in its own column of the access matrix?
📖 Explanation: The owner right grants a domain full control over the entries in its column, allowing it to both grant new rights and revoke existing ones. This is why option B is correct. The copy right only permits duplicating an existing right, not modifying the matrix. Transfer moves a right without granting modification ability, and limited copy restricts propagation, so neither A, C, nor D can add or delete rights.
Q2. Domain D1 possesses a transfer right on file F2. Which operation can D1 perform with this right?
📖 Explanation: Transfer rights allow a domain to move an existing right to another domain without keeping a copy for itself. Hence D1 can execute a transfer, making option C correct. The copy right would create a duplicate, which is not permitted by a pure transfer right. Limited copy only creates a non‑propagating right, and 'none' suggests no action, both of which are inaccurate for a transfer right.
Q3. Why does limiting the propagation of a copied right (creating only R instead of R*) improve system security?
📖 Explanation: Limiting propagation stops the newly created right from being copied again, containing its reach and reducing the chance of accidental over‑privilege. This makes option A correct. Reducing performance (B) is a side effect, not the primary security benefit. Simplifying admin (C) or removing owner rights (D) are unrelated to the security rationale.
Q4. If a domain holds both copy and limited copy rights for an object, what is the effect of using the limited copy right?
📖 Explanation: Limited copy creates the basic right R but does not allow that new right to be copied again, so option D accurately describes the effect. Option A incorrectly states that further copying is allowed. Option B confuses limited copy with transfer, and option C suggests nothing changes, which is false because a new non‑propagating right does appear.
Q5. How does the owner right relate to a domain's ability to manage rights across multiple objects?
📖 Explanation: The owner right gives a domain ultimate authority over the columns it owns, enabling it to insert or remove rights for any object in those columns. This central control makes option B correct. Reading all objects (A) is a read permission, not ownership. Limiting to copying (C) or bypassing authentication (D) mischaracterize the owner role.
Q6. Domain D1 copies a read right from D2 to D3 using the copy right. Afterwards, D3 attempts to copy that right further. Which statement is true?
📖 Explanation: When the copy right is used, the resulting right in D3 is a basic right without the copy capability, so D3 cannot duplicate it again, making option A correct. Unlimited copying (B) would require a copy right on the new entry, which is absent. Transfer (C) is a different operation, and gaining owner rights (D) is not granted by a simple copy.
Q7. A domain possesses both copy and transfer rights for a file. If it chooses to use the transfer right, what happens to the original right?
📖 Explanation: Using the transfer right moves the right from the source domain to the target domain, removing it from the source. Therefore option B correctly describes the effect. Copying (A) would keep the original, limited copy (C) would create a non‑propagating right, and no change (D) contradicts the definition of transfer.
Q8. What is the primary advantage of having three distinct rights—copy, transfer, and limited copy—in an access control matrix?
📖 Explanation: Having separate copy‑type rights lets a system specify exactly whether a right can be duplicated, moved, or duplicated without further propagation, providing fine‑grained control over right distribution. This makes option D correct. Reducing the number of rights (A) is opposite to the effect. Simpler implementation (B) is not the main benefit, and preventing all new rights (C) is not the purpose of these mechanisms.