CCE-95405-7Platform: cpe:/o:amazon:linux:2, cpe:/o:centos:centos:7, cpe:/o:oracle:linux:7, cpe:/o:oracle:linux:8, cpe:/o:redhat:enterprise_linux:7, cpe:/o:redhat:enterprise_linux:8, cpe:/o:redhat:enterprise_linux:9 | Date: (C)2021-03-05 (M)2023-07-04 |
Description
Configure SELINUX to be enabled at boot time and verify that it has not been overwritten by the grub boot parameters.
Rationale
SELinux must be enabled at boot time in your grub configuration to ensure that the controls it provides are not overridden.
Audit
Run the following command and verify that no linux line has the selinux=0 or enforcing=0 parameters set:
# grep "^s*linux" /boot/grub2/grub.cfg
Remediation
Edit /etc/default/grub and remove all instances of selinux=0 and enforcing=0 from all CMDLINE_LINUX parameters:
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
Run the following command to update the grub2 configuration:
# grub2-mkconfig > /boot/grub2/grub.cfg
Notes
This recommendation is designed around the grub bootloader, if LILO or another bootloader is in use in your environment enact equivalent settings.
Parameter:
[yes/no]
Technical Mechanism:
Edit /etc/default/grub and remove all instances of selinux=0 and enforcing=0 from all CMDLINE_LINUX parameters:
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
Run the following command to update the grub2 configuration:
# grub2-mkconfig /boot/grub2/grub.cfg
CCSS Severity: | CCSS Metrics: |
CCSS Score : 9.8 | Attack Vector: NETWORK |
Exploit Score: 3.9 | Attack Complexity: LOW |
Impact Score: 5.9 | Privileges Required: NONE |
Severity: CRITICAL | User Interaction: NONE |
Vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | Scope: UNCHANGED |
| Confidentiality: HIGH |
| Integrity: HIGH |
| Availability: HIGH |
| |
References: Resource Id | Reference |
---|
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72327 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72745 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72642 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:68557 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72852 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:84201 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:72957 |
SCAP Repo OVAL Definition | oval:org.secpod.oval:def:71961 |