File 03c3c0c8-CVE-2015-0236.patch of Package libvirt.11695

commit 03c3c0c874c84dfa51ef17556062b095c6e1c0a3
Author: Peter Krempa <pkrempa@redhat.com>
Date:   Tue Jan 20 17:01:01 2015 +0100

    CVE-2015-0236: qemu: Check ACLs when dumping security info from save image
    
    The ACL check didn't check the VIR_DOMAIN_XML_SECURE flag and the
    appropriate permission for it.

Index: libvirt-1.2.5/src/qemu/qemu_driver.c
===================================================================
--- libvirt-1.2.5.orig/src/qemu/qemu_driver.c
+++ libvirt-1.2.5/src/qemu/qemu_driver.c
@@ -5564,7 +5564,7 @@ qemuDomainSaveImageGetXMLDesc(virConnect
     if (fd < 0)
         goto cleanup;
 
-    if (virDomainSaveImageGetXMLDescEnsureACL(conn, def) < 0)
+    if (virDomainSaveImageGetXMLDescEnsureACL(conn, def, flags) < 0)
         goto cleanup;
 
     ret = qemuDomainDefFormatXML(driver, def, flags);
Index: libvirt-1.2.5/src/remote/remote_protocol.x
===================================================================
--- libvirt-1.2.5.orig/src/remote/remote_protocol.x
+++ libvirt-1.2.5/src/remote/remote_protocol.x
@@ -4667,6 +4667,7 @@ enum remote_procedure {
      * @generate: both
      * @priority: high
      * @acl: domain:read
+     * @acl: domain:read_secure:VIR_DOMAIN_XML_SECURE
      */
     REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235,