To secure /dev/shm look for the mount line for /dev/shm in /etc/fstab and change it to the following:
none /dev/shm tmpfs noexec,nosuid 0 0
Umount and remount /dev/shm for the changes to take effect.
-----command-----
#umount /dev/shm
#mount /dev/shm