📝 Cambridge CAP System is an example of Capability Based Systems (12 MCQs)
Capability Protection in the Cambridge CAP System
The Cambridge CAP computer system was designed around capability-based protection, using hardware and software support to control access to protected objects. Capabilities represented authority to perform specified operations, while the system's architecture helped prevent unauthorised creation or modification of these references. CAP demonstrated how capability principles could be integrated into a computer system rather than relying only on software conventions.
Hardware Support for Unforgeable Authority
Software-only capability representations must prevent ordinary programs from inventing or altering valid authority. CAP addressed this challenge through architectural support that distinguished protected capabilities from ordinary data. This separation allowed the system to preserve capability integrity while supporting controlled sharing between processes and system components.
Using Capabilities to Access Protected Objects
A process uses a capability to identify an object and the operations allowed on it. The system checks the capability and associated permissions when an operation is requested. Hardware protection contributes to keeping capability information trustworthy, while operating system services manage objects and authorised references. The design combines controlled access with protection against forged authority.
Example of Restricted Access Through a Capability
Suppose a process receives a capability to a data object that permits reading but not writing. It can request data through the authorised interface, but an attempted modification exceeds the capability's rights. The system rejects that operation rather than accepting a process-supplied claim that it should have broader permission.
Architectural Strengths and Implementation Constraints
CAP illustrates how hardware-enforced capabilities can make protection more reliable by preventing arbitrary software from manufacturing authority. It supports fine-grained access and controlled sharing. Such designs require specialised architectural mechanisms and careful integration with operating system services. The historical CAP system should not be confused with every modern processor's capability features or ordinary pointer protection.
Misconceptions About the Cambridge CAP System
'CAP is simply a conventional UNIX file permission system' is incorrect because it uses capability-based authority. 'A capability is secure merely because it has a unique address' is false; protected integrity and validation are required. 'All capability systems require identical hardware' is misleading because implementations can use different combinations of hardware and software enforcement.
Exam Focus: Hardware and Software Capability Roles
Examinations may compare the Cambridge CAP system with software-oriented capability designs such as Hydra. Explain how hardware support protects capability integrity and how a capability restricts permitted operations. Be ready to distinguish a capability from an ordinary pointer and describe why specialised enforcement helps prevent forged access rights.
Key Terms of Cambridge CAP Protection
- CAP - Cambridge capability-based computer system.
- Hardware protection - Architectural enforcement of access restrictions.
- Capability integrity - Protection against unauthorised alteration.
- Protected object - Resource accessed through valid authority.
- Unforgeable reference - Authority token ordinary code cannot fabricate.
📝 All Cambridge CAP System is an example of Capability Based Systems MCQs
Q1. In the lock–key protection mechanism, what is the name of the list that contains the unique bit patterns assigned to each domain?
📖 Explanation: The list of unique bit patterns attached to a domain is called a key list, and each individual pattern is a key. Therefore the correct answer is Keys. Locks are associated with objects, not domains. Capabilities belong to capability‑based systems, and access lists describe which domains may use an object. Understanding this terminology helps when configuring domain permissions in a real system.
Q2. Why does the lock–key mechanism represent a compromise between access lists and capability lists?
📖 Explanation: The lock–key approach keeps a central authority (the OS) that assigns and checks keys, like access lists, while allowing a process to present a matching key locally, similar to capabilities. This blend gives both control and efficiency. The other options describe features that are not part of the lock–key design: the OS still manages keys, domains cannot create keys independently, and encryption is not the primary mechanism.
Q3. Which characteristic of capability lists makes revocation potentially inefficient compared to the lock–key mechanism?
📖 Explanation: When capabilities are attached to a process, revoking a right often requires scanning every process to remove or invalidate the relevant capability, which is costly. In contrast, the lock–key scheme can change the object's lock list centrally. Cryptographic signatures, duplication rules, and global scope are not the main reasons for revocation difficulty, making option A the correct choice.
Q4. How does the operating system protect the integrity of a domain's key list in the lock–key scheme?
📖 Explanation: The OS ensures that only privileged code can view or alter a domain's keys; normal processes cannot inspect or change the list, preventing tampering. Encryption or read‑only memory are implementation details, not the fundamental protection policy. Requiring passwords for every access would defeat the purpose of a fast key check. Thus option C accurately describes the OS's role.
Q5. When a process attempts to access an object, what condition must be satisfied for the lock–key mechanism to grant access?
📖 Explanation: Access is granted if at least one of the domain's keys matches one of the object's locks; this single match is sufficient. The other statements impose unnecessary or incorrect constraints: exact identity is too strict, a superset relationship is irrelevant, and having more keys does not guarantee a match. Hence the correct condition is described in option B.
Q6. A file server uses the lock–key mechanism. Object X has locks 0x1A and 0x2B. Domain D currently holds keys 0x3C and 0x4D. Which action must the operating system take to allow Domain D to read Object X?
📖 Explanation: Since Domain D lacks a key that matches any of Object X's locks, the OS must add a suitable key (e.g., 0x1A or 0x2B) to D's key list. Changing the object's locks would affect other domains, and removing locks could unintentionally grant access to unauthorized domains. Adding a lock alone does not help D without a matching key. Therefore, inserting a matching key is the appropriate step.
Q7. A process in Domain P attempts to write to Object Y, which has locks 0x55 and 0xAA. Domain P currently has keys 0x55 and 0xFF. Which outcome occurs?
📖 Explanation: Domain P holds key 0x55, which matches one of Object Y's locks, so the lock–key check succeeds and the write operation is allowed. The absence of a matching key for the second lock does not block access; only one match is needed. Revoking keys or recreating the object are unnecessary actions.
Q8. In a system using lock–key protection, an administrator wants to prevent all domains from accessing a confidential object except for a privileged domain. Which operation achieves this most directly?
📖 Explanation: By setting the object's lock list to a single lock that only the privileged domain possesses, the system ensures that no other domain can satisfy the lock–key check. Removing locks would make the object universally accessible, and adding keys to other domains would defeat the purpose. Deleting the privileged domain's keys would lock out the intended user. Hence option C is the most direct solution.
Q9. What is a primary security advantage of the lock–key mechanism over pure capability lists regarding key distribution?
📖 Explanation: The OS centrally controls key creation and assignment, so ordinary processes cannot fabricate or duplicate keys, reducing the risk of unauthorized access. This contrasts with pure capability systems where processes may hold capabilities that can be transferred or forged. Public disclosure, length, and automatic expiration are not inherent properties of lock–key keys, making option B the correct advantage.
Q10. A multi‑tenant cloud service implements lock–key protection. Tenant A's domain has keys {K1, K2}. Tenant B's domain has keys {K3}. Object Z has locks {K2, K3}. If Tenant A tries to delete Object Z, which of the following must the system verify?
📖 Explanation: The system must confirm that Tenant A has a key (K2) that matches one of Object Z's locks and that Tenant A's access rights include the delete operation. The presence of K3 in Tenant B is irrelevant for Tenant A's request. Therefore, option D captures the essential verification step.
Q11. During a security audit, it is discovered that a domain's key list includes a key that does not correspond to any object's lock. What is the most appropriate response?
📖 Explanation: An unused key expands the potential attack surface because a future object could be assigned that lock, inadvertently granting access. Removing it eliminates this risk. Adding locks to all objects is unnecessary, converting to a different protection model is excessive, and ignoring the issue leaves a latent vulnerability. Hence the prudent action is option A.
Q12. Suppose a system administrator mistakenly assigns the same lock pattern to two distinct objects, Object M and Object N. A domain with a single matching key can now access both objects. Which of the following best describes the resulting security issue?
📖 Explanation: When two objects share a lock, any domain that possesses the matching key can access both, potentially exposing confidential information that should have been isolated. This is a classic confidentiality breach caused by unintended sharing. It does not elevate privileges beyond what the key already permits, nor does it cause denial of service or performance changes. Therefore, option C correctly identifies the problem.