]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
7 years agoMerge branch 'michal/fix-regex-used-for-mangling-druz-dnskey-v9_14' into 'v9_14'
Michał Kępień [Fri, 8 Mar 2019 13:08:57 +0000 (08:08 -0500)] 
Merge branch 'michal/fix-regex-used-for-mangling-druz-dnskey-v9_14' into 'v9_14'

[v9_14] Fix regex used for mangling druz/DNSKEY (in the "dlv" system test)

See merge request isc-projects/bind9!1647

7 years agoFix regex used for mangling druz/DNSKEY
Michał Kępień [Fri, 8 Mar 2019 12:47:13 +0000 (13:47 +0100)] 
Fix regex used for mangling druz/DNSKEY

During "dlv" system test setup, the "sed" regex used for mangling the
DNSKEY RRset for the "druz" zone does not include the plus sign ("+"),
which may:

  - cause the replacement to happen near the end of DNSKEY RDATA, which
    can cause the latter to become an invalid Base64 string,

  - prevent the replacement from being performed altogether.

Both cases prevent the "dlv" system test from behaving as intended and
may trigger false positives.  Add the missing character to the
aforementioned regex to ensure the replacement is always performed on
bytes 10-25 of DNSKEY RDATA.

(cherry picked from commit fd13fef2999767e71e4aa4847023efac20f3e789)

7 years agoMerge branch '925-make-delv-use-os-supplied-ephemeral-port-range-v9_14' into 'v9_14'
Michał Kępień [Fri, 8 Mar 2019 12:46:09 +0000 (07:46 -0500)] 
Merge branch '925-make-delv-use-os-supplied-ephemeral-port-range-v9_14' into 'v9_14'

[v9_14] Make delv use OS-supplied ephemeral port range

See merge request isc-projects/bind9!1645

7 years agoAdd CHANGES entry
Michał Kępień [Fri, 8 Mar 2019 12:13:32 +0000 (13:13 +0100)] 
Add CHANGES entry

5180. [bug] delv now honors the operating system's preferred
ephemeral port range. [GL #925]

(cherry picked from commit bf9832495682729b249c066081230ca9f599e0fa)

7 years agoMake delv use OS-supplied ephemeral port range
Michał Kępień [Fri, 8 Mar 2019 12:13:32 +0000 (13:13 +0100)] 
Make delv use OS-supplied ephemeral port range

Make delv honor the operating system's preferred ephemeral port range
instead of always using the default 1024-65535 range for outgoing
messages.

(cherry picked from commit ada6846a10277e30655b76bd33ff2e54a3736524)

7 years agoMerge branch 'u/fanf2/sectypes-v9_14' into 'v9_14'
Mark Andrews [Fri, 8 Mar 2019 11:38:51 +0000 (06:38 -0500)] 
Merge branch 'u/fanf2/sectypes-v9_14' into 'v9_14'

cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate

See merge request isc-projects/bind9!1643

7 years agocleanup: use dns_secalg_t and dns_dsdigest_t where appropriate
Tony Finch [Fri, 8 Feb 2019 17:54:56 +0000 (17:54 +0000)] 
cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate

Use them in structs for various rdata types where they are missing.
This doesn't change the structs since we are replacing explicit
uint8_t field types with aliases for uint8_t.

Use dns_dsdigest_t in library function arguments.

Improve dnssec-cds with these more specific types.

(cherry picked from commit 0f219714e1f19c4cb9434e0c52e9de873a97942b)

7 years agoMerge branch 'marka-define-path-max-v9_14' into 'v9_14'
Mark Andrews [Fri, 8 Mar 2019 07:45:39 +0000 (02:45 -0500)] 
Merge branch 'marka-define-path-max-v9_14' into 'v9_14'

#include <limits.h> for PATH_MAX, define if not found

See merge request isc-projects/bind9!1639

7 years ago#include <limits.h> for PATH_MAX, define if not found
Mark Andrews [Fri, 8 Mar 2019 06:15:01 +0000 (17:15 +1100)] 
#include <limits.h> for PATH_MAX, define if not found

(cherry picked from commit 1fc7be36ebd968f13f1d29c3c19cb847b9a0e268)

7 years agoMerge branch 'each-silence-warning-v9_14' into 'v9_14'
Evan Hunt [Fri, 8 Mar 2019 06:16:42 +0000 (01:16 -0500)] 
Merge branch 'each-silence-warning-v9_14' into 'v9_14'

silence a warning about potential snprintf overrun

See merge request isc-projects/bind9!1633

7 years agosilence a warning about potential snprintf overrun
Evan Hunt [Thu, 21 Feb 2019 19:21:36 +0000 (11:21 -0800)] 
silence a warning about potential snprintf overrun

(cherry picked from commit 7f26cad247ac186dc1de0ee37861a763877fe08d)

7 years agoMerge branch '902-hang-when-unexpected-errno-encountered-during-log-rename-v9_14...
Evan Hunt [Fri, 8 Mar 2019 05:44:04 +0000 (00:44 -0500)] 
Merge branch '902-hang-when-unexpected-errno-encountered-during-log-rename-v9_14' into 'v9_14'

Resolve "Hang when unexpected errno encountered during log rename"

See merge request isc-projects/bind9!1631

7 years agoHandle EDQUOT and ENOSPC errors
Mark Andrews [Tue, 26 Feb 2019 02:01:53 +0000 (13:01 +1100)] 
Handle EDQUOT and ENOSPC errors

(cherry picked from commit 435ae2f29a87034ddcaa6abb2dcca47e024aa62f)

7 years agoMerge branch '884-patches-to-review-3-v9_14' into 'v9_14'
Evan Hunt [Fri, 8 Mar 2019 04:39:30 +0000 (23:39 -0500)] 
Merge branch '884-patches-to-review-3-v9_14' into 'v9_14'

fix the use of dns_wildcardname as an optimisation in DLZ

See merge request isc-projects/bind9!1629

7 years agofix the use of dns_wildcardname as an optimisation in DLZ
Mark Andrews [Mon, 18 Feb 2019 01:57:35 +0000 (12:57 +1100)] 
fix the use of dns_wildcardname as an optimisation in DLZ

(cherry picked from commit cb32cd98bda3a7e57ad098eeda128c3a2ffcc95e)

7 years agoMerge branch 'ckb-statistics-test-nit-v9_14' into 'v9_14'
Evan Hunt [Fri, 8 Mar 2019 02:54:20 +0000 (21:54 -0500)] 
Merge branch 'ckb-statistics-test-nit-v9_14' into 'v9_14'

the wrong variable was used to count the test cases in one place.

See merge request isc-projects/bind9!1627

7 years agothe wrong variable was used to count the test cases in one place.
Curtis Blackburn [Fri, 8 Mar 2019 00:09:10 +0000 (16:09 -0800)] 
the wrong variable was used to count the test cases in one place.

(cherry picked from commit 4f60a84e34bf272b47082dc59c6dd5501e4e3498)

7 years agoMerge branch '927-teach-clang-that-_fail-does-not-return-v9_14' into 'v9_14'
Mark Andrews [Fri, 8 Mar 2019 01:26:08 +0000 (20:26 -0500)] 
Merge branch '927-teach-clang-that-_fail-does-not-return-v9_14' into 'v9_14'

Resolve "teach clang that _fail() does not return."

See merge request isc-projects/bind9!1626

7 years agoadd noreturn attribute
Mark Andrews [Thu, 7 Mar 2019 05:45:04 +0000 (16:45 +1100)] 
add noreturn attribute

(cherry picked from commit 3f2b7e100690e005710dd0389e9f8713f686646e)

7 years agoMerge branch '865-option-to-disable-information-leak-on-rpz-rewrites-isc-support...
Evan Hunt [Thu, 7 Mar 2019 21:41:31 +0000 (16:41 -0500)] 
Merge branch '865-option-to-disable-information-leak-on-rpz-rewrites-isc-support-14178-v9_14' into 'v9_14'

Resolve "Option to disable information leak on RPZ rewrites [ISC-support

See merge request isc-projects/bind9!1623

7 years agoCHANGES, release note
Mark Andrews [Mon, 18 Feb 2019 05:57:45 +0000 (16:57 +1100)] 
CHANGES, release note

(cherry picked from commit 89234643e1c4498c017680b830891855d2dbae06)

7 years agodisable a previously broken test under dnsrps
Evan Hunt [Thu, 7 Mar 2019 04:48:30 +0000 (20:48 -0800)] 
disable a previously broken test under dnsrps

(cherry picked from commit aeed04749593d6fb407eec9950e9ef72dc23befd)

7 years agoadd the ability to control whether SOA records are added response-policy modified...
Mark Andrews [Thu, 14 Feb 2019 06:50:10 +0000 (17:50 +1100)] 
add the ability to control whether SOA records are added response-policy modified answers

(cherry picked from commit d1fa8be611505755e389897f05659ab18d236e11)

7 years agoMerge branch 'each-notes-914' into 'v9_14'
Evan Hunt [Thu, 7 Mar 2019 19:34:27 +0000 (14:34 -0500)] 
Merge branch 'each-notes-914' into 'v9_14'

clear out 9.14.0 release notes

See merge request isc-projects/bind9!1622

7 years agoclear out release notes from 9.14.0 to prepare the ground for 9.14.1
Evan Hunt [Thu, 7 Mar 2019 19:11:15 +0000 (11:11 -0800)] 
clear out release notes from 9.14.0 to prepare the ground for 9.14.1

7 years agoMerge branch '882-zone-data-cannot-be-loaded-with-dnssec-coverage-v9_14' into 'v9_14'
Evan Hunt [Thu, 7 Mar 2019 04:58:34 +0000 (23:58 -0500)] 
Merge branch '882-zone-data-cannot-be-loaded-with-dnssec-coverage-v9_14' into 'v9_14'

Resolve "Zone data cannot be loaded with dnssec-coverage"

See merge request isc-projects/bind9!1619

7 years agoadd CHANGES
Evan Hunt [Wed, 6 Mar 2019 22:22:58 +0000 (14:22 -0800)] 
add CHANGES

(cherry picked from commit 57e44efc735832976363a8d5b01290c3da0a5ce7)

7 years agoexplicitly convert byte to string
Mark Andrews [Mon, 18 Feb 2019 05:36:59 +0000 (16:36 +1100)] 
explicitly convert byte to string

(cherry picked from commit ec3d830bc50e43858c7982df9b9db95aa8cffca0)

7 years agoMerge branch 'u/fanf2/man-dnssec-keygen-v9_14' into 'v9_14'
Mark Andrews [Thu, 7 Mar 2019 00:15:23 +0000 (19:15 -0500)] 
Merge branch 'u/fanf2/man-dnssec-keygen-v9_14' into 'v9_14'

cleanup dnssec-keygen manual page

See merge request isc-projects/bind9!1616

7 years agocleanup dnssec-keygen manual page
Tony Finch [Thu, 21 Feb 2019 18:54:16 +0000 (18:54 +0000)] 
cleanup dnssec-keygen manual page

Alphabetize options and synopsis; remove spurious -z from synopsis;
remove remnants of deprecated -k option; remove mention of long-gone
TSIG support; refer to -T KEY in options that are only relevant to
pre-RFC3755 DNSSEC; remove unnecessary -n ZONE from the example, and
add a -f KSK example.

(cherry picked from commit 1954f8d2bf92ab19efa20eed12ba986ae2988222)

7 years agoMerge branch '926-statschannel-system-tests-fails-json-only-no-libxml-v9_14' into...
Mark Andrews [Thu, 7 Mar 2019 00:02:59 +0000 (19:02 -0500)] 
Merge branch '926-statschannel-system-tests-fails-json-only-no-libxml-v9_14' into 'v9_14'

Resolve "statschannel system tests fails json only (no libxml)"

See merge request isc-projects/bind9!1615

7 years agoadd CHANGES
Mark Andrews [Wed, 6 Mar 2019 23:25:15 +0000 (10:25 +1100)] 
add CHANGES

(cherry picked from commit 5bc06a0a11ebe0264679fa81b5543192dd0a17a6)

7 years agoremove dependancy on libxml
Mark Andrews [Wed, 6 Mar 2019 23:09:33 +0000 (10:09 +1100)] 
remove dependancy on libxml

(cherry picked from commit a9c47414b356742e3d7a758f18e90fee1a2c95fc)

7 years agoMerge branch '874-fix-race-in-socket-code-v9_14' into 'v9_14'
Evan Hunt [Wed, 6 Mar 2019 22:33:11 +0000 (17:33 -0500)] 
Merge branch '874-fix-race-in-socket-code-v9_14' into 'v9_14'

Fix a race in socket code

See merge request isc-projects/bind9!1613

7 years agoCHANGES
Evan Hunt [Wed, 6 Mar 2019 01:55:57 +0000 (17:55 -0800)] 
CHANGES

(cherry picked from commit 6d24292830ea7e4746a6ff5e6ded93144402c19e)

7 years agoFix a race in socket code when internal_{accept, send, receive} is called
Witold Kręcicki [Fri, 15 Feb 2019 10:28:58 +0000 (11:28 +0100)] 
Fix a race in socket code when internal_{accept, send, receive} is called
from event loop on an socket and, in the meantime, someone has closed this
socket.

(cherry picked from commit b57a38ae433d2bc7bc8c1de70c7d5c47eaa76ccb)

7 years agoMerge branch 'michal/log-plugin-unloading-at-debug-level-v9_14' into 'v9_14'
Evan Hunt [Wed, 6 Mar 2019 21:07:57 +0000 (16:07 -0500)] 
Merge branch 'michal/log-plugin-unloading-at-debug-level-v9_14' into 'v9_14'

Log plugin unloading at debug level

See merge request isc-projects/bind9!1612

7 years agoLog plugin unloading at debug level
Michał Kępień [Wed, 6 Mar 2019 07:31:07 +0000 (08:31 +0100)] 
Log plugin unloading at debug level

During server reconfiguration, plugin instances set up for the old views
are unloaded very close to the end of the whole process, after new
plugin instances are set up.  As the log message announcing plugin
unloading is emitted at the default "info" level, the user might be
misled into thinking that it is the new plugin instances that are being
unloaded for some reason, particularly because all other messages logged
at the "info" level around the same time inform about setting things up
rather than tearing them down.  Since no distinction is currently made
between destroying a view due to reconfiguration and due to a shutdown
in progress, there is no easy way to vary the contents of the log
message depending on circumstances.  Since this message is not a
particularly critical one, demote it to debug level to prevent
confusion.

(cherry picked from commit af4b81f94434b7680250553bfa444c6983628cdb)

7 years agoMerge branch '905-make-nsupdate-use-os-supplied-ephemeral-port-range-v9_14' into...
Michał Kępień [Wed, 6 Mar 2019 13:27:40 +0000 (08:27 -0500)] 
Merge branch '905-make-nsupdate-use-os-supplied-ephemeral-port-range-v9_14' into 'v9_14'

[v9_14] Make nsupdate use OS-supplied ephemeral port range

See merge request isc-projects/bind9!1609

7 years agoAdd CHANGES entry
Michał Kępień [Wed, 6 Mar 2019 13:01:24 +0000 (14:01 +0100)] 
Add CHANGES entry

5172. [bug] nsupdate now honors the operating system's preferred
ephemeral port range. [GL #905]

(cherry picked from commit 0e64948274920d83de3d3116bffa8ac5e346929e)

7 years agoMake nsupdate use OS-supplied ephemeral port range
Michał Kępień [Wed, 6 Mar 2019 13:01:24 +0000 (14:01 +0100)] 
Make nsupdate use OS-supplied ephemeral port range

Make nsupdate honor the operating system's preferred ephemeral port
range instead of always using the default 1024-65535 range for outgoing
messages.

(cherry picked from commit 06f582f23e7e3204a110d9b5a619c4d9ce451f07)

7 years agoMerge branch '878-install-named-plugins-into-a-separate-directory-v9_14' into 'v9_14'
Evan Hunt [Wed, 6 Mar 2019 01:04:27 +0000 (20:04 -0500)] 
Merge branch '878-install-named-plugins-into-a-separate-directory-v9_14' into 'v9_14'

Install named plugins into a separate directory

See merge request isc-projects/bind9!1605

7 years agoAdd CHANGES entry
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Add CHANGES entry

5161. [func] named plugins are now installed into a separate
directory.  Supplying a filename (a string without path
separators) in a "plugin" configuration stanza now
causes named to look for that plugin in that directory.
[GL #878]

(cherry picked from commit d2c960cfc2e4d32d23aee3d57a29587f3f56bd9e)

7 years agoAdd -c to usage message for named-checkconf
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Add -c to usage message for named-checkconf

Add the -c command line option to the usage message for named-checkconf
as it is not present there despite being documented.

(cherry picked from commit cba155154bebb8440de6f3dc3ca8e7031a82d5db)

7 years agoLook for named plugins in ${libdir}/named
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Look for named plugins in ${libdir}/named

When the "library" part of a "plugin" configuration stanza does not
contain at least one path separator, treat it as a filename and assume
it is a name of a shared object present in the named plugin installation
directory.  Absolute and relative paths can still be used and will be
used verbatim.  Get the full path to a plugin before attempting to
check/register it so that all relevant log messages include the same
plugin path (apart from the one logged when the full path cannot be
determined).

(cherry picked from commit 1a9fc624ca4cfc1279e6df6d39f74603de7f374a)

7 years agoAdd ns_plugin_expandpath()
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Add ns_plugin_expandpath()

Implement a helper function which, given an input string:

  - copies it verbatim if it contains at least one path separator,
  - prepends the named plugin installation directory to it otherwise.

This function will allow configuration parsing code to conveniently
determine the full path to a plugin module given either a path or a
filename.

While other, simpler ways exist for making sure filenames passed to
dlopen() cause the latter to look for shared objects in a specific
directory, they are very platform-specific.  Using full paths is thus
likely the most portable and reliable solution.

Also added unit tests for ns_plugin_expandpath() to ensure it behaves
as expected for absolute paths, relative paths, and filenames, for
various target buffer sizes.

(Note: plugins share a directory with named on Windows; there is no
default plugin path. Therefore the source path is copied to the
destination path with no modification.)

(cherry picked from commit d181c28c60d245219d5418c5485042500c5432d4)

7 years agoInstall named plugins into a separate directory
Michał Kępień [Tue, 12 Feb 2019 14:59:54 +0000 (15:59 +0100)] 
Install named plugins into a separate directory

Installing named plugins into ${libdir} clutters the latter and is not
in line with common filesystem conventions.  Instead, install named
plugins into a separate directory, ${libdir}/named.

(cherry picked from commit c527b7fd5c583ace1921117fc1580fe1bbde8e02)

7 years agoMerge branch '909-add-explicit-link-check-for-libatomic-v9_14' into 'v9_14'
Evan Hunt [Tue, 5 Mar 2019 23:41:55 +0000 (18:41 -0500)] 
Merge branch '909-add-explicit-link-check-for-libatomic-v9_14' into 'v9_14'

Add explicit check for libatomic to fix configure step on NetBSD

See merge request isc-projects/bind9!1604

7 years agoAdd information about NetBSD 6 compilation on i386
Ondřej Surý [Fri, 1 Mar 2019 14:19:22 +0000 (15:19 +0100)] 
Add information about NetBSD 6 compilation on i386

(cherry picked from commit 9a16e0a5ae88455a9b9ecc24e8308277798f4c8a)

7 years agoAdd explicit check for libatomic
Ondřej Surý [Fri, 1 Mar 2019 09:10:17 +0000 (10:10 +0100)] 
Add explicit check for libatomic

(cherry picked from commit fcade0610fbfc888b324e46cb869cb3c9942c67a)

7 years agoMerge branch '919-add-win32util-configure-file-list-check-to-ci-v9_14' into 'v9_14'
Mark Andrews [Tue, 5 Mar 2019 22:41:46 +0000 (17:41 -0500)] 
Merge branch '919-add-win32util-configure-file-list-check-to-ci-v9_14' into 'v9_14'

Resolve "Add win32util/Configure file list check to CI"

See merge request isc-projects/bind9!1602

7 years agoremove '..\\bin\\tests\\system\\dlz\\prereq.sh' from win32util/Configure
Mark Andrews [Tue, 5 Mar 2019 03:09:49 +0000 (14:09 +1100)] 
remove '..\\bin\\tests\\system\\dlz\\prereq.sh' from win32util/Configure

(cherry picked from commit 442421906b9e33ab4373d61d53dc167856876d51)

7 years agoadd util/check-win32util-configure to precheck
Mark Andrews [Tue, 5 Mar 2019 02:46:29 +0000 (13:46 +1100)] 
add util/check-win32util-configure to precheck

(cherry picked from commit c3dd8bb9f0bd21410b8bb15b4a92da0636cc4d47)

7 years agoMerge branch '884-patches-to-review-4-v9_14' into 'v9_14'
Evan Hunt [Tue, 5 Mar 2019 22:40:01 +0000 (17:40 -0500)] 
Merge branch '884-patches-to-review-4-v9_14' into 'v9_14'

dlz filesystem driver failed to properly detect period at end of filename.

See merge request isc-projects/bind9!1600

7 years agoproperly detect period as last character in filename
Mark Andrews [Mon, 18 Feb 2019 01:40:11 +0000 (12:40 +1100)] 
properly detect period as last character in filename

(cherry picked from commit c9dc59eb90144b9935a143353eb38d8eef937cc1)

7 years agoMerge branch 'michal/disable-servfail-cache-for-ns5-in-the-mkeys-system-test-v9_14...
Evan Hunt [Tue, 5 Mar 2019 21:40:49 +0000 (16:40 -0500)] 
Merge branch 'michal/disable-servfail-cache-for-ns5-in-the-mkeys-system-test-v9_14' into 'v9_14'

Disable SERVFAIL cache for ns5 in the "mkeys" system test

See merge request isc-projects/bind9!1598

7 years agoDisable SERVFAIL cache for ns5 in the "mkeys" system test
Michał Kępień [Fri, 1 Mar 2019 06:57:45 +0000 (07:57 +0100)] 
Disable SERVFAIL cache for ns5 in the "mkeys" system test

The "check key refreshes are resumed after root servers become
available" check may trigger a false positive for the "mkeys" system
test if the second example/TXT query sent by dig is received by ns5 less
than a second after it receives a REFUSED response to the upstream query
it sends to ns1 in order to resolve the first example/TXT query sent by
dig.  Since that REFUSED response from ns1 causes ns5 to return a
SERVFAIL answer to dig, example/TXT is added to the SERVFAIL cache,
which is enabled by default with a TTL of 1 second.  This in turn may
cause ns5 to return a cached SERVFAIL response to the second example/TXT
query sent by dig, i.e. make ns5 not perform full query processing as
expected by the check.

Since the primary purpose of the check in question is to ensure that key
refreshes are resumed once initially unavailable root servers become
available, the optimal solution appears to be disabling SERVFAIL cache
for ns5 as doing that still allows the check to fulfill its purpose and
it is arguably more prudent than always sleeping for 1 second.

(cherry picked from commit 7c6bff3c4e5e3f1b66ed301d28d6a3b5d81169f7)

7 years agoMerge branch '889-improve-clang-cmocka-interaction-v9_14' into 'v9_14'
Evan Hunt [Tue, 5 Mar 2019 19:01:37 +0000 (14:01 -0500)] 
Merge branch '889-improve-clang-cmocka-interaction-v9_14' into 'v9_14'

Resolve "Improve clang/cmocka interaction."

See merge request isc-projects/bind9!1596

7 years agoimprove clang / cmocka integration
Mark Andrews [Wed, 20 Feb 2019 00:13:17 +0000 (11:13 +1100)] 
improve clang / cmocka integration

(cherry picked from commit cb913177ae744c729717aa29ae54aa8656c9737e)

7 years agoMerge branch 'matthijs-more-clean.sh-related-cleanups-v9_14' into 'v9_14'
Matthijs Mekking [Mon, 4 Mar 2019 16:30:16 +0000 (11:30 -0500)] 
Merge branch 'matthijs-more-clean.sh-related-cleanups-v9_14' into 'v9_14'

More clean.sh related cleanups

See merge request isc-projects/bind9!1592

7 years agoEnsure all system tests run clean.sh from setup.sh
Matthijs Mekking [Wed, 27 Feb 2019 15:24:03 +0000 (16:24 +0100)] 
Ensure all system tests run clean.sh from setup.sh

For consistency between all system tests, add missing setup.sh scripts
for tests which do not have one yet and ensure every setup.sh script
calls its respective clean.sh script.

7 years agoOnly perform test cleanups in clean.sh scripts
Matthijs Mekking [Wed, 27 Feb 2019 14:21:04 +0000 (15:21 +0100)] 
Only perform test cleanups in clean.sh scripts

Temporary files created by a given system test should be removed by its
clean.sh script, not its setup.sh script.  Remove redundant "rm"
invocations from setup.sh scripts.  Move required "rm" invocations from
setup.sh scripts to their corresponding clean.sh scripts.

7 years agoMerge branch 'feature/featuretest-dlz-v9_14' into 'v9_14'
Mark Andrews [Mon, 4 Mar 2019 03:26:30 +0000 (22:26 -0500)] 
Merge branch 'feature/featuretest-dlz-v9_14' into 'v9_14'

Test dlz support in feature-test

See merge request isc-projects/bind9!1588

7 years agoadd CHANGES
Mark Andrews [Mon, 4 Mar 2019 03:03:23 +0000 (14:03 +1100)] 
add CHANGES

(cherry picked from commit 5f125df4628a032a1cb2e369ec26ef2171245eb1)

7 years agorun autoheader and autoconf
Mark Andrews [Sun, 3 Mar 2019 22:37:42 +0000 (09:37 +1100)] 
run autoheader and autoconf

(cherry picked from commit 4988367b534a75dfdcadd2785bd90567f4421417)

7 years agoSupport DLZ filesystem detection in feature-test
Petr Menšík [Wed, 30 Jan 2019 14:12:54 +0000 (15:12 +0100)] 
Support DLZ filesystem detection in feature-test

Do not use variable from configure to detect the feature.

(cherry picked from commit 759a7b4ce31040f3cceec0d219e379dd1b1dfea9)

7 years agoMerge branch 'michal/fix-ip-regex-used-in-the-resolver-system-test-v9_14' into 'v9_14'
Michał Kępień [Fri, 1 Mar 2019 06:55:45 +0000 (01:55 -0500)] 
Merge branch 'michal/fix-ip-regex-used-in-the-resolver-system-test-v9_14' into 'v9_14'

[v9_14] Fix IP regex used in the "resolver" system test

See merge request isc-projects/bind9!1583

7 years agoFix IP regex used in the "resolver" system test
Michał Kępień [Tue, 26 Feb 2019 11:33:19 +0000 (12:33 +0100)] 
Fix IP regex used in the "resolver" system test

If dots are not escaped in the "1.2.3.4" regular expressions used for
checking whether IP address 1.2.3.4 is present in the tested resolver's
answers, a COOKIE that matches such a regular expression will trigger a
false positive for the "resolver" system test.  Properly escape dots in
the aforementioned regular expressions to prevent that from happening.

(cherry picked from commit 70ae48e5cb56c7df23647bc511951d758e57ec88)

7 years agoMerge branch '901-empty-any-v9_14' into 'v9_14'
Evan Hunt [Fri, 1 Mar 2019 00:24:52 +0000 (19:24 -0500)] 
Merge branch '901-empty-any-v9_14' into 'v9_14'

handle empty ANY query responses

See merge request isc-projects/bind9!1581

7 years agoCHANGES
Evan Hunt [Thu, 28 Feb 2019 22:06:23 +0000 (14:06 -0800)] 
CHANGES

7 years agotest correct occlusion of DNSSEC records
Evan Hunt [Thu, 28 Feb 2019 22:28:26 +0000 (14:28 -0800)] 
test correct occlusion of DNSSEC records

(cherry picked from commit c6939f0bd469120de53d4a7d8b6ba1cfd960a86b)

7 years agofix crash in query_respond_any() from all records being hidden
Evan Hunt [Mon, 25 Feb 2019 20:55:27 +0000 (12:55 -0800)] 
fix crash in query_respond_any() from all records being hidden

in query_respond_any(), the assumption had previously been made that it
was impossible to get past iterating the node with a return value of
ISC_R_NOMORE but not have found any records, unless we were searching
for RRSIG or SIG. however, it is possible for other types to exist but
be hidden, such as when the zone is transitioning from insecure to
secure and DNSSEC types are encountered, and this situation could
trigger an assertion.  removed the assertion and reorganized the code.

(cherry picked from commit 3e74c7e5ffc455051549b1199328c76ddc5c72cc)

7 years agoMerge branch 'michal/do-not-include-conf.sh-from-ttl-clean.sh-v9_14' into 'v9_14'
Michał Kępień [Thu, 28 Feb 2019 12:42:46 +0000 (07:42 -0500)] 
Merge branch 'michal/do-not-include-conf.sh-from-ttl-clean.sh-v9_14' into 'v9_14'

[v9_14] Do not include conf.sh from ttl/clean.sh

See merge request isc-projects/bind9!1578

7 years agoDo not include conf.sh from ttl/clean.sh
Michał Kępień [Thu, 28 Feb 2019 12:15:13 +0000 (13:15 +0100)] 
Do not include conf.sh from ttl/clean.sh

Including $SYSTEMTESTTOP/conf.sh from a system test's clean.sh script is
not needed for anything while it causes an error message to be printed
out when "./configure" is run, as "make clean" is invoked at the end.
Remove the offending line to prevent the error from occurring.

(cherry picked from commit 6602848460f6815434acbdee6a2c569079ddf0ad)

7 years agoMerge branch 'michal/call-clean.sh-from-all-relevant-setup.sh-scripts-v9_14' into...
Michał Kępień [Thu, 28 Feb 2019 12:11:02 +0000 (07:11 -0500)] 
Merge branch 'michal/call-clean.sh-from-all-relevant-setup.sh-scripts-v9_14' into 'v9_14'

[v9_14] Call clean.sh from all relevant setup.sh scripts

See merge request isc-projects/bind9!1576

7 years agoCall clean.sh from all relevant setup.sh scripts
Michał Kępień [Thu, 28 Feb 2019 11:33:07 +0000 (12:33 +0100)] 
Call clean.sh from all relevant setup.sh scripts

For all system tests utilizing named instances, call clean.sh from each
test's setup.sh script in a consistent way to make sure running the same
system test multiple times using run.sh does not trigger false positives
caused by stale files created by previous runs.

Ideally we would just call clean.sh from run.sh, but that would break
some quirky system tests like "rpz" or "rpzrecurse" and being consistent
for the time being does not hurt.

(cherry picked from commit a077a3ae8a5013e089bb4e6f9ab8137c5b708dce)

7 years agoMerge branch 'prep-release' into v9_14 v9.14.0rc1
Tinderbox User [Thu, 28 Feb 2019 00:05:32 +0000 (00:05 +0000)] 
Merge branch 'prep-release' into v9_14

7 years agodoc rebuild
Tinderbox User [Thu, 28 Feb 2019 00:05:06 +0000 (00:05 +0000)] 
doc rebuild

7 years agoprep 9.14.0rc1
Tinderbox User [Wed, 27 Feb 2019 23:50:01 +0000 (23:50 +0000)] 
prep 9.14.0rc1

7 years agoMerge branch 'prep-914' into 'v9_14'
Evan Hunt [Wed, 27 Feb 2019 23:33:05 +0000 (18:33 -0500)] 
Merge branch 'prep-914' into 'v9_14'

documentation changes establishing the 9.14 stable branch

See merge request isc-projects/bind9!1559

7 years agodocumentation changes establishing the 9.14 stable branch
Evan Hunt [Thu, 21 Feb 2019 23:33:29 +0000 (15:33 -0800)] 
documentation changes establishing the 9.14 stable branch

7 years agoMerge branch '813-matthijs-failure-loading-rpz-v9_14' into 'v9_14'
Matthijs Mekking [Fri, 22 Feb 2019 15:05:07 +0000 (10:05 -0500)] 
Merge branch '813-matthijs-failure-loading-rpz-v9_14' into 'v9_14'

Resolve "Problems after failure of loading rpz [ISC-support #14002]"

See merge request isc-projects/bind9!1562

7 years agoUpdate CHANGES
Matthijs Mekking [Mon, 11 Feb 2019 16:30:04 +0000 (17:30 +0100)] 
Update CHANGES

7 years agoUnregister RPZ CATZ db cbs when zone load fails
Matthijs Mekking [Mon, 11 Feb 2019 16:25:34 +0000 (17:25 +0100)] 
Unregister RPZ CATZ db cbs when zone load fails

In case when a zone fails to load because the file does not exist
or is malformed, we should not run the callback that updates the
zone database when the load is done.  This is achieved by
unregistering the callbacks if at zone load end if the result
indicates something else than success.

7 years agoUpdate copyrights
Matthijs Mekking [Mon, 11 Feb 2019 09:55:50 +0000 (10:55 +0100)] 
Update copyrights

7 years agoAdd test for rpz zone load fail
Matthijs Mekking [Fri, 8 Feb 2019 16:13:52 +0000 (17:13 +0100)] 
Add test for rpz zone load fail

7 years agoRemove rpz->db_registered
Matthijs Mekking [Fri, 8 Feb 2019 15:20:47 +0000 (16:20 +0100)] 
Remove rpz->db_registered

As pointed out in !813 db_registered is sort of redundant.  It is
set to `true` only in `dns_zone_rpz_enable_db()` right before the
`dns_rpz_dbupdate_callback()` callback is registered.  It is only
required in that callback and it is the only place that the callback
is registered.  Therefore there is no path that that `REQUIRE` can
fail.

The `db_registered` variable is only set to `false` in
`dns_rpz_new_zone`, so it is not like the variable is unset again
later.

The only other place where `db_registered` is checked is in
`rpz_detach()`.  If `true`, it will call
`dns_db_updatenotify_unregister()`.  However if that happens, the
`db_registered` is not set back to `false` thus this implies that
this may happen multiple times.  If called a second time, most
likely the unregister function will return `ISC_R_NOTFOUND`, but
the return value is not checked anyway.  So it can do without the
`db_registered` check.

7 years agoAdd curly brackets on if statements
Matthijs Mekking [Fri, 8 Feb 2019 14:28:49 +0000 (15:28 +0100)] 
Add curly brackets on if statements

7 years agonamed crashes on shutdown after load rpz failed
Matthijs Mekking [Thu, 7 Feb 2019 14:25:28 +0000 (15:25 +0100)] 
named crashes on shutdown after load rpz failed

This may happen when loading an RPZ failed and the code path skips
calling dns_db_endload().  The dns_rpz_zone_t object is still kept
marked as having registered db.  So when this object is finally
destroyed in rpz_detach(), this code will incorrectly call
`dns_db_updatenotify_unregister()`:

   if (rpz->db_registered)
     dns_db_updatenotify_unregister(rpz->db,
                                    dns_rpz_dbupdate_callback, rpz);

and trigger this assertion failure:

   REQUIRE(db != NULL);

To fix this, only call `dns_db_updatenotify_unregister()` when
`rpz->db` is not NULL.

7 years agoMake RPZ tests more readable
Matthijs Mekking [Wed, 6 Feb 2019 14:40:06 +0000 (15:40 +0100)] 
Make RPZ tests more readable

7 years agoAdd README to RPZ tests
Matthijs Mekking [Wed, 6 Feb 2019 14:36:21 +0000 (15:36 +0100)] 
Add README to RPZ tests

7 years agoMerge branch 'prep-release' into security-v9_14 v9.13.7
Tinderbox User [Thu, 21 Feb 2019 02:11:26 +0000 (02:11 +0000)] 
Merge branch 'prep-release' into security-v9_14

7 years agodoc rebuild
Tinderbox User [Thu, 21 Feb 2019 02:11:15 +0000 (02:11 +0000)] 
doc rebuild

7 years agoprep 9.13.7
Tinderbox User [Thu, 21 Feb 2019 01:57:08 +0000 (01:57 +0000)] 
prep 9.13.7

7 years agoMerge branch 'security-dlz-axfr-deny-broken' into security-master
Evan Hunt [Wed, 6 Feb 2019 19:36:54 +0000 (11:36 -0800)] 
Merge branch 'security-dlz-axfr-deny-broken' into security-master

denied axfr requests were not effective for writable DLZ zones

See merge request isc-private/bind9!57

7 years agoadd CHANGES and release notes entries
Mark Andrews [Wed, 6 Feb 2019 19:36:20 +0000 (11:36 -0800)] 
add CHANGES and release notes entries

7 years agodenied axfr requests were not effective for writable DLZ zones
Mark Andrews [Wed, 6 Feb 2019 19:35:21 +0000 (11:35 -0800)] 
denied axfr requests were not effective for writable DLZ zones

7 years agoMerge 'keytag-memleak' into security-master
Evan Hunt [Wed, 6 Feb 2019 19:32:47 +0000 (11:32 -0800)] 
Merge 'keytag-memleak' into security-master

7 years agofix test error
Evan Hunt [Thu, 3 Jan 2019 00:47:06 +0000 (16:47 -0800)] 
fix test error

7 years agoadd CHANGES and release note entries
Mark Andrews [Sun, 9 Dec 2018 22:13:05 +0000 (09:13 +1100)] 
add CHANGES and release note entries