Re: [libvirt] [PATCHv5 14/23] blockjob: allow mirroring under SELinux

2012-04-19 Thread Jiri Denemark
On Mon, Apr 16, 2012 at 23:06:05 -0600, Eric Blake wrote: This copies heavily from qemuDomainSnapshotCreateSingleDiskActive(), in order to set the SELinux label, obtain locking manager lease, and audit the fact that we hand a new file over to qemu. Alas, releasing the lease and label on

[libvirt] [PATCHv5 14/23] blockjob: allow mirroring under SELinux

2012-04-16 Thread Eric Blake
This copies heavily from qemuDomainSnapshotCreateSingleDiskActive(), in order to set the SELinux label, obtain locking manager lease, and audit the fact that we hand a new file over to qemu. Alas, releasing the lease and label on failure or at the end of the mirroring is a trickier prospect (we