virConnectOpen chooses qemu:///session before qemu:///system
Bug #556487 reported by
Neil Wilson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
If you call virConnectOpen using a NULL parameter then the hypervisor search sequence will find and connect to the unprivileged 'qemu:///session' uri ahead of 'qemu:///system' for a non-root user - even if the user in question is a member of the libvirtd group.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: libvirt-dev (not installed)
ProcVersionSign
Uname: Linux 2.6.32-19-generic x86_64
Architecture: amd64
Date: Tue Apr 6 13:56:15 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100224.1)
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: libvirt
Changed in libvirt (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
Due to the somewhat unsophisticated selection criteria in 'qemu_driver.c"
conn->uri = xmlParseURI( qemu_driver- >privileged ?
"qemu: ///system" :
"qemu: ///session" );
where 'privileged' is '1' if the process is running as root.