libvirt/src/qemu
Michal Privoznik a1dd3576b5 qemu_hotplug: Create chardev files before attempting to relabel them
When hotplugging a chardev, Libvirt opens corresponding
file/binds to a socket/does whatever necessary to obtain an FD
that is later passed to QEMU. However, due to wrong placement of
the function that does all of this
(qemuProcessPrepareHostBackendChardevHotplug()) it may happen
that a file is set seclabel on, only to be unlink()-ed and
created again (the former is done by
qemuSecuritySetChardevLabel(), the latter by aforementioned
function). The unlink()-ing is done for UNIX sockets with
mode='bind' and happens inside qemuOpenChrChardevUNIXSocket().
However, these steps can be swapped simply.

Fixes: ad81aa8ad0
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
2022-07-22 15:14:44 +02:00
..
libvirt_qemu_probes.d
libvirtd_qemu.aug qemu: conf: Add 'deprecation_behavior' setting to qemu.conf 2021-04-06 17:07:05 +02:00
meson.build qemu: Use real defaults for user and group in qemu.conf 2022-04-01 15:32:48 +02:00
postcopy-migration.sysctl qemu: Ignore missing vm.unprivileged_userfaultfd sysctl 2022-02-09 13:03:33 +01:00
qemu_agent.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_agent.h util: refactor virDomainDeviceCCWAddress into virccw.h 2022-05-23 16:31:40 +02:00
qemu_alias.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_alias.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_backup.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_backup.h qemu: use generalized virDomainJobData instead of qemuDomainJobInfo 2022-02-15 12:20:45 +01:00
qemu_block.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_block.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_blockjob.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_blockjob.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
qemu_capabilities.c qemu: introduce capability QEMU_CAPS_MIGRATION_BLOCKED_REASONS 2022-07-21 00:58:06 -04:00
qemu_capabilities.h qemu: introduce capability QEMU_CAPS_MIGRATION_BLOCKED_REASONS 2022-07-21 00:58:06 -04:00
qemu_capspriv.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
qemu_cgroup.c qemu_cgroup: Introduce qemuCgroupAllowDevicesPaths() 2022-07-21 14:49:42 +02:00
qemu_cgroup.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_checkpoint.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_checkpoint.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_command.c qemu: Generate cmd line for guestReset 2022-07-13 16:01:14 +02:00
qemu_command.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
qemu_conf.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_conf.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_dbus.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_dbus.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
qemu_domain_address.c qemu_domain_address: Drop needless virDomainIOMMUModel typecast 2022-07-04 13:21:16 +02:00
qemu_domain_address.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_domain.c qemu & hypervisor: move qemuDomainObjInitJob() into hypervisor 2022-07-21 15:02:44 +02:00
qemu_domain.h qemu & hypervisor: move job object into hypervisor 2022-07-20 14:43:14 +02:00
qemu_domainjob.c qemu & hypervisor: move qemuDomainObjInitJob() into hypervisor 2022-07-21 15:02:44 +02:00
qemu_domainjob.h qemu & hypervisor: move qemuDomainObjInitJob() into hypervisor 2022-07-21 15:02:44 +02:00
qemu_driver.c qemu_migration: Acquire correct job in qemuMigrationSrcIsAllowed 2022-07-22 12:47:32 +02:00
qemu_driver.h
qemu_extdevice.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_extdevice.h qemu: Revert "qemuExtDevicesStart: pass logManager" 2021-10-12 14:12:11 +02:00
qemu_fd.c qemu: fd: Fix monitor usage of qemuFDPassDirectGetPath 2022-06-06 09:42:58 +02:00
qemu_fd.h qemuFDPassTransferCommand: Remove return value 2022-05-17 19:31:08 +02:00
qemu_firmware.c qemu_firmware: enrolled-keys requires secure-boot 2022-07-01 15:10:40 +02:00
qemu_firmware.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
qemu_hostdev.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_hostdev.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_hotplug.c qemu_hotplug: Create chardev files before attempting to relabel them 2022-07-22 15:14:44 +02:00
qemu_hotplug.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
qemu_interface.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_interface.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
qemu_interop_config.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_interop_config.h
qemu_migration_cookie.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_migration_cookie.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_migration_params.c qemu & hypervisor: move job object into hypervisor 2022-07-20 14:43:14 +02:00
qemu_migration_params.h qemu: Pass migration flags to qemuMigrationParamsApply 2022-07-01 11:28:34 +02:00
qemu_migration_paramspriv.h qemu_migration: Apply max-postcopy-bandwidth on post-copy resume 2022-07-01 11:28:34 +02:00
qemu_migration.c qemu_migration: Acquire correct job in qemuMigrationSrcIsAllowed 2022-07-22 12:47:32 +02:00
qemu_migration.h qemu_migration: Acquire correct job in qemuMigrationSrcIsAllowed 2022-07-22 12:47:32 +02:00
qemu_monitor_json.c qemu: new function to retrieve migration blocker reasons from QEMU 2022-07-21 00:58:06 -04:00
qemu_monitor_json.h qemu: new function to retrieve migration blocker reasons from QEMU 2022-07-21 00:58:06 -04:00
qemu_monitor_priv.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
qemu_monitor_text.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_monitor_text.h qemu_monitor: remove unused load snapshot code 2021-11-23 16:03:07 +01:00
qemu_monitor.c qemu: new function to retrieve migration blocker reasons from QEMU 2022-07-21 00:58:06 -04:00
qemu_monitor.h qemu: new function to retrieve migration blocker reasons from QEMU 2022-07-21 00:58:06 -04:00
qemu_namespace.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_namespace.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_process.c qemu & hypervisor: move job object into hypervisor 2022-07-20 14:43:14 +02:00
qemu_process.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
qemu_processpriv.h qemu: Do not pass unused opaque pointer to monitor callbacks 2022-05-24 16:26:04 +02:00
qemu_qapi.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_qapi.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
qemu_saveimage.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_saveimage.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_security.c qemu_security: Drop qemuSecurityStartVhostUserGPU() 2022-05-09 16:17:00 +02:00
qemu_security.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_shim.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_slirp.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_slirp.h qemu: slirp: Remove unused 'qemuSlirpGetFD' 2022-05-16 09:15:46 +02:00
qemu_snapshot.c qemu_migration: Acquire correct job in qemuMigrationSrcIsAllowed 2022-07-22 12:47:32 +02:00
qemu_snapshot.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_tpm.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_tpm.h qemu_tpm: Make APIs work over a single virDomainTPMDef 2022-05-24 16:15:29 +02:00
qemu_validate.c qemu_validate: Validate that QEMU's capable of guestReset 2022-07-13 16:01:11 +02:00
qemu_validate.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_vhost_user_gpu.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_vhost_user_gpu.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_vhost_user.c qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_vhost_user.h qemu: Remove unused includes 2022-06-16 06:43:57 +02:00
qemu_virtiofs.c qemu: virtiofs: format --thread-pool-size 2022-06-16 14:58:25 +02:00
qemu_virtiofs.h qemu: virtiofs: open a separate connection to virtlogd 2021-10-12 14:12:11 +02:00
qemu.conf.in qemu: Use real defaults for user and group in qemu.conf 2022-04-01 15:32:48 +02:00
test_libvirtd_qemu.aug.in qemu: Use real defaults for user and group in qemu.conf 2022-04-01 15:32:48 +02:00
virtqemud.init.in
virtqemud.service.in systemd: Use correct man page name in modular daemon service files 2022-02-01 13:20:11 +01:00