Other Articles

Servers – Configure Shm Partition

Support > Fixing Checks > Server

02 March, 2026

This check ensures that the /dev/shm partition is configured with the nodev mount option. The /dev/shm filesystem is used for temporary shared memory and is accessible by multiple processes. Without the nodev restriction, users may attempt to create special device files in this location, which could introduce security risks.

Check Details

  • Resource: Server
  • Check: Configure Shm Partition
  • Risk: If the /dev/shm partition is not mounted with the nodev option, users may attempt to create special device files which could be exploited to interact with system devices or bypass security restrictions.

Remediation Steps

  1. Open a terminal session on the target server with root or sudo privileges.
  2. Remount the /dev/shm partition with the nodev option to prevent the creation of special device files.

    sudo mount -o remount,nodev /dev/shm
    

Note: On Container-Optimized OS, the /etc directory is stateless. Therefore, mount configuration changes will not persist across system reboots. The remediation step must be performed again after each system boot.