mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
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:
parent
ff1a6019e9
commit
40a8fe6d25
@ -1257,6 +1257,9 @@ static int virLXCControllerSetupDev(virLXCControllerPtr ctrl)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (virLXCControllerChown(ctrl, dev) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
cleanup:
|
||||
VIR_FREE(opts);
|
||||
|
Loading…
Reference in New Issue
Block a user