libvirt/src/qemu
Jonathon Jongsma 1cb8bc52c1 qemu: don't take agent and monitor job for shutdown
We have to assume that the guest agent may be malicious so we don't want
to allow any agent queries to block any other libvirt API. By holding
a monitor job while we're querying the agent, we open ourselves up to a
DoS.  So split the function into separate parts: one that does the agent
shutdown and one that does the monitor shutdown. Each part holds only a
job of the appropriate type.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-12-12 15:43:58 +01:00
..
EVENTHANDLERS.txt
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
qemu_agent.c use g_ascii_isprint instead of c_isprint from gnulib 2019-12-10 13:49:24 +01:00
qemu_agent.h
qemu_alias.c
qemu_alias.h
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_cgroup.h
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
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_dbus.h
qemu_domain_address.c
qemu_domain_address.h
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: don't take agent and monitor job for shutdown 2019-12-12 15:43:58 +01:00
qemu_driver.h
qemu_extdevice.c
qemu_extdevice.h
qemu_firmware.c
qemu_firmware.h
qemu_hostdev.c
qemu_hostdev.h
qemu_hotplug.c conf: drop virCapsPtr param from APIs for saving domains 2019-12-09 10:17:27 +00:00
qemu_hotplug.h
qemu_interface.c
qemu_interface.h
qemu_interop_config.c
qemu_interop_config.h
qemu_migration_cookie.c conf: drop virCapsPtr param from domain parse APIs 2019-12-09 10:17:27 +00:00
qemu_migration_cookie.h
qemu_migration_params.c qemu: Implement VIR_MIGRATE_PARAM_TLS_DESTINATION 2019-12-09 10:11:58 +01:00
qemu_migration_params.h
qemu_migration_paramspriv.h
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
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_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_processpriv.h
qemu_qapi.c use g_ascii_isalpha instead of c_isalpha from gnulib 2019-12-10 13:49:24 +01:00
qemu_qapi.h
qemu_security.c
qemu_security.h
qemu_slirp.c qemu: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
qemu_slirp.h
qemu_tpm.c
qemu_tpm.h
qemu_vhost_user_gpu.c
qemu_vhost_user_gpu.h
qemu_vhost_user.c
qemu_vhost_user.h
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
virtqemud.service.in