]> git.ipfire.org Git - thirdparty/libvirt.git/commit
api: disallow virConnect*HypervisorCPU on read-only connections v5.3-maint
authorJán Tomko <jtomko@redhat.com>
Fri, 14 Jun 2019 07:17:39 +0000 (09:17 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 24 Jun 2019 07:12:19 +0000 (09:12 +0200)
commitd8e4d13446a0b04b757bd28c242a4cfecaaa8f1e
tree5efa0a3b145d64dfdab723c9c380a726d3624436
parent97a737c58ff6080bd0e149830b860ef32b3d2acb
api: disallow virConnect*HypervisorCPU on read-only connections

These APIs can be used to execute arbitrary emulators.
Forbid them on read-only connections.

Fixes: CVE-2019-10168
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit bf6c2830b6c338b1f5699b095df36f374777b291)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/libvirt-host.c