LXC: controller: change the owner of devices created on host

Since these devices are created for the container.
the owner should be the root user of the container.

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

View File

@ -1305,6 +1305,10 @@ static int virLXCControllerPopulateDevices(virLXCControllerPtr ctrl)
path);
goto cleanup;
}
if (virLXCControllerChown(ctrl, path) < 0)
goto cleanup;
VIR_FREE(path);
}