RHEL-09-231095 RHEL 9 must mount /boot with the nodev option.
DISA STIG library V2R10
All changes in this version
All changes in this version
Maps to CM-7(2) via CCI-001764
Title
RHEL 9 must mount /boot with the nodev option.
Control
Verify that the "/boot" mount point has the "nodev" option with the following command: $ mount | grep '\s/boot\s' /dev/sda1 on /boot type xfs (rw,nodev,relatime,seclabel,attr2) If the "/boot" file system does not have the "nodev" option set, this is a finding.
Discussion
The only legitimate location for device files is the "/dev" directory located on the root partition. The only exception to this is chroot jails.
Related controls
CCI-001764
Fix
Modify "/etc/fstab" to use the "nodev" option on the "/boot" directory.