[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/2] bhyve: implement virConnectIsSecure



Trivially return 1, since bhyve is considered a local connection that
should not be vulnerable to eavesdropping.
---
 src/bhyve/bhyve_driver.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c
index 43c7183..441c666 100644
--- a/src/bhyve/bhyve_driver.c
+++ b/src/bhyve/bhyve_driver.c
@@ -1523,6 +1523,13 @@ static int bhyveConnectIsAlive(virConnectPtr conn ATTRIBUTE_UNUSED)
 }
 
 static int
+bhyveConnectIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED)
+{
+    /* Trivially secure, since always inside the daemon */
+    return 1;
+}
+
+static int
 bhyveConnectIsEncrypted(virConnectPtr conn ATTRIBUTE_UNUSED)
 {
     /* Not encrypted, but remote driver takes care of that */
@@ -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 */
 };
 
-- 
2.7.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]