Commit Graph

26873 Commits

Author SHA1 Message Date
Mark Andrews
3d40bc4e1a test mdig '+ednsopt=:' handling
(cherry picked from commit 2e688488f7)
2018-08-02 09:42:13 +10:00
Mark Andrews
3f7a651d3a fix handling of '+ednsopt=:'; support 100 ednsopts per query rather than 100 total
(cherry picked from commit d2943440a0)
2018-08-02 09:42:09 +10:00
Mark Andrews
8e3c67b345 Merge branch '372-smimea-and-tlsa-methods-incorrectly-use-txt-type-v9_12' into 'v9_12'
Resolve "smimea and tlsa methods incorrectly use txt type"

See merge request isc-projects/bind9!574
2018-08-01 19:01:28 -04:00
Mark Andrews
06bfd671b5 use tlsa and smime structs to set common values
(cherry picked from commit 63c9ec367f)
2018-08-02 08:52:17 +10:00
Ondřej Surý
40027d3035 Merge branch '443-isc_buffer_printf-fixes-v9_12' into 'v9_12'
Resolve "isc_buffer_printf() grows buffer without autorealloc being set + nit in isc_buffer_realloc()"

See merge request isc-projects/bind9!569
2018-08-01 02:51:10 -04:00
Ondřej Surý
38a6d1d44d Change isc_buffer_reallocate() into a static functions as it is not used outside of isc_buffer_reserve()
(cherry picked from commit 20faf4652a)
2018-08-01 08:41:25 +02:00
Ondřej Surý
56117f9799 Remove illogical condition from isc_buffer_reallocate that would return ISC_R_NOSPACE when requested size is less than available size
(cherry picked from commit 7785f644c3)
2018-08-01 08:41:25 +02:00
Ondřej Surý
7d2c0859d5 Forbid isc_buffer_printf from growing the buffer unless auto reallocation is enabled
(cherry picked from commit 519bfe4c97)
2018-08-01 08:41:25 +02:00
Mark Andrews
0cdac350e0 Merge branch 'modified-manual-install-oot-v9_12' into 'v9_12'
Use make automatic variables to install correct manual version.

See merge request isc-projects/bind9!567
2018-08-01 02:29:56 -04:00
Petr Menšík
85deed805b Use make automatic variables to install updated manuals
Make will choose modified manual from build directory or original from source
directory automagically. Take advantage of install tool feature.
Install all files in single command instead of iterating on each of them.

(cherry picked from commit 88f913ac81)
2018-08-01 16:22:01 +10:00
Mark Andrews
fada7a9583 Merge branch 'misc-onerror-refcount-fixes-v9_12' into 'v9_12'
refcount errors on error paths

See merge request isc-projects/bind9!564
2018-07-31 16:18:02 -04:00
Mark Andrews
a43f28064b add CHANGES
(cherry picked from commit 63aaff50df)
2018-07-31 18:42:39 +10:00
Mark Andrews
3a06cea708 refcount errors on error paths
(cherry picked from commit 4093efc900)
2018-07-31 18:42:38 +10:00
Evan Hunt
7d0050f4f3 Merge branch '441-ns_server_servestale-can-leave-the-server-in-exclusive-mode-on-error-v9_12' into 'v9_12'
Resolve "ns_server_servestale can leave the server in exclusive mode on error."

See merge request isc-projects/bind9!558
2018-07-27 02:10:00 -04:00
Mark Andrews
ab5c03c507 named_server_servestale could leave the server in exclusive mode if a error occurs.
(cherry picked from commit c8b07932e4)
2018-07-26 22:58:03 -07:00
Michał Kępień
a9de81dc1e Merge branch '423-fix-handling-of-tat-sending-failures-v9_12' into 'v9_12'
[v9_12] Fix handling of TAT sending failures

See merge request isc-projects/bind9!541
2018-07-19 12:15:22 -04:00
Michał Kępień
f4b403e8b2 Fix handling of TAT sending failures
dns_view_zonecut() may associate the dns_rdataset_t structure passed to
it even if it returns a result different then ISC_R_SUCCESS.  Not
handling this properly may cause a reference leak.  Fix by ensuring
'nameservers' is cleaned up in all relevant failure modes.

(cherry picked from commit 8666f8d28f)
2018-07-19 18:04:01 +02:00
Michał Kępień
78965b3dcc Merge branch '419-do-not-replace-lo0-address-on-solaris-v9_12' into 'v9_12'
[v9_12] Do not replace lo0 address on Solaris

See merge request isc-projects/bind9!537
2018-07-17 02:28:37 -04:00
Michał Kępień
f8ff854888 Do not replace lo0 address on Solaris
lo0 and lo0:0 are the same interface on Solaris.  Make sure
bin/tests/system/ifconfig.sh does not touch lo0:0 in order to prevent it
from changing the address of the loopback interface on Solaris.

(cherry picked from commit 618921902a)
2018-07-17 08:19:58 +02:00
Michał Kępień
e050792f13 Merge branch '365-add-centos-to-ci-v9_12' into 'v9_12'
[v9_12] Add CentOS/RHEL 6 to GitLab CI

See merge request isc-projects/bind9!532
2018-07-13 06:25:52 -04:00
Michał Kępień
de00137f42 Add CentOS 6/7 to CI
Modify .gitlab-ci.yml so that every CI pipeline also builds and tests
BIND on CentOS versions 6 and 7.  Use --disable-warn-error on CentOS 6
since it uses GCC 4.4.7 which suffers from bugs causing bogus warnings
to be generated, e.g.:

    sigs_test.c: In function 'compare_tuples':
    sigs_test.c:75: warning: declaration of 'index' shadows a global declaration
    /usr/include/string.h:489: warning: shadowed declaration is here
    sigs_test.c: In function 'updatesigs_test':
    sigs_test.c:193: warning: declaration of 'index' shadows a global declaration
    /usr/include/string.h:489: warning: shadowed declaration is here

(cherry picked from commit f0966d1485)
2018-07-13 12:14:46 +02:00
Michał Kępień
e56a528c70 Do not spam console if "git status --ignored" fails during tests
The "git status" command in Git versions before 1.7.2 does not support
the "--ignored" option.  Prevent spamming the console when running
system tests from a Git repository on a host with an ancient Git version
installed.

(cherry picked from commit 2be97feb46)
2018-07-13 12:14:46 +02:00
Michał Kępień
106b56d7c9 Remove IDN subtest from the "digdelv" system test
The output of certain "dig +idnout" invocations may be locale-dependent.
Remove the "dig +idnout" subtest from the "digdelv" system test as IDN
support is already thoroughly tested by the "idna" system test.

(cherry picked from commit fd30a03f2b)
2018-07-13 12:14:46 +02:00
Michał Kępień
7fe0f00a3b Improve error handling in idn_ace_to_locale()
While idn2_to_unicode_8zlz() takes a 'flags' argument, it is ignored and
thus cannot be used to perform IDN checks on the output string.

The bug in libidn2 versions before 2.0.5 was not that a call to
idn2_to_unicode_8zlz() with certain flags set did not cause IDN checks
to be performed.  The bug was that idn2_to_unicode_8zlz() did not check
whether a conversion can be performed between UTF-8 and the current
locale's character encoding.  In other words, with libidn2 version
2.0.5+, if the current locale's character encoding is ASCII, then
idn2_to_unicode_8zlz() will fail when it is passed any Punycode string
which decodes to a non-ASCII string, even if it is a valid IDNA2008
name.

Rework idn_ace_to_locale() so that invalid IDNA2008 names are properly
and consistently detected for all libidn2 versions and locales.

Update the "idna" system test accordingly.  Add checks for processing a
server response containing Punycode which decodes to an invalid IDNA2008
name.  Fix invalid subtest description.

(cherry picked from commit b896fc4972)
2018-07-13 12:14:14 +02:00
Michał Kępień
4c7eea4437 Include conf.sh from all prereq.sh scripts
Every prereq.sh script must include bin/tests/system/conf.sh, otherwise
if some prerequisite is not met, errors about echo_i not being found
will be printed instead of actual error messages.

(cherry picked from commit cc0e8cda71)
2018-07-13 08:23:15 +02:00
Michał Kępień
0561d6bb0c Update ATF path in the ./configure invocation used during CI
The Docker images used for CI install ATF to /usr, not /usr/local.
Update the ./configure invocation in .gitlab-ci.yml accordingly in order
to prevent confusion.

(cherry picked from commit 12df6829d1)
2018-07-13 08:23:09 +02:00
Michał Kępień
82b03e949f Add "-f" to command line arguments for autoreconf in autogen.sh
Depending on tool versions being used, "autoreconf -i" may not update
all Autoconf-generated files, which in turn may result in build errors.
Make autogen.sh call autoreconf with the "-f" command line argument to
ensure all Autoconf-generated files are updated when autogen.sh is run.

(cherry picked from commit 45e77a3680)
2018-07-13 08:23:03 +02:00
Ondřej Surý
12772c743e Merge branch 'fix-last-USE_ENGINE-usage-v9_12' into 'v9_12'
Replace the last missed usage of USE_ENGINE with OPENSSL_NO_ENGINE

See merge request isc-projects/bind9!529
2018-07-12 06:45:29 -04:00
Ondřej Surý
0b93c77024 Replace the last missed usage of USE_ENGINE with OPENSSL_NO_ENGINE 2018-07-12 06:33:54 -04:00
Mark Andrews
bac8cab38d Merge branch '373-generic_tostruct_tlsa-incorrectly-initialises-common-structure-v9_12' into 'v9_12'
Resolve "generic_tostruct_tlsa incorrectly initialises common structure."

See merge request isc-projects/bind9!525
2018-07-11 19:54:43 -04:00
Mark Andrews
26a2ab4152 remove re-initalisation of common structure
(cherry picked from commit 6e06d3e7c6)
2018-07-12 09:48:03 +10:00
Evan Hunt
c677a1a987 Merge branch '403-missing-sanity-check-for-call-to-next_token-in-file-dig-c-v9_12' into 'v9_12'
Resolve "Missing Sanity Check for call to next_token() in file 'dig.c'"

See merge request isc-projects/bind9!523
2018-07-11 15:06:26 -04:00
Evan Hunt
6fc6b3ab69 CHANGES
(cherry picked from commit 8ae1774089)
2018-07-11 11:58:52 -07:00
Mark Andrews
9f126bac32 add test for bad dig option '+ednsopt=:' being handled gracefully
(cherry picked from commit ad86878d61)
2018-07-11 11:58:52 -07:00
Bill Parker
62d047658a check code is non NULL
(cherry picked from commit 408bcf9c07)
2018-07-11 11:58:49 -07:00
Evan Hunt
f6fce682c9 Merge branch '235-enhance-denied-logging-for-dynamic-updates-v9_12' into 'v9_12'
Add tcp-self policy tests.

See merge request isc-projects/bind9!521
2018-07-11 14:15:31 -04:00
Mukund Sivaraman
d54a38d733 Add system tests for "tcp-self" update-policy
(cherry picked from commit a7e6a584ea)
2018-07-11 11:05:37 -07:00
Michał Kępień
73f653c243 Merge branch '392-send-upstream-tat-queries-for-locally-served-zones-v9_12' into 'v9_12'
[v9_12] Trust anchor telemetry queries are not sent for locally served zones

See merge request isc-projects/bind9!516
2018-07-11 03:15:47 -04:00
Michał Kępień
e54cddc0c1 Add CHANGES entry
4994.	[bug]		Trust anchor telemetry queries were not being sent
			upstream for locally served zones. [GL #392]

(cherry picked from commit a64750e428)
2018-07-11 08:59:29 +02:00
Michał Kępień
873c091408 Send upstream TAT queries for locally served zones
Trying to resolve a trust anchor telemetry query for a locally served
zone does not cause upstream queries to be sent as the response is
determined just by consulting local data.  Work around this issue by
calling dns_view_findzonecut() first in order to determine the NS RRset
for a given domain name and then passing the zone cut found to
dns_resolver_createfetch().

Note that this change only applies to TAT queries generated by the
resolver itself, not to ones received from downstream resolvers.

(cherry picked from commit a7657dc150)
2018-07-11 08:59:29 +02:00
Michał Kępień
2e7dd0d61f Extract TAT QNAME preparation to a separate function
Extract the part of dotat() reponsible for preparing the QNAME for a TAT
query to a separate function in order to limit the number of local
variables used by each function and improve code readability.

Rename 'name' to 'origin' to better convey the purpose of that variable.
Also mark it with the const qualifier.

(cherry picked from commit 127810e512)
2018-07-11 08:59:29 +02:00
Ondřej Surý
ec786f42bd Merge branch 'pkcs11-missing-gitignore-v9_12' into 'v9_12'
PKCS#11 build missing some .gitignore files and ignore .gitignore files

See merge request isc-projects/bind9!514
2018-07-11 02:19:58 -04:00
Ondřej Surý
8a143b1582 Don't check copyrights on .gitignore files
(cherry picked from commit 718c527e1d)
2018-07-11 08:12:48 +02:00
Ondřej Surý
bbd82796bd Add .gitignore for PKCS#11 test files
(cherry picked from commit 96907d636d)
2018-07-11 08:11:21 +02:00
Evan Hunt
363dee7e0c Merge branch 'git-replay-merge-no-push-option-v9_12' into 'v9_12'
Add --no-push and --push options and DONT_PUSH environment variable

See merge request isc-projects/bind9!510
2018-07-11 00:03:55 -04:00
Evan Hunt
458f273444 fixed an argument counting bug 2018-07-10 20:59:49 -07:00
Ondřej Surý
e50988255c Add --no-push and --push options and DONT_PUSH environment as default to control what happens after merge
(cherry picked from commit 23f69e5626)
2018-07-10 20:58:19 -07:00
Evan Hunt
c87c42acb5 Merge branch 'ci-check-libs' into 'v9_12'
check correctness of win32 .def files in CI 'precheck' step

See merge request isc-projects/bind9!505
2018-07-10 23:38:24 -04:00
Evan Hunt
f74fc06ede add checklibs to precheck CI step 2018-07-10 20:31:21 -07:00
Evan Hunt
4e657c1430 Merge branch 'remove-redundant-test-v9_12' into 'v9_12'
remove redundant test

See merge request isc-projects/bind9!502
2018-07-10 22:11:45 -04:00