File virt-aa-helper-hotplug.patch of Package libvirt.11411

Index: libvirt-1.2.5/src/util/virpci.c
===================================================================
--- libvirt-1.2.5.orig/src/util/virpci.c
+++ libvirt-1.2.5/src/util/virpci.c
@@ -1922,11 +1922,13 @@ int virPCIDeviceFileIterate(virPCIDevice
     while ((direrr = virDirRead(dir, &ent, pcidir)) > 0) {
         /* Device assignment requires:
          *   $PCIDIR/config, $PCIDIR/resource, $PCIDIR/resourceNNN,
-         *   $PCIDIR/rom, $PCIDIR/reset
+         *   $PCIDIR/rom, $PCIDIR/reset, $PCIDIR/vendor, $PCIDIR/device
          */
         if (STREQ(ent->d_name, "config") ||
             STRPREFIX(ent->d_name, "resource") ||
             STREQ(ent->d_name, "rom") ||
+            STREQ(ent->d_name, "vendor") ||
+            STREQ(ent->d_name, "device") ||
             STREQ(ent->d_name, "reset")) {
             if (virAsprintf(&file, "%s/%s", pcidir, ent->d_name) < 0)
                 goto cleanup;
Index: libvirt-1.2.5/examples/apparmor/libvirt-qemu
===================================================================
--- libvirt-1.2.5.orig/examples/apparmor/libvirt-qemu
+++ libvirt-1.2.5/examples/apparmor/libvirt-qemu
@@ -111,6 +111,7 @@
   /usr/bin/qemu-sparc64 rmix,
   /usr/bin/qemu-x86_64 rmix,
   /usr/{lib,lib64}/qemu/block-curl.so mr,
+  /usr/{lib,lib64}/qemu/block-rbd.so mr,
 
   # for save and resume
   /bin/dash rmix,
openSUSE Build Service is sponsored by