3
/tmp should be mounted as a separate filesystem with the noexec,nosuid options set
/var/tmp should either be symlinked to /tmp or mounted as a filesystem
/dev/shm is not mounted with the noexec,nosuid options (currently: none). You should modify the mountpoint in /etc/fstab for /dev/shm with those options and remount

This is an OpenVZ Server and I don't know how to fix those issues.

How do I make /tmp ect... safe on OpenVZ?

This for the guest. can this be done on the host?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175

1 Answers1

0

You can secure from centos secure tmp how to, then change it according to shared memory (shm) and other shared directories.

Above solution is first solution, but if you don't have any information, you can use second solution: OpenVZ make an instance from each resource but VMWare doesn't create it, you can use VMWare.

This post is very good.

slm
  • 363,520
  • 117
  • 767
  • 871
PersianGulf
  • 10,728
  • 8
  • 51
  • 78