[libvirt] [PATCH 07/12] qemu: domain: Simplify using DAC permissions of top of backing chain

John Ferlan jferlan at redhat.com
Thu Oct 26 14:40:12 UTC 2017



On 10/20/2017 09:47 AM, Peter Krempa wrote:
> qemuDomainGetImageIds and qemuDomainStorageFileInit are helpful when
> trying to access a virStorageSource from the qemu driver since they
> figure out the correct uid and gid for the image.
> 
> When accessing members of a backing chain the permissions for the top
> level would be used. To allow using specific permissions per backing
> chain level but still allow inheritance from the parent of the chain we
> need to add a new parameter to the image ID APIs.
> ---
>  src/qemu/qemu_domain.c | 13 ++++++++++---
>  src/qemu/qemu_domain.h |  3 ++-
>  src/qemu/qemu_driver.c |  6 +++---
>  3 files changed, 15 insertions(+), 7 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John




More information about the libvir-list mailing list