From: Gao feng Date: Fri, 7 Jun 2013 07:12:18 +0000 (+0800) Subject: LXC: Introduce New XML element for user namespace X-Git-Tag: CVE-2013-2230~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c30ea2c353aa664397774ee42c425236371788b;p=thirdparty%2Flibvirt.git LXC: Introduce New XML element for user namespace This patch introduces new element for user namespace. for example this new element is used for setting proc files /proc//{uid_map,gid_map}. This patch also supports multiple uid/gid elements setting in XML configuration. We don't support the semi configuation, user has to configure uid and gid both. Signed-off-by: Gao feng --- diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 47d91ab2e6..52a6353bd6 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -285,6 +285,29 @@ +

+ If you want to enable user namespace,set the idmap element. + the uid and gid elements have three attributes: +

+ +
+
start
+
First user id in container.
+
target
+
The first user id in container will be mapped to this target user + id in host.
+
count
+
How many users in container being allowed to map to host's user.
+
+ +
+  <idmap>
+    <uid start='0' target='1000' count='10'/>
+    <gid start='0' target='1000' count='10'/>
+  </idmap>
+    
+ +

SMBIOS System Information

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index cf82878e21..6fe1f96e41 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -55,6 +55,9 @@ + + + @@ -463,6 +466,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +