]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
CVE-2015-0236: qemu: Check ACLs when dumping security info from snapshots
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 Jan 2015 16:01:01 +0000 (17:01 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 22 Jan 2015 16:35:07 +0000 (09:35 -0700)
The ACL check didn't check the VIR_DOMAIN_XML_SECURE flag and the
appropriate permission for it. Found via code inspection while fixing
permissions for save images.

(cherry picked from commit b347c0c2a321ec5c20aae214927949832a288c5a)

src/qemu/qemu_driver.c
src/remote/remote_protocol.x

index 8dce8d1a952416188c650950801edf37a73f9864..bbeba8ddcdb9cc9776b5357dca9a0d725637caa7 100644 (file)
@@ -14049,7 +14049,7 @@ qemuDomainSnapshotGetXMLDesc(virDomainSnapshotPtr snapshot,
     if (!(vm = qemuDomObjFromSnapshot(snapshot)))
         return NULL;
 
-    if (virDomainSnapshotGetXMLDescEnsureACL(snapshot->domain->conn, vm->def) < 0)
+    if (virDomainSnapshotGetXMLDescEnsureACL(snapshot->domain->conn, vm->def, flags) < 0)
         goto cleanup;
 
     if (!(snap = qemuSnapObjFromSnapshot(vm, snapshot)))
index 2d0cbd3373bfe0802dbd53ae414bf47403fe14d7..47c4726e8748ecd16363941b61a34e933c7d2037 100644 (file)
@@ -4448,6 +4448,7 @@ enum remote_procedure {
      * @generate: both
      * @priority: high
      * @acl: domain:read
+     * @acl: domain:read_secure:VIR_DOMAIN_XML_SECURE
      */
     REMOTE_PROC_DOMAIN_SNAPSHOT_GET_XML_DESC = 186,