]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
LXC: enable user namespace only when user set the uidmap
authorGao feng <gaofeng@cn.fujitsu.com>
Fri, 7 Jun 2013 07:12:19 +0000 (15:12 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Jul 2013 10:20:04 +0000 (11:20 +0100)
commit8b58336eecbebdf0318c3fb768afad4620a65f59
treefe726a189a9d287f8fef2610e87bf3252e51ca26
parent6c30ea2c353aa664397774ee42c425236371788b
LXC: enable user namespace only when user set the uidmap

User namespace will be enabled only when the idmap exist
in configuration.

If you want disable user namespace,just remove these
elements from XML.

If kernel doesn't support user namespace and idmap exist
in configuration file, libvirt lxc will start failed and
return "Kernel doesn't support user namespace" message.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/lxc/lxc_container.c