Remount the whole root in read-only [message #38974] |
Thu, 25 February 2010 17:05 |
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!
|
|
|