libvirt/src/qemu
Laine Stump 34a19dda1c Set SELinux context label of pipes used for qemu migration
This patch is a partial resolution to the following bug:

   https://bugzilla.redhat.com/show_bug.cgi?id=667756

(to complete the fix, an updated selinux-policy package is required,
to add the policy that allows libvirt to set the context of a fifo,
which was previously not allowed).

Explanation : When an incoming migration is over a pipe (for example,
if the image was compressed and is being fed through gzip, or was on a
root-squash nfs server, so needed to be opened by a child process
running as a different uid), qemu cannot read it unless the selinux
context label for the pipe has been set properly.

The solution is to check the fd used as the source of the migration
just before passing it to qemu; if it's a fifo (implying that it's a
pipe), we call the newly added virSecurityManagerSetFDLabel() function
to set the context properly.
2011-01-26 09:03:21 -05:00
..
libvirtd_qemu.aug Add a watchdog action `dump' 2010-12-09 11:59:27 -07:00
qemu_audit.c Move QEMU audit helper code out of the QEMU driver 2010-12-17 13:46:15 +00:00
qemu_audit.h Move QEMU audit helper code out of the QEMU driver 2010-12-17 13:46:15 +00:00
qemu_bridge_filter.c Remove conn parameter from virReportSystemError 2010-02-09 01:04:54 +01:00
qemu_bridge_filter.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
qemu_capabilities.c qemu: sound: Support intel 'ich6' model 2011-01-24 13:11:52 -05:00
qemu_capabilities.h qemu: sound: Support intel 'ich6' model 2011-01-24 13:11:52 -05:00
qemu_cgroup.c domain_conf: split source data out from ChrDef 2011-01-14 09:54:26 -07:00
qemu_cgroup.h Move QEMU cgroup helper code out of the QEMU driver 2010-12-17 13:48:30 +00:00
qemu_command.c qemu: sound: Support intel 'ich6' model 2011-01-24 13:11:52 -05:00
qemu_command.h qemu: use -incoming fd:n to avoid qemu holding fd indefinitely 2011-01-17 09:24:41 -07:00
qemu_conf.c qemu: Add conf option to auto setup VNC unix sockets 2011-01-21 16:03:05 -05:00
qemu_conf.h qemu: Add conf option to auto setup VNC unix sockets 2011-01-21 16:03:05 -05:00
qemu_domain.c qemu: move monitor device out of domain_conf common code 2011-01-14 09:54:26 -07:00
qemu_domain.h qemu: move monitor device out of domain_conf common code 2011-01-14 09:54:26 -07:00
qemu_driver.c Set SELinux context label of pipes used for qemu migration 2011-01-26 09:03:21 -05:00
qemu_driver.h Move QEMU private data & namespace code into separate file 2010-12-17 13:44:54 +00:00
qemu_hostdev.c Move QEMU hostdev helper code out of the QEMU driver 2010-12-17 13:50:21 +00:00
qemu_hostdev.h Move QEMU hostdev helper code out of the QEMU driver 2010-12-17 13:50:21 +00:00
qemu_hotplug.c Fix startup with VNC password expiry on old QEMU 2011-01-21 16:24:13 +00:00
qemu_hotplug.h Use the new set_password monitor command to set password. 2011-01-14 12:36:00 -07:00
qemu_monitor_json.c [v2] qemu: Retry JSON monitor cont cmd on MigrationExpected error 2011-01-21 09:35:57 -07:00
qemu_monitor_json.h qemu: add set_password and expire_password monitor commands 2011-01-14 12:35:42 -07:00
qemu_monitor_text.c Fix startup with VNC password expiry on old QEMU 2011-01-21 16:24:13 +00:00
qemu_monitor_text.h qemu: add set_password and expire_password monitor commands 2011-01-14 12:35:42 -07:00
qemu_monitor.c qemu: add set_password and expire_password monitor commands 2011-01-14 12:35:42 -07:00
qemu_monitor.h qemu: add set_password and expire_password monitor commands 2011-01-14 12:35:42 -07:00
qemu.conf Push unapplied fixups for previous patch 2011-01-21 16:18:54 -05:00
test_libvirtd_qemu.aug Add a watchdog action `dump' 2010-12-09 11:59:27 -07:00
THREADS.txt Release driver and domain lock when running monitor commands 2009-11-10 13:27:18 +00:00