libvirt/src/qemu
Peter Krempa 7e130e8b35 storage: qemu: Fix security labelling of new image chain elements
When creating a disk image snapshot the libvirt code would blindly copy
the parents label to the newly created image. This runs into problems
when you start a VM from an image hosted on NFS (or other storage system
that doesn't support selinux labels) and the snapshot destination is on
a storage system that does support selinux labels. Libvirt's code in
that case generates a different security label for the image hosted on
NFS. This label is valid only for NFS images and doesn't allow access in
case of a locally stored image.

To fix this issue libvirt needs to refrain from copying security
information in cases where the default domain seclabel is a better
choice.

This patch repurposes the now unused @force argument of
virStorageSourceInitChainElement to denote whether a copy of the
security labelling stuff should be attempted or not. This allows to
fine-control the copy operation for cases where we need to keep the
label of the old disk vs. the cases where we need to keep the label
unset to use the default domain imagelabel.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1151718
2014-11-21 09:28:26 +01:00
..
EVENTHANDLERS.txt qemu: add short document on qemu event handlers 2014-10-06 13:50:57 -04:00
libvirtd_qemu.aug qemu: Automatically create NVRAM store 2014-09-10 09:38:07 +02:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_agent.c Remove unnecessary curly brackets in src/qemu/ 2014-11-14 17:13:01 +01:00
qemu_agent.h qemu: Implement virDomain{Get,Set}Time 2014-05-15 16:44:45 +02:00
qemu_capabilities.c qemu: Drop OVMF whitelist 2014-11-19 18:16:12 +01:00
qemu_capabilities.h qemu: Add Qemu capability for bps_max and friends 2014-11-10 15:48:59 +01:00
qemu_cgroup.c Remove unnecessary curly brackets in src/qemu/ 2014-11-14 17:13:01 +01:00
qemu_cgroup.h qemu: use systemd's TerminateMachine to kill all processes 2014-10-01 20:17:46 +02:00
qemu_command.c qemu: Drop OVMF whitelist 2014-11-19 18:16:12 +01:00
qemu_command.h qemu: make advice from numad available when building commandline 2014-11-03 16:43:22 +01:00
qemu_conf.c Remove unnecessary curly brackets in src/qemu/ 2014-11-14 17:13:01 +01:00
qemu_conf.h qemu: fix crash with shared disks 2014-09-18 09:05:21 +02:00
qemu_domain.c Remove unnecessary curly brackets in src/qemu/ 2014-11-14 17:13:01 +01:00
qemu_domain.h qemu: setup infrastructure to handle NIC_RX_FILTER_CHANGED event 2014-10-06 13:50:57 -04:00
qemu_driver.c storage: qemu: Fix security labelling of new image chain elements 2014-11-21 09:28:26 +01:00
qemu_driver.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
qemu_hostdev.c drivers: use virDirRead API 2014-04-28 17:52:45 -06:00
qemu_hostdev.h Capitalize USB, PCI and SCSI in hostdev methods 2014-03-12 16:20:01 +00:00
qemu_hotplug.c network: Add network bandwidth support to ethernet interfaces 2014-11-19 10:36:49 +01:00
qemu_hotplug.h qemu: Remove need for virConnectPtr in hotunplug detach host, net 2014-10-06 10:35:26 -04:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_migration.c qemu: Really fix crash in tunnelled migration 2014-11-20 13:51:08 +01:00
qemu_migration.h qemu: Memory pre-pinning support for RDMA migration 2014-09-23 08:11:50 +02:00
qemu_monitor_json.c Remove unnecessary curly brackets in src/qemu/ 2014-11-14 17:13:01 +01:00
qemu_monitor_json.h qemu: Always set migration capabilities 2014-11-13 20:33:28 +01:00
qemu_monitor_text.c Remove unnecessary curly brackets in src/qemu/ 2014-11-14 17:13:01 +01:00
qemu_monitor_text.h conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
qemu_monitor.c qemu: Always set migration capabilities 2014-11-13 20:33:28 +01:00
qemu_monitor.h qemu: Always set migration capabilities 2014-11-13 20:33:28 +01:00
qemu_process.c storage: qemu: Fix security labelling of new image chain elements 2014-11-21 09:28:26 +01:00
qemu_process.h qemu: Tidy up job handling during live migration 2014-08-14 12:12:42 +02:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu.conf conf: Check whether migration_address is localhost 2014-10-15 09:25:33 +02:00
test_libvirtd_qemu.aug.in conf: Check whether migration_address is localhost 2014-10-15 09:25:33 +02:00
THREADS.txt Remove qemuDriverLock from almost everywhere 2013-02-13 11:10:30 +00:00