Verify Group Who Owns /etc/sestatus.conf File
An XCCDF Rule
Description
To properly set the group owner of /etc/sestatus.conf
, run the command:
$ sudo chgrp root /etc/sestatus.conf
Rationale
The ownership of the /etc/sestatus.conf file by the root group is important because this file hosts SELinux configuration. Protection of this file is critical for system security. Assigning the ownership to root ensures exclusive control of the SELinux configuration.
- ID
- xccdf_org.ssgproject.content_rule_file_groupowner_etc_sestatus_conf
- Severity
- Medium
- References
- Updated
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-86288-8
- configure_strategy
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then
chgrp root /etc/sestatus.conf
else