mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
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:
parent
40a8fe6d25
commit
a591ae6068
@ -1305,6 +1305,10 @@ static int virLXCControllerPopulateDevices(virLXCControllerPtr ctrl)
|
||||
path);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (virLXCControllerChown(ctrl, path) < 0)
|
||||
goto cleanup;
|
||||
|
||||
VIR_FREE(path);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user