]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Ensure test:/// URIs get routed to the non-privileged libvirtd
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 10 Jul 2009 12:14:23 +0000 (13:14 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 15 Jul 2009 11:29:35 +0000 (12:29 +0100)
* src/remote_internal.c: Ensure that all test:/// URIs are dealt
  with by the auto-started, per-user unprivileged libvirtd instances

src/remote_internal.c

index 6df02827fff16dbb10e72ab537c2512b0232f58d..72a14c0ae1821f63b4470d3fca88d4ca1a0e6456 100644 (file)
@@ -994,7 +994,8 @@ remoteOpen (virConnectPtr conn,
         conn->uri->scheme &&
         ((strchr(conn->uri->scheme, '+') == 0)||
          (strstr(conn->uri->scheme, "+unix") != NULL)) &&
-        STREQ(conn->uri->path, "/session") &&
+        (STREQ(conn->uri->path, "/session") ||
+         STRPREFIX(conn->uri->scheme, "test+")) &&
         getuid() > 0) {
         DEBUG0("Auto-spawn user daemon instance");
         rflags |= VIR_DRV_OPEN_REMOTE_USER;