5.2 Restrict Set-UID on User Mounted Devices - Check if nosuid option is set in /etc/rmmount.conf.

Information

If the volume manager (vold) is enabled to permit users to mount external devices, the administrator can force these file systems to be mounted with the nosuid option to prevent users from bringing set-UID programs onto the system via CD-ROMs, floppy disks, USB drives or other removable media.

Solution

Perform the following to implement the recommended state-
if [ ! '`grep -v '^#' /etc/rmmount.conf | grep -- '-o nosuid'`' ]; then fs=`awk '($1 == 'ident') && ($2 != 'pcfs') { print $2 }' /etc/rmmount.conf` echo mount * $fs -o nosuid >>/etc/rmmount.conf fi

See Also

https://workbench.cisecurity.org/files/614

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(10)

Plugin: Unix

Control ID: d90cb511c4e6380d7e5b7e782b164cc635a1045e0e21cc2634c511dd8311dc1b