]> xenbits.xensource.com Git - libvirt.git/commit
qemu: domain: Simplify using DAC permissions of top of backing chain
authorPeter Krempa <pkrempa@redhat.com>
Mon, 16 Oct 2017 12:10:09 +0000 (14:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 3 Nov 2017 08:15:41 +0000 (09:15 +0100)
commit2b757b964b5b701b4a55839e5eeef54fd5179ee7
tree6d8007208019d3335a37ecffb4f74dc1920e1236
parentcc16fa2a85d038caa8a9327ed6c36630ed133aec
qemu: domain: Simplify using DAC permissions of top of backing chain

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
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c