]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virlog: determine the hostname on startup CVE-2018-6764
authorLubomir Rintel <lkundrak@v3.sk>
Sat, 27 Jan 2018 22:43:58 +0000 (23:43 +0100)
committerCole Robinson <crobinso@redhat.com>
Tue, 13 Feb 2018 19:14:33 +0000 (14:14 -0500)
commit3aadeae9709dae6593b5b26e8953b459c6764a6d
treea44e90615079d8afc43689dec62fce630a5d7a80
parent1f9a50947ebfb381cc457d6789736294d38c5fa6
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.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
(cherry picked from commit 759b4d1b0fe5f4d84d98b99153dfa7ac289dd167)
src/util/virlog.c