Information
When set on a file system, this option prevents character and block special devices from
being defined, or if they exist, from being used as character and block special devices.
*Rationale*
Since the user partitions are not intended to support devices, set this option to ensure that
users cannot attempt to create block or character special devices.
Note- The actions in the item refer to the /home partition, which is the default user partition that is defined in many distributions. If you have created other user partitions, it is
recommended that the Remediation and Audit steps be applied to these partitions as well.
Solution
Edit the /etc/fstab file and add nodev to the fourth field (mounting options). See the
fstab(5) manual page for more information.# mount -o remount,nodev /home