File suse-ovmf-paths.patch of Package libvirt.9596

Adjust paths of OVMF firmwares on SUSE distros

Index: libvirt-3.3.0/src/security/virt-aa-helper.c
===================================================================
--- libvirt-3.3.0.orig/src/security/virt-aa-helper.c
+++ libvirt-3.3.0/src/security/virt-aa-helper.c
@@ -512,7 +512,8 @@ valid_path(const char *path, const bool
         "/vmlinuz",
         "/initrd",
         "/initrd.img",
-        "/usr/share/ovmf/"               /* for OVMF images */
+        "/usr/share/ovmf/",              /* for OVMF images */
+        "/usr/share/qemu/"               /* for OVMF images on SUSE */
     };
     /* override the above with these */
     const char * const override[] = {
openSUSE Build Service is sponsored by