nova/nova/virt
Matthew Booth 915fdbbfb8 Fix backing file detection in libvirt live snapshot
When doing a live snapshot, the libvirt driver creates an intermediate
qcow2 file with the same backing file as the original disk. However,
it calls qemu-img info without specifying the input format explicitly.
An authenticated user can write data to a raw disk which will cause
this code to misinterpret the disk as a qcow2 file with a
user-specified backing file on the host, and return an arbitrary host
file as the backing file.

This bug does not appear to result in a data leak in this case, but
this is hard to verify. It certainly results in corrupt output.

Closes-Bug: #1524274

Change-Id: I11485f077d28f4e97529a691e55e3e3c0bea8872
2016-01-14 11:41:56 +00:00
..
disk Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
hyperv Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
image Fix typo in model doc string 2015-07-03 00:11:55 -07:00
ironic Merge "config options: Centralise 'virt.ironic' options" 2016-01-05 04:54:32 +00:00
libvirt Fix backing file detection in libvirt live snapshot 2016-01-14 11:41:56 +00:00
vmwareapi Merge "VMware: add in folder support on VC" 2016-01-06 16:06:55 +00:00
xenapi Merge "Actually pass the migration data object down to the virt drivers" 2016-01-14 08:55:51 +00:00
__init__.py
block_device.py DriverBlockDevice must receive a BDM object, not a dict 2015-12-28 06:35:21 -08:00
configdrive.py Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
diagnostics.py Diagnostics: add validation for types 2014-08-05 01:49:17 -07:00
driver.py Merge "Remove unused refresh_security_group_members() call" 2015-10-20 15:20:55 +00:00
event.py Add 'suspended' lifecycle event 2015-04-03 03:59:20 +03:00
fake.py Drop JSON decoding for supported_instances 2015-12-08 11:54:29 +00:00
firewall.py Reduce the number of db/rpc calls to get instance rules 2015-12-23 19:17:40 +01:00
hardware.py Add 'hw:cpu_thread_policy=require' scheduling 2016-01-12 15:06:08 +00:00
imagecache.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
images.py Fix backing file detection in libvirt live snapshot 2016-01-14 11:41:56 +00:00
interfaces.template Fixes interfaces template identification issue 2014-12-07 17:52:34 +02:00
netutils.py Add the missing return value in the comment 2016-01-04 05:22:21 -05:00
opts.py single point of entry for sample config generation 2016-01-08 13:55:26 +00:00
storage_users.py Use oslo.log 2015-02-22 07:56:40 -05:00
virtapi.py Deprecate and remove agent_build_get_by_triple() 2014-06-25 07:18:19 -07:00
volumeutils.py nova.utils._get_root_helper() should be public 2015-08-19 04:00:50 +00:00
watchdog_actions.py