Tuesday, July 23, 2013

CSF "Check /dev/shm is mounted noexec,nosuid"

Secure " /dev/shm " partition :

Edit the file /etc/fstab and replace the following line

tmpfs /dev/shm tmpfs defaults 0 0

with the following line

tmpfs /dev/shm tmpfs noexec,nosuid 0 0


Then run the following commands :

# umount /dev/shm
# mount /dev/shm
OR

mount -o remount /dev/shm


That's it. Done.
 

No comments:

Post a Comment