]> xenbits.xensource.com Git - libvirt.git/commit
Mount fresh instance of sysfs/selinux in LXC
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 10 May 2012 16:16:11 +0000 (17:16 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 16 May 2012 09:05:47 +0000 (10:05 +0100)
commite8639920acd4bd5aadc281784723afed6ec069ca
tree1820fccc5ef48555f24ec907da20d3d031dff473
parent8dd5794f814d948c1d14a7458d303e4aac99703d
Mount fresh instance of sysfs/selinux in LXC

Currently to make sysfs readonly, we remount the existing
instance and then bind it readonly. Unfortunately this means
sysfs is still showing device objects wrt the host OS namespace.
We need it to reflect the container namespace, so we must mount
a completely new instance of it. Do the same for selinuxfs since
there is no benefit to bind mounting & this lets us simplify
the code.

* src/lxc/lxc_container.c: Mount fresh sysfs instance

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c