virlog: determine the hostname on startup CVE-2018-6764
virlog: determine the hostname on startup CVE-2018-6764

At later point it might not be possible or even safe to use getaddrinfo(). It
can in turn result in a load of NSS module.

Notably, on a LXC container startup we may find ourselves with the guest
filesystem already having replaced the host one. Loading a NSS module
from the guest tree would allow a malicous guest to escape the
confinement of its container environment because libvirt will not yet
have locked it down.

jfehlig/libvirt,olafhering/libvirt,nertpinx/libvirt,jfehlig/libvirt,libvirt/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,eskultety/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,zippy2/libvirt,zippy2/libvirt,libvirt/libvirt,crobinso/libvirt,fabianfreyer/libvirt,eskultety/libvirt,nertpinx/libvirt,jardasgit/libvirt,nertpinx/libvirt,eskultety/libvirt,libvirt/libvirt,libvirt/libvirt,jfehlig/libvirt,olafhering/libvirt,olafhering/libvirt,zippy2/libvirt,nertpinx/libvirt,crobinso/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,jardasgit/libvirt,crobinso/libvirt,eskultety/libvirt,jardasgit/libvirt,eskultety/libvirt,crobinso/libvirt,jfehlig/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,zippy2/libvirt,olafhering/libvirt,nertpinx/libvirt