📝 Access Control in protection of Operating System (10 MCQs)
Enforcing Decisions About Resource Access
Access control is the operating system process of deciding whether a subject may perform a requested operation on an object. It applies protection policy to users, processes, files, devices, memory, and services. The decision typically depends on identity, group membership, domain, permissions, and security attributes. Access control converts defined protection rules into enforceable decisions at resource boundaries.
Policy, Identity and Permission Requirements
Operating systems must distinguish legitimate requests from unauthorised ones while supporting shared resources. Authentication establishes or verifies an identity, whereas access control determines what that identity or its processes may do. Policies may be discretionary, mandatory, or role-based. Incorrectly configured permissions, weak identity controls, or inconsistent enforcement can expose protected data.
Evaluating a Request Before Granting Access
A process requests an operation through a system call or another controlled interface. The kernel identifies the subject and target object, obtains relevant policy information, and checks the requested right. It may also consider ownership, groups, security labels, or roles. If the policy permits the action, the kernel performs or authorises the operation; otherwise, it denies the request.
Example of Role Based File Access
In a university system, a lecturer may read and update course materials, while a student may only read them. Both users can authenticate successfully, but their roles produce different access decisions. When a student attempts to modify a protected course file, the operating system or application enforcement layer rejects the write operation.
Access Models and Enforcement Boundaries
Discretionary access control allows owners or authorised administrators to grant permissions, while mandatory models apply centrally defined rules. Role-based access control assigns rights through organisational roles. These approaches can coexist with operating system mechanisms such as ACLs and capabilities. Effective enforcement requires checks at relevant access points and consistent handling of inherited or delegated permissions.
Misconceptions About Access Control Decisions
'Authentication and authorisation are identical' is false because authentication verifies identity and authorisation evaluates permitted actions. 'A successful login grants access to every file' ignores resource-specific policy. 'Access control is performed only when a user logs in' is incorrect because permission checks may occur repeatedly during file, device, and service operations.
Exam Focus: Authentication, Policy and Authorisation
Be prepared to distinguish authentication from authorisation and compare discretionary, mandatory, and role-based models. Scenario questions may ask why two authenticated users receive different access to the same object. Trace the subject, object, requested operation, applicable policy, and final allow-or-deny decision in a clear sequence.
Key Terms of Operating System Access Control
- Authentication - Verification of a claimed identity.
- Authorisation - Decision about permitted operations.
- DAC - Owner-controlled discretionary access model.
- MAC - Centrally enforced mandatory access model.
- RBAC - Permissions assigned through user roles.
📝 All Access Control in protection of Operating System MCQs
Q1. A new employee needs to install software on a workstation but must not change system configurations. Which assignment best follows the principle of least privilege?
📖 Explanation: The correct answer is C because granting only the install privilege gives the employee exactly what is required, nothing more, which embodies least privilege. Option A and B provide broad rights that exceed the task, increasing risk of accidental or malicious changes. Option D leaves the employee unable to perform the needed installation. In real environments, limiting rights to the precise function prevents unnecessary exposure and aligns with security best practices.
Q2. What is the primary objective of applying the principle of least privilege in an operating system?
📖 Explanation: The correct answer is B because the principle of least privilege aims to give each user or process only the minimum rights needed, thereby shrinking the number of exploitable entry points and reducing the attack surface. Option A is unrelated; limiting privileges can sometimes reduce performance. Option C oversimplifies management but is not the main goal. Option D conflicts with security, as more convenience often means broader access. In practice, fewer privileges mean fewer opportunities for attackers to compromise the system.
Q3. During a security audit of a Windows 2000 server, the auditor suggests disabling services that are not needed. Which action best aligns with the principle of least privilege?
📖 Explanation: The correct answer is A because disabling services that are not required removes unnecessary functionality that could be targeted by attackers, directly applying least privilege by reducing the system's exposure. Option B, while beneficial, does not eliminate privileged pathways. Option C improves performance but does not affect privilege levels. Option D strengthens authentication but does not limit the services a process can access. In real deployments, trimming the attack surface by turning off unused services is a core step in hardening a system.
Q4. How does the need‑to‑know principle differ from the principle of least privilege in controlling access to system resources?
📖 Explanation: The correct answer is A because need‑to‑know limits a process to the resources it must use at that moment, whereas least privilege sets the smallest set of rights a user or process should possess overall. Option B misstates the concepts; neither principle specifically grants administrator rights. Option C is false because the principles address different aspects of access control. Option D incorrectly limits need‑to‑know to data only. Understanding both helps administrators enforce precise, minimal access, reducing potential misuse.
Q5. Which operating system historically was designed with little built‑in protection, as mentioned in security discussions?
📖 Explanation: The correct answer is C because UNIX originally emphasized flexibility and multi‑user capabilities without strong security mechanisms, leading to minimal built‑in protection. Option A, Windows 2000, includes a more complex protection scheme. Option B, Solaris, is a UNIX variant that has added security features over time. Option D, Linux, inherits UNIX design but typically incorporates modern security modules. Recognizing the historical context helps security professionals assess legacy system risks and plan appropriate hardening measures.
Q6. A process attempts to write data to a CD‑ROM. According to typical object operation rules, what should happen?
📖 Explanation: The correct answer is B because CD‑ROMs are inherently read‑only media; their defined operations allow only reading, so any write attempt must be denied. Option A is incorrect as not all objects support write operations. Option C is false; the system cannot change the physical nature of the media on the fly. Option D is extreme; the process is typically returned an error rather than being killed. This behavior illustrates how access control enforces appropriate object permissions.
Q7. Why might a system with more code and services, such as Windows 2000, be less secure even if it has a complex protection scheme?
📖 Explanation: The correct answer is A because each additional line of code and each extra service introduces new interfaces and potential bugs, enlarging the attack surface that attackers can probe. Option B overstates reality; complex schemes can be effective if correctly implemented. Option C may be true in some cases but is not the primary technical reason for reduced security. Option D is unrelated; hardware limits affect performance more than security. Understanding that quantity of code correlates with risk helps designers prioritize minimalism and thorough testing.
Q8. An organization is migrating from Solaris to Windows 2000. To maintain security, which combination of practices is most effective?
📖 Explanation: The correct answer is B because assigning the smallest necessary rights to each account limits what users can do, and turning off services that are not needed removes potential entry points, both essential for a secure migration. Option A defeats security by exposing many services. Option C applies need‑to‑know but ignores the risk from unused services. Option D places all trust on the network perimeter, ignoring host‑level vulnerabilities. Combining privilege reduction with service minimization provides layered defense in the new environment.
Q9. Granting excessive privileges to a process violates which principle, and what type of damage can this cause?
📖 Explanation: The correct answer is C because giving a process more rights than necessary breaches both need‑to‑know (access beyond current task) and least privilege (minimum rights overall), opening pathways for data leakage, unauthorized modifications, or full system compromise. Option A mentions only need‑to‑know and limits damage to file corruption, missing the broader impact. Option B incorrectly states that excess rights improve performance, which is unrelated to security. Option D is false; excessive privileges directly weaken security. Recognizing these violations helps administrators enforce strict access controls.
Q10. A developer writes a program that reads memory segments and writes to a tape drive. Which set of operations is correctly allowed for each object type?
📖 Explanation: The correct answer is B because memory segments can be both read from and written to, while tape drives support reading, writing, and rewinding as defined operations. Option A incorrectly limits memory to execution, which is not a typical operation for a memory segment. Option C assigns an execute operation to tape, which is invalid. Option D suggests deletion of memory, which does not apply to memory segments. Matching allowed operations to object types ensures programs respect access control rules.