]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Allow libvirtd to RPC to external libvirtd
authorChris Lalancette <clalance@redhat.com>
Fri, 4 Sep 2009 08:28:27 +0000 (10:28 +0200)
committerDaniel Veillard <veillard@redhat.com>
Fri, 4 Sep 2009 08:28:27 +0000 (10:28 +0200)
* src/remote_internal.c: in remoteOpen() allow the daemon itself to make
  RPCs to an external libvirtd, but only if the URI is fully specified.

src/remote_internal.c

index c1db27c2d87a14d6b1376c8446b400e886a177ac..3dd46098700e7a1784610ed95fadd974a88547d8 100644 (file)
@@ -981,7 +981,7 @@ remoteOpen (virConnectPtr conn,
     int ret, rflags = 0;
     const char *autostart = getenv("LIBVIRT_AUTOSTART");
 
-    if (inside_daemon)
+    if (inside_daemon && (!conn->uri || (conn->uri && !conn->uri->server)))
         return VIR_DRV_OPEN_DECLINED;
 
     if (!(priv = remoteAllocPrivateData(conn)))