Question 330
A Linux web server is compromised through a process that can read private key files outside its required service directory. Which mandatory policy mechanism can reduce the effect?
Explanation
Correct Answer
Mandatory access restrictions can block file reads even after the application process is compromised. Policy enforcement must act at the specific resource, network, file or application boundary named in the security requirement. The stated evidence is a Linux web server is compromised through a process that can read private key files outside its required service directory. This distinction rules out “Assign the process a more privileged Linux group”: extra permissions would expand its access. “Use SELinux confinement with a targeted service domain and file labels” addresses the specific security outcome rather than the separate function that alternative performs.
Incorrect Answers
Filename suffixes do not enforce access separation. Policy enforcement must act at the specific resource, network, file or application boundary named in the security requirement. Here the decisive fact is a Linux web server is compromised through a process that can read private key files outside its required service directory. “Use SELinux confinement with a targeted service domain and file labels” matches that requirement because mandatory access restrictions can block file reads even after the application process is compromised.
Audit silence does not restrict file reads. The evidence is a Linux web server is compromised through a process that can read private key files outside its required service directory. Assessment identifies a state and supplies findings, but does not itself enforce a preventive control or finish remediation. By contrast, “Use SELinux confinement with a targeted service domain and file labels” operates on the specific concern: mandatory access restrictions can block file reads even after the application process is compromised.
Extra permissions would expand its access. Access entitlements govern which specific operations a principal may perform; granting broad roles can expand the damage of credential compromise. Here the decisive fact is a Linux web server is compromised through a process that can read private key files outside its required service directory. “Use SELinux confinement with a targeted service domain and file labels” matches that requirement because mandatory access restrictions can block file reads even after the application process is compromised.






CompTIA Security+ (SY0-701) Practice Tests