CAS-003 · Question #812
CAS-003 Question #812: Real Exam Question with Answer & Explanation
The correct answer is B: Set the devices to enforcing. The scenario describes SELinux (Security-Enhanced Linux / Android's MAC implementation) logging 'deny' messages in dmesg, yet the denied actions are still being permitted. This behavior is characteristic of SELinux running in permissive mode. In permissive mode, policy violations
Question
Options
- AAdd the objects of concern to the default context.
- BSet the devices to enforcing
- CCreate separate domain and context files for irc.
- DRebuild the policy, reinstall, and test.
Explanation
The scenario describes SELinux (Security-Enhanced Linux / Android's MAC implementation) logging 'deny' messages in dmesg, yet the denied actions are still being permitted. This behavior is characteristic of SELinux running in permissive mode. In permissive mode, policy violations are logged but NOT enforced - processes continue despite the denial. In enforcing mode, denials are both logged AND blocked. Setting the devices to enforcing mode (B) causes SELinux to actually block the denied actions, making the MAC policy effective. This is a common misconfiguration where policies are written and tested in permissive mode but never switched to enforcing mode in production.
Community Discussion
No community discussion yet for this question.