LXC: controller: change the owner of /dev to the root user of container

container will create /dev/pts directory in /dev.
the owner of /dev 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:24 +08:00 committed by Daniel P. Berrange
parent ff1a6019e9
commit 40a8fe6d25

View File

@ -1257,6 +1257,9 @@ static int virLXCControllerSetupDev(virLXCControllerPtr ctrl)
goto cleanup;
}
if (virLXCControllerChown(ctrl, dev) < 0)
goto cleanup;
ret = 0;
cleanup:
VIR_FREE(opts);