|
|
397dc2 |
From 48f74599ffc86aa632ee39aff1aa8459880ec283 Mon Sep 17 00:00:00 2001
|
|
|
397dc2 |
Message-Id: <48f74599ffc86aa632ee39aff1aa8459880ec283@dist-git>
|
|
|
397dc2 |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
397dc2 |
Date: Tue, 29 Sep 2020 14:43:05 +0200
|
|
|
397dc2 |
Subject: [PATCH] rpc: require write acl for guest agent in
|
|
|
397dc2 |
virDomainInterfaceAddresses
|
|
|
397dc2 |
MIME-Version: 1.0
|
|
|
397dc2 |
Content-Type: text/plain; charset=UTF-8
|
|
|
397dc2 |
Content-Transfer-Encoding: 8bit
|
|
|
397dc2 |
|
|
|
397dc2 |
CVE-2020-25637
|
|
|
397dc2 |
|
|
|
397dc2 |
Add a requirement for domain:write if source is set to
|
|
|
397dc2 |
VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT.
|
|
|
397dc2 |
|
|
|
397dc2 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
397dc2 |
Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
|
|
|
397dc2 |
(cherry picked from commit e4116eaa44cb366b59f7fe98f4b88d04c04970ad)
|
|
|
397dc2 |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
397dc2 |
|
|
|
397dc2 |
Conflicts: src/lxc/lxc_driver.c
|
|
|
397dc2 |
The LXC implementation of the API was introduced
|
|
|
397dc2 |
in libvirt 6.1.0, so it's not present downstream.
|
|
|
397dc2 |
Message-Id: <5fdc2ebf7621698c8136b354922c687fc09286de.1601383236.git.jtomko@redhat.com>
|
|
|
397dc2 |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
397dc2 |
---
|
|
|
397dc2 |
src/libxl/libxl_driver.c | 2 +-
|
|
|
397dc2 |
src/qemu/qemu_driver.c | 2 +-
|
|
|
397dc2 |
src/remote/remote_protocol.x | 1 +
|
|
|
397dc2 |
3 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
397dc2 |
|
|
|
397dc2 |
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
|
|
|
397dc2 |
index f021ec9c5d..1449795494 100644
|
|
|
397dc2 |
--- a/src/libxl/libxl_driver.c
|
|
|
397dc2 |
+++ b/src/libxl/libxl_driver.c
|
|
|
397dc2 |
@@ -6318,7 +6318,7 @@ libxlDomainInterfaceAddresses(virDomainPtr dom,
|
|
|
397dc2 |
if (!(vm = libxlDomObjFromDomain(dom)))
|
|
|
397dc2 |
goto cleanup;
|
|
|
397dc2 |
|
|
|
397dc2 |
- if (virDomainInterfaceAddressesEnsureACL(dom->conn, vm->def) < 0)
|
|
|
397dc2 |
+ if (virDomainInterfaceAddressesEnsureACL(dom->conn, vm->def, source) < 0)
|
|
|
397dc2 |
goto cleanup;
|
|
|
397dc2 |
|
|
|
397dc2 |
if (virDomainObjCheckActive(vm) < 0)
|
|
|
397dc2 |
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
|
|
|
397dc2 |
index f8a259e020..0f06974a1b 100644
|
|
|
397dc2 |
--- a/src/qemu/qemu_driver.c
|
|
|
397dc2 |
+++ b/src/qemu/qemu_driver.c
|
|
|
397dc2 |
@@ -22240,7 +22240,7 @@ qemuDomainInterfaceAddresses(virDomainPtr dom,
|
|
|
397dc2 |
if (!(vm = qemuDomainObjFromDomain(dom)))
|
|
|
397dc2 |
goto cleanup;
|
|
|
397dc2 |
|
|
|
397dc2 |
- if (virDomainInterfaceAddressesEnsureACL(dom->conn, vm->def) < 0)
|
|
|
397dc2 |
+ if (virDomainInterfaceAddressesEnsureACL(dom->conn, vm->def, source) < 0)
|
|
|
397dc2 |
goto cleanup;
|
|
|
397dc2 |
|
|
|
397dc2 |
if (virDomainObjCheckActive(vm) < 0)
|
|
|
397dc2 |
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
|
|
|
397dc2 |
index 2527a78142..fbd30085b2 100644
|
|
|
397dc2 |
--- a/src/remote/remote_protocol.x
|
|
|
397dc2 |
+++ b/src/remote/remote_protocol.x
|
|
|
397dc2 |
@@ -6211,6 +6211,7 @@ enum remote_procedure {
|
|
|
397dc2 |
/**
|
|
|
397dc2 |
* @generate: none
|
|
|
397dc2 |
* @acl: domain:read
|
|
|
397dc2 |
+ * @acl: domain:write::source:VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT
|
|
|
397dc2 |
*/
|
|
|
397dc2 |
REMOTE_PROC_DOMAIN_INTERFACE_ADDRESSES = 353,
|
|
|
397dc2 |
|
|
|
397dc2 |
--
|
|
|
397dc2 |
2.28.0
|
|
|
397dc2 |
|