[libvirt] [PATCH] Don't mount selinux fs in LXC if selinux is disabled

Eric Blake eblake at redhat.com
Wed May 15 16:48:05 UTC 2013


On 05/15/2013 09:27 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Before trying to mount the selinux filesystem in a container
> use is_selinux_enabled() to check if the machine actually
> has selinux support (eg not booted with selinux=0)
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/lxc/lxc_container.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130515/fd4bf496/attachment-0001.sig>


More information about the libvir-list mailing list