]> xenbits.xensource.com Git - libvirt.git/commit
LXC: controller: change the owner of tty devices to the root user of container
authorGao feng <gaofeng@cn.fujitsu.com>
Fri, 7 Jun 2013 07:12:23 +0000 (15:12 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Jul 2013 10:20:04 +0000 (11:20 +0100)
commitff1a6019e98a634ac5bd002b5f6779a201db4c05
treeca1c808522646aa54a7d8ae4b39543720fb147d7
parente1d32bb9558179147b0217ba09fc26376a705849
LXC: controller: change the owner of tty devices to the root user of container

Since these tty devices will be used by container,
the owner of them should be the root user of container.

This patch also adds a new function virLXCControllerChown,
we can use this general function to change the owner of
files.

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