File 9b1e4cd5-skip-useless-apparmor-files.patch of Package libvirt

commit 9b1e4cd5034225c7f750b38968b576c966c51d75
Author: C├ędric Bosdonnat <cbosdonnat@suse.com>
Date:   Wed Jul 9 16:15:02 2014 +0200

    Don't output libvirt-UUID.files for LXC apparmor profiles

---
 src/security/virt-aa-helper.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: libvirt-1.2.5/src/security/virt-aa-helper.c
===================================================================
--- libvirt-1.2.5.orig/src/security/virt-aa-helper.c
+++ libvirt-1.2.5/src/security/virt-aa-helper.c
@@ -1325,10 +1325,13 @@ main(int argc, char **argv)
             vah_info(include_file);
             vah_info(included_files);
             rc = 0;
+        } else if (ctl->def->virtType == VIR_DOMAIN_VIRT_LXC) {
+            rc = 0;
         } else if ((rc = update_include_file(include_file,
                                              included_files,
-                                             ctl->append)) != 0)
+                                             ctl->append)) != 0) {
             goto cleanup;
+        }
 
 
         /* create the profile from TEMPLATE */