LXC: controller: change the owner of /dev/pts and ptmx to the root of container

These files are created for container,
the owner should be the root user of container.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
This commit is contained in:
Gao feng 2013-06-07 15:12:26 +08:00 committed by Daniel P. Berrange
parent a591ae6068
commit 6c7665e150

View File

@ -1548,6 +1548,10 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl)
goto cleanup;
}
if ((virLXCControllerChown(ctrl, ctrl->devptmx) < 0) ||
(virLXCControllerChown(ctrl, devpts) < 0))
goto cleanup;
ret = 0;
cleanup: