[libvirt] [PATCH v3 0/7] NSS module for libvirt

Michal Privoznik mprivozn at redhat.com
Tue Mar 1 10:42:05 UTC 2016


v3 of:

https://www.redhat.com/archives/libvir-list/2016-February/msg00693.html

diff to v2:
- don't link against libvirt.la rather than create a separate small lib to link
  with
- teach nsstest to check multiple addresses

Note that patches 1..4 have been ACKed already, but I'm sending them anyway for
completeness.

Michal Privoznik (7):
  Export virLease* functions for leases file handling
  virjson: Resolve const correctness
  Initial support for NSS plugin skeleton
  libvirt.spec.in: Introduce libvirt-nss package
  nss: Implement _nss_libvirt_gethostbyname3_r
  Implement _nss_libvirt_gethostbyname4_r
  nss: Introduce a test

 cfg.mk                      |   2 +-
 config-post.h               |  21 ++
 configure.ac                |   2 +
 libvirt.spec.in             |  21 ++
 m4/virt-nss.m4              |  51 +++++
 po/POTFILES.in              |   1 +
 src/Makefile.am             |  67 +++++++
 src/libvirt_private.syms    |   6 +
 src/network/leaseshelper.c  | 271 +------------------------
 src/util/virfile.c          |   2 +-
 src/util/virjson.c          |  58 +++---
 src/util/virjson.h          |  54 ++---
 src/util/virlease.c         | 304 ++++++++++++++++++++++++++++
 src/util/virlease.h         |  44 ++++
 tests/Makefile.am           |  20 +-
 tests/nssdata/virbr0.status |  20 ++
 tests/nssmock.c             | 140 +++++++++++++
 tests/nsstest.c             | 188 +++++++++++++++++
 tools/Makefile.am           |  44 ++++
 tools/nss/libvirt_nss.c     | 476 ++++++++++++++++++++++++++++++++++++++++++++
 tools/nss/libvirt_nss.h     |  52 +++++
 tools/nss/libvirt_nss.syms  |  12 ++
 22 files changed, 1527 insertions(+), 329 deletions(-)
 create mode 100644 m4/virt-nss.m4
 create mode 100644 src/util/virlease.c
 create mode 100644 src/util/virlease.h
 create mode 100644 tests/nssdata/virbr0.status
 create mode 100644 tests/nssmock.c
 create mode 100644 tests/nsstest.c
 create mode 100644 tools/nss/libvirt_nss.c
 create mode 100644 tools/nss/libvirt_nss.h
 create mode 100644 tools/nss/libvirt_nss.syms

-- 
2.4.10




More information about the libvir-list mailing list