mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
bhyve: implement virConnectIsSecure
Trivially return 1, since bhyve is considered a local connection that should not be vulnerable to eavesdropping.
This commit is contained in:
parent
32aa9ed3ba
commit
ef45eb9bc7
@ -1522,6 +1522,13 @@ static int bhyveConnectIsAlive(virConnectPtr conn ATTRIBUTE_UNUSED)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
bhyveConnectIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
|
/* Trivially secure, since always inside the daemon */
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
bhyveConnectIsEncrypted(virConnectPtr conn ATTRIBUTE_UNUSED)
|
bhyveConnectIsEncrypted(virConnectPtr conn ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
@ -1580,6 +1587,7 @@ static virHypervisorDriver bhyveHypervisorDriver = {
|
|||||||
.domainHasManagedSaveImage = bhyveDomainHasManagedSaveImage, /* 1.2.13 */
|
.domainHasManagedSaveImage = bhyveDomainHasManagedSaveImage, /* 1.2.13 */
|
||||||
.connectGetType = bhyveConnectGetType, /* 1.3.5 */
|
.connectGetType = bhyveConnectGetType, /* 1.3.5 */
|
||||||
.connectIsAlive = bhyveConnectIsAlive, /* 1.3.5 */
|
.connectIsAlive = bhyveConnectIsAlive, /* 1.3.5 */
|
||||||
|
.connectIsSecure = bhyveConnectIsSecure, /* 1.3.5 */
|
||||||
.connectIsEncrypted = bhyveConnectIsEncrypted, /* 1.3.5 */
|
.connectIsEncrypted = bhyveConnectIsEncrypted, /* 1.3.5 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user