nerdexam
CompTIA

CAS-002 · Question #869

A system administrator has just installed a new Linux distribution. The distribution is configured to be "secure out of the box". The system administrator cannot make updates to certain system files…

The correct answer is A. Review settings in the SELinux configuration files. This question addresses troubleshooting denied modifications to system files and services on a Linux distribution configured as secure out of the box.

Technical Integration of Enterprise Components

Question

A system administrator has just installed a new Linux distribution. The distribution is configured to be "secure out of the box". The system administrator cannot make updates to certain system files and services. Each time changes are attempted, they are denied and a system error is generated. Which of the following troubleshooting steps should the security administrator suggest?

Options

  • AReview settings in the SELinux configuration files
  • BReset root permissions on systemd files
  • CPerform all administrative actions while logged in as root
  • DDisable any firewall software before making changes

How the community answered

(37 responses)
  • A
    92% (34)
  • B
    5% (2)
  • C
    3% (1)

Why each option

This question addresses troubleshooting denied modifications to system files and services on a Linux distribution configured as secure out of the box.

AReview settings in the SELinux configuration filesCorrect

SELinux enforces mandatory access controls (MAC) at the kernel level, which can deny modifications to system files and services even for privileged users when operating in enforcing mode, generating AVC denial errors. A distribution advertised as 'secure out of the box' almost certainly has SELinux in enforcing mode, so reviewing and adjusting SELinux policies or file context labels is the correct first troubleshooting step.

BReset root permissions on systemd files

Resetting root permissions on systemd files addresses discretionary access control (DAC) at the filesystem level but would have no effect on denials enforced by SELinux mandatory access controls, which operate independently of standard Unix permissions.

CPerform all administrative actions while logged in as root

Performing actions as root bypasses DAC restrictions but does not bypass SELinux MAC enforcement - SELinux can and does deny operations initiated by the root user when policy rules prohibit them.

DDisable any firewall software before making changes

Firewall software manages inbound and outbound network traffic and has no bearing on local filesystem permissions or the ability to modify system files and services.

Concept tested: SELinux mandatory access control enforcement and troubleshooting

Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/using_selinux/index

Topics

#SELinux#MAC#Linux hardening#mandatory access control

Community Discussion

No community discussion yet for this question.

Full CAS-002 Practice