qemu: Restore label to temp file in qemuDomainScreenshot()
qemu: Restore label to temp file in qemuDomainScreenshot()

Obtaining a screenshot via virDomainScreenshot() works like this:
  1) we create a temp file, label it, then
  2) tell QEMU to store the screenshot into it, and
  3) finally, open the file for transfer via virStream

Since the file is just temporary and even explicitly unlinked at
the end, no seclabel restoration is done. This makes perfect
sense for security models which attach a label to file itself
(DAC, SELinux) because the label is gone with the file. However,
for models where a list of files and allowed actions is kept on a
side (AppArmor) this approach means we just append files into the
profile and never remove them. In turn, the file grows and policy
update takes longer with each entry.

Restore the seclabel for AppArmor's sake.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

jfehlig/libvirt,olafhering/libvirt,crobinso/libvirt,crobinso/libvirt,jfehlig/libvirt,crobinso/libvirt,zippy2/libvirt,zippy2/libvirt,libvirt/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,jfehlig/libvirt,libvirt/libvirt,olafhering/libvirt,jfehlig/libvirt,olafhering/libvirt,libvirt/libvirt