libvirt/src/qemu
Viktor Mihajlovski 1a50ba2cb0 qemu: Fix QMP Capabability Probing Failure
QMP Capability probing will fail if QEMU cannot bind to the
QMP monitor socket in the qemu_driver->libDir directory.
That's because the child process is stripped of all
capabilities and this directory is chown'ed to the configured
QEMU user/group (normally qemu:qemu) by the QEMU driver.

To prevent this from happening, the driver startup will now pass
the QEMU uid and gid down to the capability probing code.
All capability probing invocations of QEMU will be run with
the configured QEMU uid instead of libvirtd's.

Furter, the pid file handling is moved to libvirt, as QEMU
cannot write to the qemu_driver->runDir (root:root). This also
means that the libvirt daemonizing must be used.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
2012-11-28 14:54:29 +00:00
..
libvirtd_qemu.aug qemu: conf: add seccomp_sandbox option 2012-09-18 15:43:28 +08:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_agent.c Move virProcessKill into virprocess.{h,c} 2012-09-26 10:09:57 +01:00
qemu_agent.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_bridge_filter.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_bridge_filter.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_capabilities.c qemu: Fix QMP Capabability Probing Failure 2012-11-28 14:54:29 +00:00
qemu_capabilities.h qemu: Fix QMP Capabability Probing Failure 2012-11-28 14:54:29 +00:00
qemu_cgroup.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
qemu_cgroup.h qemu: Keep the affinity when creating cgroup for emulator thread 2012-10-24 21:46:24 +08:00
qemu_command.c qemu: Add support for gluster protocol based network storage backend. 2012-11-27 10:19:22 +01:00
qemu_command.h Remove probing of machine types when canonicalizing XML 2012-09-27 10:24:52 +01:00
qemu_conf.c s/qemud/qemu/ in QEMU driver sources 2012-11-27 19:36:36 +00:00
qemu_conf.h s/qemud/qemu/ in QEMU driver sources 2012-11-27 19:36:36 +00:00
qemu_domain.c qemu: fix RBD attach regression 2012-11-21 12:33:23 -07:00
qemu_domain.h qemu: Allow migration to be cancelled at prepare phase 2012-11-12 10:39:39 +01:00
qemu_driver.c qemu: Fix QMP Capabability Probing Failure 2012-11-28 14:54:29 +00:00
qemu_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_hostdev.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
qemu_hostdev.h qemu: Implement startupPolicy for USB passed through devices 2012-10-11 15:11:42 +02:00
qemu_hotplug.c storage: fix device detach regression with cgroup ACLs 2012-11-27 08:02:26 -07:00
qemu_hotplug.h qemu: reorganize qemuDomainChangeNet and qemuDomainChangeNetBridge 2012-10-15 04:36:39 -04:00
qemu_migration.c qemu: Beautify code indent in migration codes 2012-11-16 16:42:09 +08:00
qemu_migration.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_monitor_json.c qemu: Fix name comparison in qemuMonitorJSONBlockIoThrottleInfo() 2012-11-01 13:23:27 -06:00
qemu_monitor_json.h Make non-KVM machines work with QMP probing 2012-10-31 08:31:49 +01:00
qemu_monitor_text.c s/qemud/qemu/ in QEMU driver sources 2012-11-27 19:36:36 +00:00
qemu_monitor_text.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_monitor.c qemu: Wait for monitor socket even without pid 2012-11-28 14:54:21 +00:00
qemu_monitor.h Make non-KVM machines work with QMP probing 2012-10-31 08:31:49 +01:00
qemu_process.c s/qemud/qemu/ in QEMU driver sources 2012-11-27 19:36:36 +00:00
qemu_process.h qemu: Add helper to prepare cpumap for affinity setting 2012-10-24 21:24:10 +08:00
qemu.conf doc: update description about user/group in qemu.conf 2012-10-09 08:38:36 -06:00
test_libvirtd_qemu.aug.in Fix the augea test for qemu libvirtd options 2012-09-18 16:28:43 +08:00
THREADS.txt qemu: fix crash when mixing sync and async monitor jobs 2011-08-01 09:41:57 -06:00