]> xenbits.xensource.com Git - libvirt.git/commitdiff
bhyve: implement virConnectIsSecure
authorFabian Freyer <fabian.freyer@physik.tu-berlin.de>
Tue, 17 May 2016 12:49:21 +0000 (14:49 +0200)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 17 May 2016 17:18:04 +0000 (20:18 +0300)
Trivially return 1, since bhyve is considered a local connection that
should not be vulnerable to eavesdropping.

src/bhyve/bhyve_driver.c

index 43c7183381268b1eb7e1ccb663b8e85ba5776539..441c666174ac8bc49aa346a985cb067f3c88b692 100644 (file)
@@ -1522,6 +1522,13 @@ static int bhyveConnectIsAlive(virConnectPtr conn ATTRIBUTE_UNUSED)
     return 1;
 }
 
+static int
+bhyveConnectIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED)
+{
+    /* Trivially secure, since always inside the daemon */
+    return 1;
+}
+
 static int
 bhyveConnectIsEncrypted(virConnectPtr conn ATTRIBUTE_UNUSED)
 {
@@ -1580,6 +1587,7 @@ static virHypervisorDriver bhyveHypervisorDriver = {
     .domainHasManagedSaveImage = bhyveDomainHasManagedSaveImage, /* 1.2.13 */
     .connectGetType = bhyveConnectGetType, /* 1.3.5 */
     .connectIsAlive = bhyveConnectIsAlive, /* 1.3.5 */
+    .connectIsSecure = bhyveConnectIsSecure, /* 1.3.5 */
     .connectIsEncrypted = bhyveConnectIsEncrypted, /* 1.3.5 */
 };