mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
LXC: Change the owner of live attached disk device
The owner of this disk device should be the root user of container. Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
This commit is contained in:
@@ -3258,6 +3258,10 @@ lxcDomainAttachDeviceDiskLive(virLXCDriverPtr driver,
|
||||
dst);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (lxcContainerChown(vm->def, dst) < 0)
|
||||
goto cleanup;
|
||||
|
||||
created = true;
|
||||
|
||||
/* Labelling normally operates on src, but we need
|
||||
|
||||
Reference in New Issue
Block a user