• E
    blockjob: allow mirroring under SELinux and cgroup · 35c7701c
    Eric Blake 提交于
    Use the recent addition of qemuDomainPrepareDiskChainElement to
    obtain locking manager lease, permit a block device through cgroups,
    and set the SELinux label; then audit the fact that we hand a new
    file over to qemu.  Alas, releasing the lease and label at the end
    of the mirroring is a trickier prospect (we would have to trace the
    backing chain of both source and destination, and be sure not to
    revoke rights to any part of the chain that is shared), so for now,
    virDomainBlockJobAbort still leaves things with additional access
    granted (as block-pull and block-commit have the same problem of
    not clamping access after completion, a future cleanup would cover
    all three commands).
    
    * src/qemu/qemu_driver.c (qemuDomainBlockCopy): Set up labeling.
    35c7701c
qemu_driver.c 464.4 KB