libvirt/src/qemu
Jonathon Jongsma ffa5066a49 qemu: remove use of qemuDomainObjBeginJobWithAgent()
This function will be removed in a future commit because it allows the
caller to acquire both monitor and agent jobs at the same time. Holding
both job types creates a vulnerability to denial of service from a
malicious guest agent.

qemuDomainSetVcpusFlags() always passes NONE for either the monitor job
or the agent job (and thus is not vulnerable to the DoS), so we can
simply replace this function with the functions for acquiring the
appropriate type of job.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-12-12 15:43:58 +01:00
..
EVENTHANDLERS.txt qemu/doc: Fix function name for handling events 2017-06-13 09:43:42 +02:00
libvirtd_qemu.aug qemu: keep capabilities when running QEMU as root 2019-12-11 16:01:20 +00:00
Makefile.inc.am qemu: Implement backup job APIs and qemu handling 2019-12-10 12:41:58 +01:00
MIGRATION.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_agent.c use g_ascii_isprint instead of c_isprint from gnulib 2019-12-10 13:49:24 +01:00
qemu_agent.h Add API to change qemu agent response timeout 2019-11-14 19:10:01 +01:00
qemu_alias.c qemu: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
qemu_alias.h qemu: add dbus-vmstate 2019-09-06 12:47:47 +02:00
qemu_backup.c qemu: backup: Implement stats gathering while the job is running 2019-12-10 12:41:58 +01:00
qemu_backup.h qemu: backup: Implement stats gathering while the job is running 2019-12-10 12:41:58 +01:00
qemu_block.c util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
qemu_block.h qemu: Separate image metadata removal into a function 2019-11-22 10:48:04 +01:00
qemu_blockjob.c qemu: block: use the delete flag to delete snapshot images if requested 2019-12-11 08:40:18 +01:00
qemu_blockjob.h qemu: block: propagate the delete flag to where it can actually be used 2019-12-11 08:40:18 +01:00
qemu_capabilities.c qemu: Add support for VIR_DOMAIN_CAPS_FEATURE_BACKUP 2019-12-10 12:41:58 +01:00
qemu_capabilities.h conf: drop virCapsPtr param from basic post parse callback 2019-12-09 10:17:19 +00:00
qemu_capspriv.h qemu: add machines & arch to fake test capabilities cache 2019-12-09 10:15:15 +00:00
qemu_cgroup.c qemu: remove unneeded cleanup labels 2019-11-19 15:22:37 +01:00
qemu_cgroup.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
qemu_checkpoint.c qemu: checkpoint: fix NULL dereference at create time 2019-12-09 08:57:40 -05:00
qemu_checkpoint.h qemu: drop virCapsPtr param & vars from many APIs 2019-12-09 10:17:27 +00:00
qemu_command.c qemu: cache host arch separately from virCapsPtr 2019-12-09 10:15:15 +00:00
qemu_command.h qemuBuildHostNetStr: remove unused 'driver' argument 2019-09-18 11:33:17 +02:00
qemu_conf.c qemu: keep capabilities when running QEMU as root 2019-12-11 16:01:20 +00:00
qemu_conf.h qemu: keep capabilities when running QEMU as root 2019-12-11 16:01:20 +00:00
qemu_dbus.c qemu: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:57 +02:00
qemu_dbus.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
qemu_domain_address.c qemu: remove unneeded cleanup labels 2019-11-19 15:22:37 +01:00
qemu_domain_address.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_domain.c qemu: fix concurrency crash bug in snapshot revert 2019-12-12 11:26:19 +01:00
qemu_domain.h qemu: domain: Track backup job data in the status XML 2019-12-10 12:41:57 +01:00
qemu_driver.c qemu: remove use of qemuDomainObjBeginJobWithAgent() 2019-12-12 15:43:58 +01:00
qemu_driver.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_extdevice.c Use g_autofree instead of VIR_AUTOFREE 2019-10-16 12:06:43 +02:00
qemu_extdevice.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
qemu_firmware.c qemu: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
qemu_firmware.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
qemu_hostdev.c qemu_hostdev: Introduce qemuHostdevNeedsVFIO() 2019-10-21 13:50:24 +02:00
qemu_hostdev.h qemu_hostdev: Introduce qemuHostdevNeedsVFIO() 2019-10-21 13:50:24 +02:00
qemu_hotplug.c conf: drop virCapsPtr param from APIs for saving domains 2019-12-09 10:17:27 +00:00
qemu_hotplug.h qemu_hotplug.c: adding qemuDomainGetUnplugTimeout 2019-11-13 15:03:40 -05:00
qemu_interface.c qemu: remove unneeded cleanup labels 2019-11-19 15:22:37 +01:00
qemu_interface.h qemu-process: prepare slirp-helper 2019-09-06 12:47:47 +02:00
qemu_interop_config.c qemu: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
qemu_interop_config.h qemu: generalize qemuFetchConfigs 2019-09-24 12:17:10 -04:00
qemu_migration_cookie.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
qemu_migration_cookie.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_migration_params.c qemu: Implement VIR_MIGRATE_PARAM_TLS_DESTINATION 2019-12-09 10:11:58 +01:00
qemu_migration_params.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
qemu_migration_paramspriv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_migration.c qemu: domain: Introduce QEMU_ASYNC_JOB_BACKUP async job type 2019-12-10 12:41:57 +01:00
qemu_migration.h qemu: Implement VIR_MIGRATE_PARAM_TLS_DESTINATION 2019-12-09 10:11:58 +01:00
qemu_monitor_json.c Remove the rest of VIR_STRNDUP 2019-12-12 14:24:35 +01:00
qemu_monitor_json.h qemu: monitor: Add support for blockdev-backup via 'transaction' 2019-12-10 12:41:57 +01:00
qemu_monitor_priv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_monitor_text.c qemu_monitor_text: Drop unused variable and avoid crash 2019-12-06 10:29:46 +01:00
qemu_monitor_text.h qemu: Remove qemuMonitorTextSetCPU 2019-06-20 15:59:19 +02:00
qemu_monitor.c use g_ascii_isprint instead of c_isprint from gnulib 2019-12-10 13:49:24 +01:00
qemu_monitor.h qemu: monitor: Add support for blockdev-backup via 'transaction' 2019-12-10 12:41:57 +01:00
qemu_process.c Revert "qemu: directly create virResctrlInfo ignoring capabilities" 2019-12-12 11:16:44 +00:00
qemu_process.h qemu: fix build with musl libc 2019-10-17 10:54:32 +02:00
qemu_processpriv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_qapi.c use g_ascii_isalpha instead of c_isalpha from gnulib 2019-12-10 13:49:24 +01:00
qemu_qapi.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_security.c security: Pass @migrated to virSecurityManagerSetAllLabel 2019-10-14 17:14:13 +02:00
qemu_security.h security: Pass @migrated to virSecurityManagerSetAllLabel 2019-10-14 17:14:13 +02:00
qemu_slirp.c qemu: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
qemu_slirp.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
qemu_tpm.c qemu: remove unneeded cleanup labels 2019-11-19 15:22:37 +01:00
qemu_tpm.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
qemu_vhost_user_gpu.c qemu: gpu: Sanitize error values in qemuVhostUserGPUGetPid 2019-11-14 12:42:09 +01:00
qemu_vhost_user_gpu.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
qemu_vhost_user.c Drop needless ret variable 2019-10-24 08:10:37 +02:00
qemu_vhost_user.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
qemu.conf qemu: keep capabilities when running QEMU as root 2019-12-11 16:01:20 +00:00
test_libvirtd_qemu.aug.in qemu: keep capabilities when running QEMU as root 2019-12-11 16:01:20 +00:00
THREADS.txt qemu: update threading info about domain object refs 2019-09-09 13:01:09 +02:00
virtqemud.service.in qemu: introduce virtqemud daemon 2019-08-09 14:06:31 +01:00