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: b5139eb36772fa60aea9df9873cde8eab53cfa1ffd29283d810334ccbf34227f