virConnectOpen chooses qemu:///session before qemu:///system

Bug #556487 reported by Neil Wilson
6
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)
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
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

Revision history for this message
Neil Wilson (neil-aldur) wrote :

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.

Thierry Carrez (ttx)
Changed in libvirt (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.