Go to file
Peter Krempa 87ecdf0329 storage: Fix returning of locked objects from 'virStoragePoolObjListSearch'
CVE-2023-3750

'virStoragePoolObjListSearch' explicitly documents that it's returning
a pointer to a locked and ref'd pool that maches the lookup function.

This was not the case as in commit 0c4b391e2a (released in
libvirt-8.3.0) the code was accidentally converted to use 'VIR_LOCK_GUARD'
which auto-unlocked it when leaving the scope, even when the code was
originally "leaking" the lock.

Revert the corresponding conversion and add a comment that this function
is intentionally leaking a locked object.

Fixes: 0c4b391e2a
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2221851
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: zeng_chi <zengchi@kylinos.cn>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2023-12-04 11:13:33 +08:00
.ctags.d Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
build-aux Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
debian Fix CVE-2018-12896 2023-07-17 17:54:59 +08:00
docs Debianize libvirt-guests 2022-11-09 15:23:37 +08:00
examples Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
include Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
po Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
scripts Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
src storage: Fix returning of locked objects from 'virStoragePoolObjListSearch' 2023-12-04 11:13:33 +08:00
tests Skip vircgrouptest 2022-11-09 15:23:37 +08:00
tools Use sensible-editor by default 2022-11-09 15:23:37 +08:00
.ctags Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
.dir-locals.el Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
.editorconfig Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
AUTHORS.rst Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
AUTHORS.rst.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
CONTRIBUTING.rst Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
COPYING Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
COPYING.LESSER Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
NEWS.rst Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
README.rst Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
config.h Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
configmake.h.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
libvirt-admin.pc.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
libvirt-lxc.pc.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
libvirt-qemu.pc.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
libvirt.pc.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
libvirt.spec Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
libvirt.spec.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
meson.build Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
meson_options.txt Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
mingw-libvirt.spec.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00
run.in Import Upstream version 8.5.0 2022-11-08 17:23:04 +08:00

README.rst

.. image:: https://gitlab.com/libvirt/libvirt/badges/master/pipeline.svg
     :target: https://gitlab.com/libvirt/libvirt/pipelines
     :alt: GitLab CI Build Status
.. image:: https://bestpractices.coreinfrastructure.org/projects/355/badge
     :target: https://bestpractices.coreinfrastructure.org/projects/355
     :alt: CII Best Practices
.. image:: https://translate.fedoraproject.org/widgets/libvirt/-/libvirt/svg-badge.svg
     :target: https://translate.fedoraproject.org/engage/libvirt/
     :alt: Translation status

==============================
Libvirt API for virtualization
==============================

Libvirt provides a portable, long term stable C API for managing the
virtualization technologies provided by many operating systems. It
includes support for QEMU, KVM, Xen, LXC, bhyve, Virtuozzo, VMware
vCenter and ESX, VMware Desktop, Hyper-V, VirtualBox and the POWER
Hypervisor.

For some of these hypervisors, it provides a stateful management
daemon which runs on the virtualization host allowing access to the
API both by non-privileged local users and remote users.

Layered packages provide bindings of the libvirt C API into other
languages including Python, Perl, PHP, Go, Java, OCaml, as well as
mappings into object systems such as GObject, CIM and SNMP.

Further information about the libvirt project can be found on the
website:

https://libvirt.org


License
=======

The libvirt C API is distributed under the terms of GNU Lesser General
Public License, version 2.1 (or later). Some parts of the code that are
not part of the C library may have the more restrictive GNU General
Public License, version 2.0 (or later). See the files ``COPYING.LESSER``
and ``COPYING`` for full license terms & conditions.


Installation
============

Instructions on building and installing libvirt can be found on the website:

https://libvirt.org/compiling.html

Contributing
============

The libvirt project welcomes contributions in many ways. For most components
the best way to contribute is to send patches to the primary development
mailing list. Further guidance on this can be found on the website:

https://libvirt.org/contribute.html


Contact
=======

The libvirt project has two primary mailing lists:

* libvirt-users@redhat.com (**for user discussions**)
* libvir-list@redhat.com (**for development only**)

Further details on contacting the project are available on the website:

https://libvirt.org/contact.html