Information
The filesystem mount option nodev ensures that special device files are not recognized as device files. This recommendation audits all rootvg filesystems to ensure that only the root filesystem '/' allows the use of
device
special files.
Solution
- The following command remounts filesystems with 'nodev' added:
mount | grep jfs | /usr/bin/egrep -v "/dev/hd4|nodev" | while read lv fs jfs m d t options
do
mount -o remount,${options},nodev $fs
done
- The following command updates the stanza in /etc/filesystems
lsfs | grep jfs | /usr/bin/egrep -v "/dev/hd4|nodev" | while read lv node fs jfs size options rest
do
if [ ${options} == "--" ]; then
chfs -a options=nodev $fs
else
chfs -a options=${options},nodev $fs
fi
done