Daniel P. Berrangé (7):
  src: add virHostnameValidate helper for validation
  conf: perform full validation of hostnames / domain names
  src: remove fallback when opening dnsmasq addnhosts file fails
  src: use virFileRewrite for dnsmasq addnhosts file
  src: remove fallback when opening dnsmasq hosts file fails
  src: use virFileRewrite for dnsmasq hosts file
  util: sanity check dnsmasq hosts/addnhosts lines for no whitespace

 src/conf/network_conf.c                       |  31 ++-
 src/libvirt_private.syms                      |   1 +
 src/util/virdnsmasq.c                         | 179 +++++++-----------
 src/util/virutil.c                            |  50 +++++
 src/util/virutil.h                            |   2 +
 .../nat-network-bad-hostname.xml              |  22 +++
 .../nat-network-dhcp-hosts-bad.xml            |  21 ++
 .../nat-network-dns-hosts-bad.xml             |  26 +++
 tests/networkxmlconftest.c                    |   3 +
 tests/utiltest.c                              |  72 +++++++
 tests/virschematest.c                         |   3 +
 11 files changed, 286 insertions(+), 124 deletions(-)
 create mode 100644 tests/networkxmlconfdata/nat-network-bad-hostname.xml
 create mode 100644 tests/networkxmlconfdata/nat-network-dhcp-hosts-bad.xml
 create mode 100644 tests/networkxmlconfdata/nat-network-dns-hosts-bad.xml

-- 
2.56.0

Reply via email to