[PATCH 1/6] qemu: Use qemuSecurityDomainSetPathLabel() to set seclabes on not saved state files

Erik Skultety eskultet at redhat.com
Thu Jun 18 08:38:32 UTC 2020


On Wed, Jun 17, 2020 at 01:35:35PM +0200, Michal Privoznik wrote:
> There are two places within qemu driver that misuse
> qemuSecuritySetSavedStateLabel() to set seclabels on tempfiles
> that are not state files: qemuDomainScreenshot() and
> qemuDomainMemoryPeek(). They are doing so because of lack of
> qemuSecurityDomainSetPathLabel() at the time of their
> introduction.
>
> In all three secdrivers (well, four if you count NOP driver) the
> implementation of .domainSetSavedStateLabel and
> .domainSetPathLabel callbacks is the same anyway.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list