OpenVZ Forum


Home » General » Support » Remount the whole root in read-only
Remount the whole root in read-only [message #38974] Thu, 25 February 2010 17:05 Go to previous message
corwin is currently offline  corwin
Messages: 2
Registered: February 2010
Junior Member
Hi All,
I'm trying to make a container with only a few directories mounted as RW (/var /usr/local /tmp). Playing a little with mounts scripts I've got it working remounting all directories with --bind and RO option
But I still have the whole / mounted as RW, so it's possible to create directories and files on the first level (/). How to prevent it?

This trick doesn't work
mount -f -oremount,ro -t simfs /v0/vz/private/101 /v0/vz/root/101

Any help will be very appreciated!

 
Read Message
Read Message
Previous Topic: mysql on private net
Next Topic: nregister_netdevice: device marked to leak
Goto Forum:
  


Current Time: Thu Aug 15 11:19:36 GMT 2024

Total time taken to generate the page: 0.04323 seconds