From: Daniel P. Berrange Date: Fri, 10 Jul 2009 12:14:23 +0000 (+0100) Subject: Ensure test:/// URIs get routed to the non-privileged libvirtd X-Git-Tag: v0.7.0~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c9b8431ee0724ba367dcc1e88849f05e5c841f3;p=thirdparty%2Flibvirt.git Ensure test:/// URIs get routed to the non-privileged libvirtd * src/remote_internal.c: Ensure that all test:/// URIs are dealt with by the auto-started, per-user unprivileged libvirtd instances --- diff --git a/src/remote_internal.c b/src/remote_internal.c index 6df02827ff..72a14c0ae1 100644 --- a/src/remote_internal.c +++ b/src/remote_internal.c @@ -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;