mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 06:25:19 +00: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:
parent
14a0c4084d
commit
4f41a8e5b2
@ -3258,6 +3258,10 @@ lxcDomainAttachDeviceDiskLive(virLXCDriverPtr driver,
|
|||||||
dst);
|
dst);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lxcContainerChown(vm->def, dst) < 0)
|
||||||
|
goto cleanup;
|
||||||
|
|
||||||
created = true;
|
created = true;
|
||||||
|
|
||||||
/* Labelling normally operates on src, but we need
|
/* Labelling normally operates on src, but we need
|
||||||
|
Loading…
x
Reference in New Issue
Block a user