Commit Graph

33224 Commits

Author SHA1 Message Date
Michał Kępień
2d7ec0c23b Merge branch 'mnowak/prepare-documentation-for-bind-9.16.16' into 'v9_16_16-release'
Prepare documentation for BIND 9.16.16

See merge request isc-private/bind9!294
2021-05-20 12:24:21 +02:00
Michał Kępień
cc503db304 Prepare release notes for BIND 9.16.16 2021-05-20 12:24:21 +02:00
Michał Kępień
6c144f38d9 Add release note for GL #2626 2021-05-20 12:24:21 +02:00
Michał Kępień
22d7ba6d11 Reorder release notes 2021-05-20 12:24:21 +02:00
Michał Kępień
f853ea9b15 Tweak and reword release notes 2021-05-20 12:24:21 +02:00
Michał Kępień
bf54e20580 Tweak and reword recent CHANGES entries 2021-05-20 12:24:21 +02:00
Michal Nowak
d0a0e7ad18 Fix typo in doc/dnssec-guide/recipes.rst 2021-05-20 12:24:21 +02:00
Matthijs Mekking
cc5bd7f1f5 Merge branch '1875-kasp-views-keyfile-race-v9_16' into 'v9_16'
Lock kasp when looking for zone keys (9.16)

See merge request isc-projects/bind9!5067
2021-05-20 08:21:29 +00:00
Matthijs Mekking
01f9b6e9c4 Release notes and changes for [#1875]
(cherry picked from commit fa1cd0a1f1)
2021-05-20 09:53:32 +02:00
Matthijs Mekking
96be6473fc Lock kasp when looking for zone keys
We should also lock kasp when reading key files, because at the same
time the zone in another view may be updating the key file.

(cherry picked from commit 252a1ae0a1)
2021-05-20 09:52:53 +02:00
Michal Nowak
735857bb09 Merge branch 'mnowak/openbsd-6.9-v9_16' into 'v9_16'
[v9_16] Add OpenBSD 6.9

See merge request isc-projects/bind9!5064
2021-05-19 17:33:03 +00:00
Michal Nowak
fec3bc59f5 Add OpenBSD 6.9
(cherry picked from commit 315b8522ba)
2021-05-19 18:25:33 +02:00
Michal Nowak
78189e7d27 Merge branch '2694-drop-seq-command-from-views-tests-sh-v9_16' into 'v9_16'
[v9_16] Replace seq command with POSIX-compliant shell code

See merge request isc-projects/bind9!5062
2021-05-19 14:55:03 +00:00
Michal Nowak
c0d4a11484 Make views system test ShellCheck-clean
Also, add "set -e" to all shell scripts of the views test to exit when
any command fails or is unknown, e.g., this on OpenBSD:

    tests.sh[174]: seq: not found

(cherry picked from commit a4b7eb7188)
2021-05-19 16:01:03 +02:00
Michal Nowak
8cb24ae7a9 Replace seq command with POSIX-compliant shell code
The seq command is not defined in the POSIX standard and is missing on
OpenBSD. Given that the system test code is meant to be POSIX-compliant
replace it with a shell construct.

(cherry picked from commit a08487ec3d)
2021-05-19 15:56:43 +02:00
Michał Kępień
167efc28fc Merge branch '2709-clean-up-the-installdirs-target-in-Makefile.in' into 'v9_16'
Clean up the "installdirs" target in Makefile.in

See merge request isc-projects/bind9!5059
2021-05-19 12:02:40 +00:00
Michał Kępień
4a4d215037 Add CHANGES entry 2021-05-19 09:59:31 +02:00
Michał Kępień
91d0dfd707 Clean up the "installdirs" target in Makefile.in
The isc-config.sh script was removed in 2019 [1], so the top-level
Makefile does not need to create ${bindir} and ${mandir}/man1 any more.

All named options creating files in the ${localstatedir}/run/named
directory are able to automatically create that directory (as well as
its containing directories), so there is no need for the top-level
Makefile to create ${localstatedir}/run.

Clean up the "installdirs" target in the top-level Makefile accordingly.

[1] see commit 4b44351e65
2021-05-19 09:59:31 +02:00
Matthijs Mekking
cc04e5be92 Merge branch '2688-cid331478-forwardnull-v9_16' into 'v9_16'
Fix coverity issue 331478 (9.16)

See merge request isc-projects/bind9!5058
2021-05-19 07:26:09 +00:00
Matthijs Mekking
5ce026d6a1 Fix coverity issue 331478
Move the "cannot start rollover" warning into code block that checks
if 'active_key' is not NULL.

(cherry picked from commit 19395fd168)
2021-05-19 09:05:35 +02:00
Mark Andrews
c8230562e8 Merge branch '2463-kasp-views-different-policy-same-keydirectory-v9_16' into 'v9_16'
Check key-directory duplicates for kasp zones

See merge request isc-projects/bind9!5055
2021-05-19 01:44:59 +00:00
Matthijs Mekking
271bad4362 Release notes and changes for [GL #2463]
Mention the bugfix.

(cherry picked from commit a9f4b074c4)
2021-05-19 00:44:32 +00:00
Matthijs Mekking
4e8dc72717 Add checkconf tests for [#2463]
Add two tests to make sure named-checkconf catches key-directory issues
where a zone in multiple views uses the same directory but has
different dnssec-policies. One test sets the key-directory specifically,
the other inherits the default key-directory (NULL, aka the working
directory).

Also update the good.conf test to allow zones in different views
with the same key-directory if they use the same dnssec-policy.

Also allow zones in different views with different key-directories if
they use different dnssec-policies.

Also allow zones in different views with the same key-directories if
only one view uses a dnssec-policy (the other is set to "none").

Also allow zones in different views with the same key-directories if
no views uses a dnssec-policy (zone in both views has the dnssec-policy
set to "none").

(cherry picked from commit df1aecd5ff)
2021-05-19 00:44:32 +00:00
Matthijs Mekking
d9fa465ff4 Check key-directory duplicates for kasp zones
Don't allow the same zone with different dnssec-policies in separate
views have the same key-directory.

Track zones plus key-directory in a symtab and if there is a match,
check the offending zone's dnssec-policy name. If the name is "none"
(there is no kasp for the offending zone), or if the name is the same
(the zone shares keys), it is fine, otherwise it is an error (zones
in views using different policies cannot share the same key-directory).

(cherry picked from commit 494e8b2cbd)
2021-05-19 00:44:32 +00:00
Mark Andrews
3aac910a01 Merge branch '2550-remove-dns_zone_setflag-v9_16' into 'v9_16'
Remove dns_zone_setflag()

See merge request isc-projects/bind9!5056
2021-05-19 00:43:35 +00:00
Mark Andrews
a417f994b1 Remove dns_zone_setflag()
This function has never been used since it was added to the source tree
by commit 686b27bfd3 back in 1999.  As
the dns_zoneflg_t type is only defined in lib/dns/zone.c, no function
external to that file would be able to use dns_zone_setflag() properly
anyway - the DNS_ZONE_SETFLAG() and DNS_ZONE_CLRFLAG() macros should be
used instead. Zone options that can be set from outside zone.c are set
using dns_zone_setoption().

(cherry picked from commit 314b5362a8)
2021-05-19 09:56:32 +10:00
Mark Andrews
308213ec8a Merge branch '2696-misleading-diagnostic-in-update_soa_serial-indicates-bind-will-use-increment-but-it-doesn-t-v9_16' into 'v9_16'
Adjust returned method from dns_updatemethod_date

See merge request isc-projects/bind9!5054
2021-05-18 13:22:12 +00:00
Mark Andrews
ee07fb854a Adjust returned method from dns_updatemethod_date
if dns_updatemethod_date is used do that the returned method is only
set to dns_updatemethod_increment if the new serial does not encode
the current day (YYYYMMDDXX).

(cherry picked from commit 5d21042ed8)
2021-05-18 22:55:35 +10:00
Michał Kępień
a2dad97eb9 Merge branch 'michal/use-context-managers-as-suggested-by-pylint-2.8.2-v9_16' into 'v9_16'
[v9_16] Use context managers as suggested by PyLint 2.8.2

See merge request isc-projects/bind9!5053
2021-05-18 09:21:45 +00:00
Michał Kępień
e8af7528e1 Use context managers as suggested by PyLint 2.8.2
PyLint 2.8.2 reports the following suggestions for two Python scripts
used in the system test suite:

    ************* Module tests_rndc_deadlock
    bin/tests/system/addzone/tests_rndc_deadlock.py:71:4: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
    ************* Module tests-shutdown
    bin/tests/system/shutdown/tests-shutdown.py:68:4: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
    bin/tests/system/shutdown/tests-shutdown.py:157:8: R1732: Consider using 'with' for resource-allocating operations (consider-using-with)

Implement the above suggestions by using
concurrent.futures.ThreadPoolExecutor() and subprocess.Popen() as
context managers.

(cherry picked from commit a8163551ed)
2021-05-18 11:02:45 +02:00
Mark Andrews
ba470298e9 Merge branch '2706-worker-cond_prio-needs-to-be-initialised-v9_16' into 'v9_16'
initialise worker->cond_prio

See merge request isc-projects/bind9!5052
2021-05-18 09:02:14 +00:00
Mark Andrews
148ccd06dd initialise worker->cond_prio
(cherry picked from commit 7e83c6df94)
2021-05-18 18:43:25 +10:00
Mark Andrews
a09b816f00 Merge branch '2701-gcc-10-fanalyzer-reports-dereference-of-null-label-in-lib-dns-name-c-1167-v9_16' into 'v9_16'
Silence gcc-10-fanalyzer false positive

See merge request isc-projects/bind9!5049
2021-05-18 07:12:59 +00:00
Mark Andrews
db0c4d079a Silence gcc-10-fanalyzer false positive
If 'state == ft_ordinary' then 'label' can't be NULL. Add
INSIST to reflect this.

(cherry picked from commit 29f1c1e677)
2021-05-18 16:45:56 +10:00
Mark Andrews
3229e4a2ba Merge branch '2702-gcc-10-fanalyzer-reports-v9_16' into 'v9_16'
Silence gcc-10-fanalyzer false positive

See merge request isc-projects/bind9!5044
2021-05-18 06:43:42 +00:00
Mark Andrews
7dd85a71ae Silence gcc-10-fanalyzer false positive
Add REQUIRE(type == dns_rdatatype_nsec3 || firstp != NULL); so
that dereferences of *firstp is not flagged as a NULL pointer
dereference.

(cherry picked from commit 683ad6e4bd)
2021-05-18 15:48:08 +10:00
Mark Andrews
f7d597544f Merge branch '2689-cid-331477-resource-leaks-resource_leak-v9_16' into 'v9_16'
Address potential resource leak in dst_key_fromnamedfile

See merge request isc-projects/bind9!5042
2021-05-18 02:48:58 +00:00
Mark Andrews
ae9c74a846 Add CHANGES for [GL #2689]
(cherry picked from commit d24ea068c8)
2021-05-18 11:43:14 +10:00
Mark Andrews
1b0c38c416 Address potential resource leak in dst_key_fromnamedfile
(cherry picked from commit 8eed392add)
2021-05-18 11:42:48 +10:00
Michal Nowak
2d4448c53e Merge branch '2692-grep-from-freebsd-13-0-stumbles-on-r-in-digdelv-test' into 'v9_16'
Do not use escape codes for matching with grep

See merge request isc-projects/bind9!5023
2021-05-17 11:12:17 +00:00
Michal Nowak
253ae96bf1 Do not use escape codes for matching with grep
FreeBSD 13.0 replaced GNU grep with BSD grep and removed support for
"redundant escapes for most ordinary characters" from regex(3) library,
therefore the matching sequence in digdelv/tests.sh needs to be
rewritten otherwise it fails with:

    grep: trailing backslash (\)
2021-05-17 13:10:28 +02:00
Ondřej Surý
21f10fa8c8 Merge branch 'ondrej/remove-netmgr-quantum-v9_16' into 'v9_16'
Replace netmgr quantum with loop-preventing barrier

See merge request isc-projects/bind9!5032
2021-05-17 11:05:38 +00:00
Ondřej Surý
fb9a79ffb6 Replace netmgr quantum with loop-preventing barrier
Instead of using fixed quantum, this commit adds atomic counter for
number of items on each queue and uses the number of netievents
scheduled to run as the limit of maximum number of netievents for a
single process_queue() run.

This prevents the endless loops when the netievent would schedule more
netievents onto the same loop, but we don't have to pick "magic" number
for the quantum.

(cherry picked from commit 9e3cb396b2)
2021-05-17 12:06:07 +02:00
Michal Nowak
570c22da13 Merge branch '2693-add-py-test-to-the-list-of-tested-pytest-names-v9_16' into 'v9_16'
[v9_16] Add py.test to the list of tested pytest names

See merge request isc-projects/bind9!5030
2021-05-17 09:57:54 +00:00
Michal Nowak
cfb8cf5294 Add py.test to the list of tested pytest names
OpenBSD changed the name of the pytest script from py.test-3 in OpenBSD
6.8 to py.test in OpenBSD 6.9.

The py.test-3 name which was added in d5562a3e for the sake of OpenBSD
and CentOS is still required for CentOS.

(cherry picked from commit 510b4b70e9)
2021-05-17 11:28:31 +02:00
Michal Nowak
a06c737377 Merge branch '2386-check-correct-copyright-dates-in-man-pages-v9_16' into 'v9_16'
[v9_16] Set copyright year to the current year

See merge request isc-projects/bind9!5027
2021-05-14 13:24:39 +00:00
Michal Nowak
56cd1f041c Set copyright year to the current year
To ensure that a release with outdated copyright year is not produced at
the beginning of a year, set copyright year to the current year.

(cherry picked from commit 7eb44b05c5)
2021-05-14 14:47:35 +02:00
Ondřej Surý
a822caa3f3 Merge branch 'each-backport-netmgr' into 'v9_16'
Full backport of netmgr/taskmgr to 9.16

See merge request isc-projects/bind9!5018
2021-05-14 11:17:56 +00:00
Evan Hunt
4c9c6a8823 CHANGES, release notes 2021-05-14 12:52:48 +02:00
Ondřej Surý
4d027ab945 Remove TLSDNS, TLS and HTTP protocols from netmgr
For further stabilization of the 9.16 branch, we are removing the unused
protocols from the netmgr.
2021-05-14 12:52:48 +02:00