[lxc-users] Setting lxc.pivotdir leaves mounted host "/" rw in container?

2016-01-18 Thread steve
Howdy! I am trying to make an lxc container with readonly root "/" I bind mount a "common" rootfs and make it readonly to use as a readonly container root file system. mount --bind /srv/common/ /srv/test/ mount -o remount,ro /srv/test lxc.rootfs = /srv/test ( in container co

Re: [lxc-users] Setting lxc.pivotdir leaves mounted host "/" rw in container?

2016-01-15 Thread Serge Hallyn
Quoting st...@linuxsuite.org (st...@linuxsuite.org): > Howdy! > > I am trying to make lxc containers with readonly root "/" > > I bind mount a "common" rootfs and make it readonly to use as a > readonly container root file system. > > mount --bind /srv/common/ /srv/test/

[lxc-users] Setting lxc.pivotdir leaves mounted host "/" rw in container?

2016-01-15 Thread steve
Howdy! I am trying to make lxc containers with readonly root "/" I bind mount a "common" rootfs and make it readonly to use as a readonly container root file system. mount --bind /srv/common/ /srv/test/ mount -o remount,ro /srv/test lxc.rootfs = /srv/test ( in contai