Question 360
Following lab verification, document the preventive or persistence-oriented procedure for: A lab administrator disables SELinux to stop web errors without checking whether a label denial caused them. Which practice is most suitable?
Explanation
Correct Answer
Use audited AVC evidence and type-appropriate remedies, keeping enforcing mode active. This guards against recurrence of: SELinux access denials have specific type or policy causes that global disablement obscures. Confirm the lab's final state by: An AVC entry identifies the source domain, target type and denied operation for the fixture.
Incorrect Answers
Audit filesystem permissions on configuration files after each deployment. That control is best suited to a separate scenario: A user accidentally gives write permission to everyone on an application's configuration file. It is not the best safeguard for the current mechanism: SELinux access denials have specific type or policy causes that global disablement obscures.
Diagnose DAC and SELinux separately, keeping both minimum necessary permissions and labels. That control is best suited to a separate scenario: A custom service path is mislabeled and a technician repeatedly applies `chmod 777` without resolving access denials. It is not the best safeguard for the current mechanism: SELinux access denials have specific type or policy causes that global disablement obscures.
Use narrowly timed diagnostics and restore enforcing mode after analyzing denial logs. That control is best suited to a separate scenario: An administrator temporarily changes SELinux to permissive mode for diagnostics and believes it will remain so after reboot. It is not the best safeguard for the current mechanism: SELinux access denials have specific type or policy causes that global disablement obscures.