[libvirt] [PATCH 2/4] util: add virGetUNIXSocketPath helper

Michal Privoznik mprivozn at redhat.com
Mon Jan 22 15:44:17 UTC 2018


On 01/19/2018 06:09 PM, Daniel P. Berrange wrote:
> When receiving multiple socket FDs from systemd, it is critical to know
> what socket address each corresponds to so we can setup the right
> protocols on each.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/util/virutil.c | 45 +++++++++++++++++++++++++++++++++++++++++++++
>  src/util/virutil.h |  1 +
>  2 files changed, 46 insertions(+)

Don't forget to actually expose the symbol:

diff --git i/src/libvirt_private.syms w/src/libvirt_private.syms
index bc8cc1fba..54e3b9130 100644
--- i/src/libvirt_private.syms
+++ w/src/libvirt_private.syms
@@ -2962,6 +2962,7 @@ virGetListenFDs;
 virGetSelfLastChanged;
 virGetSystemPageSize;
 virGetSystemPageSizeKB;
+virGetUNIXSocketPath;
 virGetUnprivSGIOSysfsPath;
 virGetUserCacheDirectory;
 virGetUserConfigDirectory;


Michal




More information about the libvir-list mailing list