]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainAttachSCSIVHostDevice: Prefer qemuSecurity wrappers
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Feb 2017 14:56:23 +0000 (15:56 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Feb 2017 14:53:43 +0000 (15:53 +0100)
commit7d93a8851922fef906b12be93771c2c9ec659d18
tree21d382d986fcf41733c00017a237ddf7a3b2d173
parent2841e6756d5807a4119e004bc5fb8e7d70806458
qemuDomainAttachSCSIVHostDevice: Prefer qemuSecurity wrappers

Since we have qemuSecurity wrappers over
virSecurityManagerSetHostdevLabel and
virSecurityManagerRestoreHostdevLabel we ought to use them
instead of calling secdriver APIs directly.  Without those
wrappers the labelling won't be done in the correct namespace
and thus won't apply to the nodes seen by qemu itself.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_hotplug.c