[libvirt] [PATCH v4 04/10] LXC: introduce virLXCControllerSetupUserns and lxcContainerSetID

2013-06-07 Thread Gao feng
This patch introduces new helper function virLXCControllerSetupUserns, in this function, we set the files uid_map and gid_map of the init task of container. lxcContainerSetID is used for creating cred for tasks running in container. Since after setuid/setgid, we may be a new user. This patch

Re: [libvirt] [PATCH v4 04/10] LXC: introduce virLXCControllerSetupUserns and lxcContainerSetID

2013-06-07 Thread Daniel P. Berrange
On Fri, Jun 07, 2013 at 03:12:21PM +0800, Gao feng wrote: This patch introduces new helper function virLXCControllerSetupUserns, in this function, we set the files uid_map and gid_map of the init task of container. lxcContainerSetID is used for creating cred for tasks running in container.