Troubleshooting
After website files are restored from backup, a Linux web server receives permission-denied errors despite correct ownership and mode bits. SELinux audit records identify incorrect file contexts; what should the administrator do?
Show the answer
Correct answerD. Restore the expected SELinux contexts on the website files.
AWhy not this: Antivirus exclusions do not change SELinux labels or its access decisions.
BWhy not this: Broader mode-bit permissions do not resolve an SELinux context denial and unnecessarily increase access.
CWhy not this: Permissive mode stops enforcing SELinux denials rather than correcting the incorrect contexts.
DWhy this is right: Correct contexts let SELinux apply the intended web-server access policy to the restored files.
Restoring the expected SELinux contexts corrects the labeling problem while retaining mandatory access control. Permissive mode would stop enforcing denials but would leave the underlying labeling problem unresolved.