SV-281087r1165616_rule
V-281087
SRG-OS-000080-GPOS-00048
RHEL-10-400350
CAT II
10
Configure RHEL 10 to enforce ownership of the "/boot/grub2/grub.cfg" file.
Change the owner of the "/boot/grub2/grub.cfg" file to "root" by running the following command:
$ sudo chown root /boot/grub2/grub.cfg
Verify RHEL 10 enforces ownership of the "/boot/grub2/grub.cfg" file with the following command:
$ sudo stat -c "%U %n" /boot/grub2/grub.cfg
root /boot/grub2/grub.cfg
If the "/boot/grub2/grub.cfg" file does not have an owner of "root", this is a finding.
V-281087
False
RHEL-10-400350
Verify RHEL 10 enforces ownership of the "/boot/grub2/grub.cfg" file with the following command:
$ sudo stat -c "%U %n" /boot/grub2/grub.cfg
root /boot/grub2/grub.cfg
If the "/boot/grub2/grub.cfg" file does not have an owner of "root", this is a finding.
M
5733