]> xenbits.xensource.com Git - libvirt.git/commit
nss: Introduce libvirt-guest module
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 29 Nov 2016 12:48:53 +0000 (13:48 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Dec 2016 12:34:00 +0000 (13:34 +0100)
commit22f7ceb695ae98a3c090c34e3489305de911c8d2
tree84240d9c9bfe226dbcd98df9d09ca77f945d6e8e
parent3225e5b26e83083cc980bdc28b8933e491d9eb29
nss: Introduce libvirt-guest module

So far the NSS module looks up only hostnames as provided by
guests themselves. However, there are some cases where this is
not enough: e.g. when there's a fresh new guest being installed
(with some generic hostname) say from a live ISO image; or some
(older) systems don't advertise their hostname in DHCP
transactions at all.
In cases like that it would be helpful if we translate domain
name as seen by libvirt too so that users can:

  # virsh start $dom && ssh $dom

In order to achieve that new libvirt-guest module is introduced,
while older libvirt module maintains its current behaviour (that
is translating guest provided names into IP addresses).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
14 files changed:
docs/news.html.in
docs/nss.html.in
src/Makefile.am
tests/Makefile.am
tests/nssdata/virbr0.macs [new file with mode: 0644]
tests/nssdata/virbr0.status
tests/nssdata/virbr1.macs [new file with mode: 0644]
tests/nssdata/virbr1.status
tests/nssmock.c
tests/nsstest.c
tools/Makefile.am
tools/nss/libvirt_guest_nss.syms [new file with mode: 0644]
tools/nss/libvirt_nss.c
tools/nss/libvirt_nss.h