[CentOS] noexec tmp directory

Thu Jun 7 05:09:28 UTC 2012
Bob Hoffman <bob at bobhoffman.com>

Hello,

I am fixing up  a system for someone and they did not make a separate 
partition for /tmp...but I want to make it noexec, nosuid.

I came across a site that said I could skip all the mount/unmount and 
new partition stuff (which would probably include downsizing a lvm to 
make room for it)... by adding this in fstab

/tmp  /tmp  bind  nosuid,noexec,bind  0  0

and then reboot...
There is no /tmp in their fstab at the moment and I am afraid to test 
this....
Is this a correct workaround to mount that folder as noexec?
OR was this site wrong?