[libvirt] [PATCH v4 09/10] LXC: controller: change the owner of /dev/pts and ptmx to the root of container
Daniel P. Berrange
berrange at redhat.com
Fri Jun 7 11:46:25 UTC 2013
On Fri, Jun 07, 2013 at 03:12:26PM +0800, Gao feng wrote:
> These files are created for container,
> the owner should be the root user of container.
>
> Signed-off-by: Gao feng <gaofeng at cn.fujitsu.com>
> ---
> src/lxc/lxc_controller.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c
> index dd85235..d12c4c2 100644
> --- a/src/lxc/lxc_controller.c
> +++ b/src/lxc/lxc_controller.c
> @@ -1548,6 +1548,10 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl)
> goto cleanup;
> }
>
> + if ((virLXCControllerChown(ctrl, ctrl->devptmx) < 0) ||
> + (virLXCControllerChown(ctrl, devpts) < 0))
> + goto cleanup;
> +
> ret = 0;
>
> cleanup:
ACK
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list