]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoMerge branch 'michal/1674-add-release-note' into 'v9_16'
Michał Kępień [Mon, 4 May 2020 09:06:31 +0000 (09:06 +0000)] 
Merge branch 'michal/1674-add-release-note' into 'v9_16'

Add release note for GL #1674

See merge request isc-projects/bind9!3490

6 years agoAdd release note for GL #1674
Michał Kępień [Mon, 4 May 2020 09:00:23 +0000 (11:00 +0200)] 
Add release note for GL #1674

6 years agoMerge branch '1807-checkconf-error-v9_16' into 'v9_16'
Evan Hunt [Sat, 2 May 2020 01:01:56 +0000 (01:01 +0000)] 
Merge branch '1807-checkconf-error-v9_16' into 'v9_16'

named-checkconf -z could exit with an incorrect status

See merge request isc-projects/bind9!3488

6 years agonamed-checkconf -z could exit with an incorrect staatus
Evan Hunt [Thu, 30 Apr 2020 20:17:37 +0000 (13:17 -0700)] 
named-checkconf -z could exit with an incorrect staatus

the CHECK() macro resets result, so an error code from an earlier
view could be erased if the last view loaded had no errors.

(cherry picked from commit 7e736602062a4f96b5ff5e89cd998db861362b03)

6 years agoMerge branch '1713-use-default-buffer-sizes-v9_16' into 'v9_16'
Witold Krecicki [Fri, 1 May 2020 16:56:33 +0000 (16:56 +0000)] 
Merge branch '1713-use-default-buffer-sizes-v9_16' into 'v9_16'

Don't set UDP recv/send buffer sizes - use system defaults (unless explicitly defined)

See merge request isc-projects/bind9!3487

6 years agoDon't set UDP recv/send buffer sizes - use system defaults (unless explicitly defined)
Witold Kręcicki [Wed, 29 Apr 2020 22:25:09 +0000 (00:25 +0200)] 
Don't set UDP recv/send buffer sizes - use system defaults (unless explicitly defined)

(cherry picked from commit fa02f6438b5a07bbd5f979747b2890826461e870)

6 years agoMerge branch 'ondrej/fix-SO_REUSEPORT-usage-on-FreeBSD-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 14:51:11 +0000 (14:51 +0000)] 
Merge branch 'ondrej/fix-SO_REUSEPORT-usage-on-FreeBSD-v9_16' into 'v9_16'

Fix SO_REUSEPORT usage on FreeBSD (v9.16)

See merge request isc-projects/bind9!3486

6 years agoAdd CHANGES note for GL !3365
Ondřej Surý [Fri, 1 May 2020 12:26:41 +0000 (14:26 +0200)] 
Add CHANGES note for GL !3365

(cherry picked from commit 23a653dd926fb5e55645ed679703a7bc5d03186e)

6 years agoUse SO_REUSEPORT only on Linux, use SO_REUSEPORT_LB on FreeBSD
Ondřej Surý [Wed, 15 Apr 2020 05:33:44 +0000 (07:33 +0200)] 
Use SO_REUSEPORT only on Linux, use SO_REUSEPORT_LB on FreeBSD

The SO_REUSEPORT socket option on Linux means something else on BSD
based systems.  On FreeBSD there's 1:1 option SO_REUSEPORT_LB, so we can
use that.

(cherry picked from commit 09ba47b0676f14af47b71364e1fe52c298b4079a)

6 years agoMerge branch '1795-make-dnstap-work-reliably-with-netmgr-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 14:32:12 +0000 (14:32 +0000)] 
Merge branch '1795-make-dnstap-work-reliably-with-netmgr-v9_16' into 'v9_16'

Resolve "Some dnstap data may not be logged in BIND 9.15.6+"

See merge request isc-projects/bind9!3485

6 years agoAdd CHANGES entry
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Add CHANGES entry

(cherry picked from commit 47c769e47514427501170a1eb2d24677d25e0c67)

6 years agoAdd a release note
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Add a release note

(cherry picked from commit 4a5c1c7bfe65c6e1c6b3f424af28ff7882976d30)

6 years agoMake dnstap work reliably with netmgr
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Make dnstap work reliably with netmgr

The introduction of netmgr doubled the number of threads from which
dnstap data may be logged: previously, it could only happen from within
taskmgr worker threads; with netmgr, it can happen both from taskmgr
worker threads and from network threads.  Since the argument passed to
fstrm_iothr_options_set_num_input_queues() was not updated to reflect
this change, some calls to fstrm_iothr_get_input_queue() can now return
NULL, effectively preventing some dnstap data from being logged.
Whether this bug is triggered or not depends on thread scheduling order
and packet distribution between network threads, but will almost
certainly be triggered on any recursive resolver sooner or later.  Fix
by requesting the correct number of dnstap input queues to be allocated.

(cherry picked from commit 77dc091855fa106ecb3197618f40561c09b9976c)

6 years agoMerge branch '1763-ossl-eddsa-engine-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 14:27:12 +0000 (14:27 +0000)] 
Merge branch '1763-ossl-eddsa-engine-v9_16' into 'v9_16'

Add engine support to OpenSSL EdDSA implementation (v9.16)

See merge request isc-projects/bind9!3483

6 years agoAdd release notes for #1763
Ondřej Surý [Fri, 1 May 2020 10:51:43 +0000 (12:51 +0200)] 
Add release notes for #1763

(cherry picked from commit 3c5cdc3f245bdd9126c50efb60bd38c558faa791)

6 years agoAdd CHANGES note for #1763
Ondřej Surý [Fri, 1 May 2020 10:50:05 +0000 (12:50 +0200)] 
Add CHANGES note for #1763

(cherry picked from commit 3422c496aeb312f7d2c5cb8c2bc896e443c14789)

6 years agoAdd engine support to OpenSSL EdDSA implementation.
Aaron Thompson [Wed, 25 Mar 2020 21:10:57 +0000 (21:10 +0000)] 
Add engine support to OpenSSL EdDSA implementation.

(cherry picked from commit 6a9f20d031bb0b0d8e275b132d5520e7b1d7f8f5)

6 years agoUse OpenSSL raw key functions for EdDSA keys.
Aaron Thompson [Fri, 10 Apr 2020 00:02:35 +0000 (00:02 +0000)] 
Use OpenSSL raw key functions for EdDSA keys.

(cherry picked from commit f9685b29f9bff92793601f0aa5a0b14d1360f8e6)

6 years agoMerge branch '1534-add-ecdsa-openssl-pkcs11-engine-support-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 14:25:17 +0000 (14:25 +0000)] 
Merge branch '1534-add-ecdsa-openssl-pkcs11-engine-support-v9_16' into 'v9_16'

Add engine support to OpenSSL ECDSA implementation (v9.16)

See merge request isc-projects/bind9!3484

6 years agoAdd release note for GL #1534
Ondřej Surý [Fri, 1 May 2020 09:03:34 +0000 (11:03 +0200)] 
Add release note for GL #1534

(cherry picked from commit 80d51223c382690c240c985a1b632ace81cf614f)

6 years agoAdd CHANGES note for GL #1534
Ondřej Surý [Fri, 1 May 2020 08:59:02 +0000 (10:59 +0200)] 
Add CHANGES note for GL #1534

(cherry picked from commit dde438dac716c40819fee427db3ea7eee44f2c95)

6 years agoSimplify error handling
Ondřej Surý [Fri, 7 Feb 2020 13:21:29 +0000 (14:21 +0100)] 
Simplify error handling

(cherry picked from commit 064d8b7a6db18a9c9c9db1cdf99d5914ebfbffab)

6 years agoAdd initial support for ECDSA keys via OpenSSL PKCS#11 engine
Ondřej Surý [Fri, 7 Feb 2020 13:20:54 +0000 (14:20 +0100)] 
Add initial support for ECDSA keys via OpenSSL PKCS#11 engine

(cherry picked from commit aff61535c265617fc770b22a1cb9af9d9e0a29b5)

6 years agoMerge branch 'ondrej/fix-system-tests-on-openbsd-v9.16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 11:40:21 +0000 (11:40 +0000)] 
Merge branch 'ondrej/fix-system-tests-on-openbsd-v9.16' into 'v9_16'

Fix system tests on openbsd v9.16

See merge request isc-projects/bind9!3478

6 years agoRename start() and stop() to start_server() and stop_server()
Ondřej Surý [Fri, 1 May 2020 08:14:21 +0000 (10:14 +0200)] 
Rename start() and stop() to start_server() and stop_server()

On OpenBSD, there's non-POSIX alias from stop to kill that breaks
the conf.sh.common script.

6 years agoChange the 'date -R' to sort-of iso-8601 emulated time
Ondřej Surý [Fri, 1 May 2020 08:04:38 +0000 (10:04 +0200)] 
Change the 'date -R' to sort-of iso-8601 emulated time

6 years agoMerge branch '1797-libuv-1-37-requires-uv_init_ex-to-be-used-for-mmsg-v9_16' into...
Ondřej Surý [Fri, 1 May 2020 10:45:46 +0000 (10:45 +0000)] 
Merge branch '1797-libuv-1-37-requires-uv_init_ex-to-be-used-for-mmsg-v9_16' into 'v9_16'

Resolve "libuv >= 1.37 requires uv_udp_init_ex() to be used for mmsg"

See merge request isc-projects/bind9!3474

6 years agoCHANGES note
Witold Kręcicki [Thu, 30 Apr 2020 08:23:34 +0000 (10:23 +0200)] 
CHANGES note

6 years agoDon't free udp recv buffer if UV_UDP_MMSG_CHUNK is set
Witold Kręcicki [Wed, 29 Apr 2020 13:19:32 +0000 (15:19 +0200)] 
Don't free udp recv buffer if UV_UDP_MMSG_CHUNK is set

(cherry picked from commit 83049ceabf14679583dbfa7d5ee84587db8a0463)

6 years agoUse UV_UDP_RECVMMSG to enable mmsg support in libuv if available
Ondřej Surý [Mon, 27 Apr 2020 16:57:07 +0000 (18:57 +0200)] 
Use UV_UDP_RECVMMSG to enable mmsg support in libuv if available

(cherry picked from commit d5356a40ff17aca187312ac462da1b4e6a3c2feb)

6 years agoMerge branch '1648-native-pkcs11-eddsa-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 08:32:45 +0000 (08:32 +0000)] 
Merge branch '1648-native-pkcs11-eddsa-v9_16' into 'v9_16'

Resolve "Fix PKCS#11-based EdDSA support"

See merge request isc-projects/bind9!3472

6 years agoMake the cleanpkcs11.sh more universal across branches
Ondřej Surý [Fri, 1 May 2020 07:02:54 +0000 (09:02 +0200)] 
Make the cleanpkcs11.sh more universal across branches

6 years agoFix another the start_fail -> start_servers_failed typo
Ondřej Surý [Fri, 1 May 2020 06:04:20 +0000 (08:04 +0200)] 
Fix another the start_fail -> start_servers_failed typo

6 years agoFixup the start_fail -> start_servers_failed typo
Ondřej Surý [Thu, 30 Apr 2020 16:35:25 +0000 (18:35 +0200)] 
Fixup the start_fail -> start_servers_failed typo

(cherry picked from commit 0313d2950a95a56414543488cedb9daa83d9641e)

6 years agoAdd release notes
Ondřej Surý [Mon, 20 Apr 2020 10:05:49 +0000 (12:05 +0200)] 
Add release notes

(cherry picked from commit e69d34a4546e0cb2b42c20120c25a584111ab578)

6 years agoAdd CHANGES
Ondřej Surý [Mon, 20 Apr 2020 10:02:55 +0000 (12:02 +0200)] 
Add CHANGES

(cherry picked from commit 84fffbdb4c582f2aaf079f7d8bd5611f8f7d9e12)

6 years agoFix the check for non-operational algs 15 and 16 in PKCS#11
Ondřej Surý [Thu, 30 Apr 2020 13:26:27 +0000 (15:26 +0200)] 
Fix the check for non-operational algs 15 and 16 in PKCS#11

(cherry picked from commit 57c39ddbe3ead43f86eb14f23a7cc2662b93b91c)

6 years agoFail running run.sh when clean.sh or setup.sh fails
Ondřej Surý [Thu, 30 Apr 2020 12:53:55 +0000 (14:53 +0200)] 
Fail running run.sh when clean.sh or setup.sh fails

(cherry picked from commit 101672f6648d22762a32fa3d1f48fb081be7ba37)

6 years agoRefactor the pkcs11 to test for individual algorithms
Ondřej Surý [Thu, 30 Apr 2020 12:53:40 +0000 (14:53 +0200)] 
Refactor the pkcs11 to test for individual algorithms

(cherry picked from commit a6bdb9639a31cb9237912e033d06cf3f9da4485c)

6 years agoUpdate EdDSA implementation to PKCS#11 v3.0.
Aaron Thompson [Sun, 29 Mar 2020 06:04:08 +0000 (06:04 +0000)] 
Update EdDSA implementation to PKCS#11 v3.0.

Per Current Mechanisms 2.3.5, the curve name is DER-encoded in the
EC_PARAMS attribute, and the public key value is DER-encoded in the
EC_POINT attribute.

(cherry picked from commit 2e6b7a56cc6261582811fc2b14d2160303b4d039)

6 years agoFix EdDSA key sizes (key_size is in bits).
Aaron Thompson [Wed, 25 Mar 2020 21:03:41 +0000 (21:03 +0000)] 
Fix EdDSA key sizes (key_size is in bits).

(cherry picked from commit 9b87fe10518ea0b0b5d254d61ee95a8db4360f49)

6 years agoAdd EdDSA algorithms back to dnssec-keyfromlabel help text.
Aaron Thompson [Sun, 29 Mar 2020 08:54:43 +0000 (08:54 +0000)] 
Add EdDSA algorithms back to dnssec-keyfromlabel help text.

Regressed in 45afdb267253e7178267d696b8b4488ec1d67d47.

(cherry picked from commit 496957718919cf3090f8686305d2b956e20eb7ec)

6 years agoMerge branch '1763-pkcs11-code-cleanups-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 05:57:17 +0000 (05:57 +0000)] 
Merge branch '1763-pkcs11-code-cleanups-v9_16' into 'v9_16'

Resolve "Implement and improve the PKCS#11 code"

See merge request isc-projects/bind9!3471

6 years agoAdd CHANGES
Ondřej Surý [Mon, 20 Apr 2020 09:48:45 +0000 (11:48 +0200)] 
Add CHANGES

(cherry picked from commit 48473d464f24dd7d57e6ce02874aaf6f5c933ff8)

6 years agoUse switch instead of if when evaluating curves
Ondřej Surý [Mon, 20 Apr 2020 08:30:54 +0000 (10:30 +0200)] 
Use switch instead of if when evaluating curves

Previously, the code would do:

    REQUIRE(alg == CURVE1 || alg == CURVE2);

    [...]

    if (alg == CURVE1) { /* code for CURVE1 */ }
    else { /* code for CURVE2 */ }

This approach is less extensible and also more prone to errors in case
the initial REQUIRE() is forgotten.  The code has been refactored to
use:

    REQUIRE(alg == CURVE1 || alg == CURVE2);

    [...]

    switch (alg) {
    case CURVE1: /* code for CURVE1 */; break;
    case CURVE2: /* code for CURVE2 */; break;
    default: INSIST(0);
    }

(cherry picked from commit cf30e7d0d1a0ff16569e76f210efbcefeface83e)

6 years agoRefactor the code using the pk11 ECC constants.
Ondřej Surý [Mon, 20 Apr 2020 08:31:15 +0000 (10:31 +0200)] 
Refactor the code using the pk11 ECC constants.

The pk11/constants.h header contained static CK_BYTE arrays and
we had to use #defines to pull only those we need.  This commit
changes the constants to only define byte arrays with the content
and either use them directly or define the CK_BYTE arrays locally
where used.

(cherry picked from commit da38bd0e1d9739990fcbd582369698e81968ca62)

6 years agoOnly print warning when PKCS#11 dnssec-keygen fails from Edwards curves
Ondřej Surý [Fri, 17 Apr 2020 08:58:46 +0000 (10:58 +0200)] 
Only print warning when PKCS#11 dnssec-keygen fails from Edwards curves

(cherry picked from commit 9d979d7cd60122486c48a8f750af830710807595)

6 years agoFix a segfault when a PKCS#11 token is not found.
Aaron Thompson [Fri, 3 Apr 2020 05:42:26 +0000 (05:42 +0000)] 
Fix a segfault when a PKCS#11 token is not found.

(cherry picked from commit 541d7bafe652c03b14cd9844bfeea371de161e5b)

6 years agoFix bad syntax in pkcs11eddsa_link.c.
Aaron Thompson [Sun, 29 Mar 2020 22:08:13 +0000 (22:08 +0000)] 
Fix bad syntax in pkcs11eddsa_link.c.

Introduced in 994e656977b88516d76519c437b623ddb32b0769.

(cherry picked from commit 46cae09023ca52a200d3d5cc304ebdd1dedde4b5)

6 years agoUpdate to PKCS#11 v3.0 EdDSA macros.
Aaron Thompson [Sun, 29 Mar 2020 21:41:00 +0000 (21:41 +0000)] 
Update to PKCS#11 v3.0 EdDSA macros.

(cherry picked from commit 3e685fe01a4cb92c9caef5fc766d28eaf43f07bc)

6 years agoFix compiler warnings about unused pk11 constants.
Aaron Thompson [Tue, 31 Mar 2020 08:00:30 +0000 (08:00 +0000)] 
Fix compiler warnings about unused pk11 constants.

(cherry picked from commit 2ef379d9110f16f0aeb7fef85950ff304ff857a8)

6 years agoRemove remaining PKCS#11 DH references.
Aaron Thompson [Sat, 28 Mar 2020 21:14:46 +0000 (21:14 +0000)] 
Remove remaining PKCS#11 DH references.

Missed in 0a73c9f13799aec6bfe14beec908d81240e3326f and 8efd394c80449dc7a7e6cbe171d8f42ff957ebf3.

(cherry picked from commit d28c7dadbba071e79a85da7d85d6dd751c4a68b5)

6 years agoRemove unnecessary forward declarations.
Aaron Thompson [Tue, 31 Mar 2020 02:26:21 +0000 (02:26 +0000)] 
Remove unnecessary forward declarations.

(cherry picked from commit 6a6485a531adb590570263ae5d2bac7164161088)

6 years agoFinish refactoring pkcs11eddsa_link.c after isc_buffer_allocate change.
Aaron Thompson [Mon, 30 Mar 2020 00:36:27 +0000 (00:36 +0000)] 
Finish refactoring pkcs11eddsa_link.c after isc_buffer_allocate change.

Left over after c73e5866c479c71b2fb61e882c249cc2c3de3af0.

(cherry picked from commit 7744aece03b8eeefcdf53fb84af2f70484a10b7e)

6 years agoRemove unreachable label in pkcs11eddsa_link.c.
Aaron Thompson [Mon, 30 Mar 2020 00:20:21 +0000 (00:20 +0000)] 
Remove unreachable label in pkcs11eddsa_link.c.

Missed in ae83801e2b8e87260dea59a445f3c41bb5eb9944.

(cherry picked from commit b4a7bfd55e6d7579194816be78800a19e4f58cd6)

6 years agoFinish refactoring after the removal of --with-ecdsa and --with-eddsa.
Aaron Thompson [Sun, 29 Mar 2020 05:50:25 +0000 (05:50 +0000)] 
Finish refactoring after the removal of --with-ecdsa and --with-eddsa.

Missed in c3b8130fe8267185e786e9c12527df7c53b37589.

(cherry picked from commit 7fc4f926fb26c3f3408bf435a3ae7a934acf26dd)

6 years agoRemove old comment.
Aaron Thompson [Mon, 30 Mar 2020 01:30:55 +0000 (01:30 +0000)] 
Remove old comment.

Missed in 6aae193ded53d7ea7b2686aca1d33b264103be5c.

(cherry picked from commit 48e0c0bc4a7761b1353ff0ef77f314432787dab7)

6 years agoFinish replacing OP_EC with OP_ECDSA/OP_EDDSA.
Aaron Thompson [Sun, 29 Mar 2020 21:47:09 +0000 (21:47 +0000)] 
Finish replacing OP_EC with OP_ECDSA/OP_EDDSA.

Missed in c3b8130fe8267185e786e9c12527df7c53b37589.

(cherry picked from commit bb158e8a4c7ce2c0d84faf7dc17308973a55c11d)

6 years agoFix incorrect PKCS11 macro in dnssec-revoke.
Aaron Thompson [Sat, 28 Mar 2020 18:51:20 +0000 (18:51 +0000)] 
Fix incorrect PKCS11 macro in dnssec-revoke.

Missed in c3b8130fe8267185e786e9c12527df7c53b37589.

(cherry picked from commit b217052081d6394bc3df62b8b9ce20fe6e35e592)

6 years agoMerge branch '1695-addzone-system-tests-failing-in-mac-os-x-v9_16' into 'v9_16'
Mark Andrews [Thu, 30 Apr 2020 23:56:09 +0000 (23:56 +0000)] 
Merge branch '1695-addzone-system-tests-failing-in-mac-os-x-v9_16' into 'v9_16'

Resolve "addzone system tests failing in Mac OS X"

See merge request isc-projects/bind9!3469

6 years agoAdd CHANGES entry
Mark Andrews [Mon, 6 Apr 2020 00:33:02 +0000 (10:33 +1000)] 
Add CHANGES entry

(cherry picked from commit d63479a48d4e8e84aec9ea00f6d167e0c990a92f)

6 years agoMimic nzf_append from bin/named/server.c
Mark Andrews [Mon, 23 Mar 2020 02:27:37 +0000 (13:27 +1100)] 
Mimic nzf_append from bin/named/server.c

nzf_append is conditionally compiled and this is intended to
catch error introduced by changes to the called functions on all
systems before the changes are run through the CI.

(cherry picked from commit a66c6fc8831aa93a6a20a3e1422486332d016f1c)

6 years agoAdd jobs for 'configure --with{out}-lmdb' to the GitLab CI
Mark Andrews [Mon, 23 Mar 2020 01:04:30 +0000 (12:04 +1100)] 
Add jobs for 'configure --with{out}-lmdb' to the GitLab CI

We missed a case where LMDB was not installed/used in the build
and that broke system tests on such systems.

(cherry picked from commit 060b56dc70f2001fef21ab0eb954663feb62d4d0)

6 years agoAdd more special zones to addzone restart test.
Mark Andrews [Mon, 23 Mar 2020 00:22:48 +0000 (11:22 +1100)] 
Add more special zones to addzone restart test.

Test zones with various escape sequences and filesystem seperator
characters.
* escaped double quote (\")
* escaped escape (\\)
* escaped decimal byte value (\032)
* slash seperator (/)

(cherry picked from commit 5ab9b5b1e6544d74df3edb6e37b0f3b5797b74c9)

6 years agoEscape double quote when printing quoted string.
Mark Andrews [Sun, 22 Mar 2020 23:28:33 +0000 (10:28 +1100)] 
Escape double quote when printing quoted string.

When we were printing quoted string, the double quotes where unescaped
leading to prematurely ending the quoted string.

(cherry picked from commit b02081d423dd9f0f038112a6fed32c15dfce248f)

6 years agoMerge branch '1806-system-and-unit-clang-asan-have-incorrect-needs-v9_16' into 'v9_16'
Mark Andrews [Thu, 30 Apr 2020 08:50:31 +0000 (08:50 +0000)] 
Merge branch '1806-system-and-unit-clang-asan-have-incorrect-needs-v9_16' into 'v9_16'

Incorrect job in needs, gcc:asan -> clang:asan

See merge request isc-projects/bind9!3462

6 years agoIncorrect job in needs, gcc:asan -> clang:asan
Mark Andrews [Thu, 30 Apr 2020 07:12:00 +0000 (17:12 +1000)] 
Incorrect job in needs, gcc:asan -> clang:asan

(cherry picked from commit 0adf9562fb687817c99d734030ded8521c78eaef)

6 years agoMerge branch '1804-util-parse_tsan-py-is-not-pylint-clean-v9_16' into 'v9_16'
Mark Andrews [Thu, 30 Apr 2020 08:43:58 +0000 (08:43 +0000)] 
Merge branch '1804-util-parse_tsan-py-is-not-pylint-clean-v9_16' into 'v9_16'

pylint cleanups

See merge request isc-projects/bind9!3459

6 years agopylint cleanups
Mark Andrews [Wed, 29 Apr 2020 04:33:10 +0000 (14:33 +1000)] 
pylint cleanups

(cherry picked from commit d7618f69541d69a43ddf6409493b3b3bd937b434)

6 years agoMerge branch '1783-ax_check_compile_flag-fno-delete-null-pointer-checks-does-not...
Ondřej Surý [Wed, 29 Apr 2020 16:33:31 +0000 (16:33 +0000)] 
Merge branch '1783-ax_check_compile_flag-fno-delete-null-pointer-checks-does-not-fail-for-clang-v9_16' into 'v9_16'

Force test for -fno-delete-null-pointer-checks to fail

See merge request isc-projects/bind9!3453

6 years agoForce test for -fno-delete-null-pointer-checks to fail
Mark Andrews [Wed, 22 Apr 2020 03:02:18 +0000 (13:02 +1000)] 
Force test for -fno-delete-null-pointer-checks to fail

(cherry picked from commit 82ab846f133ea2b237472eb0dd78d000fea19d9d)

6 years agoMerge branch 'ondrej/fix-asan-symbolizer-v9_16' into 'v9_16'
Ondřej Surý [Wed, 29 Apr 2020 15:29:29 +0000 (15:29 +0000)] 
Merge branch 'ondrej/fix-asan-symbolizer-v9_16' into 'v9_16'

Fix the ASAN symbolizer

See merge request isc-projects/bind9!3451

6 years agoFix the ASAN symbolizer
Ondřej Surý [Wed, 29 Apr 2020 13:26:36 +0000 (15:26 +0200)] 
Fix the ASAN symbolizer

(cherry picked from commit 96805e8c9171ce42a538b4bc653480a6185f65ac)

6 years agoMerge branch '1764-build-9-16-2-release-make-depend-fatal-error-lib-dns-dnstap-pb...
Mark Andrews [Wed, 29 Apr 2020 14:10:29 +0000 (14:10 +0000)] 
Merge branch '1764-build-9-16-2-release-make-depend-fatal-error-lib-dns-dnstap-pb-c-h-no-such-file-or-directory' into 'v9_16'

'make depend' failed

See merge request isc-projects/bind9!3398

6 years agocheck that 'make depend' does not fail
Mark Andrews [Fri, 17 Apr 2020 03:31:37 +0000 (13:31 +1000)] 
check that 'make depend' does not fail

6 years agoaddress 'make depend' issues
Mark Andrews [Fri, 17 Apr 2020 03:19:05 +0000 (13:19 +1000)] 
address 'make depend' issues

6 years agoMerge branch '725-prepare-system-tests-for-pytest-v9_16' into 'v9_16'
Ondřej Surý [Wed, 29 Apr 2020 12:40:40 +0000 (12:40 +0000)] 
Merge branch '725-prepare-system-tests-for-pytest-v9_16' into 'v9_16'

Add a pytest runner to run.sh

See merge request isc-projects/bind9!3447

6 years agoSilence the invalid-name errors from pylint
Ondřej Surý [Wed, 29 Apr 2020 10:19:40 +0000 (12:19 +0200)] 
Silence the invalid-name errors from pylint

6 years agoAdd a pytest runner to run.sh
Ondřej Surý [Fri, 27 Mar 2020 12:23:24 +0000 (13:23 +0100)] 
Add a pytest runner to run.sh

The system tests currently uses patchwork of shell scripts which doesn't
offer proper error handling.

This commit introduced option to write new tests in pytest framework
that also allows easier manipulation of DNS traffic (using dnspython),
native XML and JSON manipulation and proper error reporting.

(cherry picked from commit cf5105939c1c1802e69cc63a39e9d71b6e5f67e1)

6 years agoMerge branch '1090-fix-unable-to-set-effective-uid-to-0-v9_16' into 'v9_16'
Ondřej Surý [Tue, 28 Apr 2020 16:40:13 +0000 (16:40 +0000)] 
Merge branch '1090-fix-unable-to-set-effective-uid-to-0-v9_16' into 'v9_16'

Resolve "BIND 9.14: unable to set effective uid to 0"

See merge request isc-projects/bind9!3440

6 years agoAdd release notes for GL #1042, #1090
Ondřej Surý [Mon, 27 Apr 2020 14:27:05 +0000 (16:27 +0200)] 
Add release notes for GL #1042, #1090

(cherry picked from commit 60b608b65b4b38d94965074b43a3ae9416a398da)

6 years agoAdd CHANGES for #1042, #1090
Ondřej Surý [Mon, 27 Apr 2020 14:23:07 +0000 (16:23 +0200)] 
Add CHANGES for #1042, #1090

(cherry picked from commit a0a5eab31c206af31ad4ac4a400d9551ce97d330)

6 years agoPropagate first_time to named_os_openfile in generate_session_key.
Mark Andrews [Mon, 27 Apr 2020 22:13:02 +0000 (08:13 +1000)] 
Propagate first_time to named_os_openfile in generate_session_key.

named_os_openfile was being called with switch_user set to true
unconditionally leading to log messages about being unable to
switch user identity from named when regenerating the key.

(cherry picked from commit 071bc29962ec5d7117b5a54b9e5e0c2d4081474b)

6 years agoDon't change effective uid when we already dropped privileges
Ondřej Surý [Mon, 27 Apr 2020 13:58:45 +0000 (15:58 +0200)] 
Don't change effective uid when we already dropped privileges

When running on Linux and system capabilities are available, named will
drop the extra capabilities before loading the configuration.  This led
to spurious warnings from `seteuid()` because named already dropped
CAP_SETUID and CAP_GETUID capabilities.

The fix removes setting the effective uid/gid when capabilities are
available, and adds a check that we are running under the user we were
requested to run.

(cherry picked from commit 6c82e2af92c741b52585e67054a67862211875b0)

6 years agoMerge branch '1672-stop-leaking-external-headers-and-symbols-to-the-public-api-isc...
Ondřej Surý [Tue, 28 Apr 2020 14:29:55 +0000 (14:29 +0000)] 
Merge branch '1672-stop-leaking-external-headers-and-symbols-to-the-public-api-isc/hmac.h-v9_16' into 'v9_16'

Stop leaking OpenSSL types and defines in the isc/hmac.h

See merge request isc-projects/bind9!3439

6 years agoStop leaking OpenSSL types and defines in the isc/hmac.h
Ondřej Surý [Thu, 12 Mar 2020 08:45:58 +0000 (09:45 +0100)] 
Stop leaking OpenSSL types and defines in the isc/hmac.h

The <isc/md.h> header directly included <openssl/hmac.h> header which
enforced all users of the libisc library to explicitly list the include
path to OpenSSL and link with -lcrypto.  By hiding the specific
implementation into the private namespace, we no longer enforce this.
In the long run, this might also allow us to switch cryptographic
library implementation without affecting the downstream users.

(cherry picked from commit 70100c664a06bef484326c651b9fd29ec453a5fc)

6 years agoMerge branch '1672-stop-leaking-external-headers-and-symbols-to-the-public-api-isc...
Ondřej Surý [Tue, 28 Apr 2020 14:28:24 +0000 (14:28 +0000)] 
Merge branch '1672-stop-leaking-external-headers-and-symbols-to-the-public-api-isc/safe.h-v9_16' into 'v9_16'

Stop leaking OpenSSL types and defines in the isc/safe.h

See merge request isc-projects/bind9!3438

6 years agoStop leaking OpenSSL types and defines in the isc/safe.h
Ondřej Surý [Wed, 11 Mar 2020 20:23:17 +0000 (21:23 +0100)] 
Stop leaking OpenSSL types and defines in the isc/safe.h

The two "functions" that isc/safe.h declared before were actually simple
defines to matching OpenSSL functions.  The downside of the approach was
enforcing all users of the libisc library to explicitly list the include
path to OpenSSL and link with -lcrypto.  By hiding the specific
implementation into the private namespace changing the defines into
simple functions, we no longer enforce this.  In the long run, this
might also allow us to switch cryptographic library implementation
without affecting the downstream users.

(cherry picked from commit ab827ab5bf7bdd65f0c672c43c3fdbe16a5e7d70)

6 years agoMerge branch '1672-stop-leaking-external-headers-and-symbols-to-the-public-api-isc...
Ondřej Surý [Tue, 28 Apr 2020 14:08:29 +0000 (14:08 +0000)] 
Merge branch '1672-stop-leaking-external-headers-and-symbols-to-the-public-api-isc/md.h-v9_16' into 'v9_16'

Stop leaking OpenSSL types and defines in the isc/md.h

See merge request isc-projects/bind9!3437

6 years agoStop leaking OpenSSL types and defines in the isc/md.h
Ondřej Surý [Thu, 12 Mar 2020 09:20:37 +0000 (10:20 +0100)] 
Stop leaking OpenSSL types and defines in the isc/md.h

The <isc/md.h> header directly included <openssl/evp.h> header which
enforced all users of the libisc library to explicitly list the include
path to OpenSSL and link with -lcrypto.  By hiding the specific
implementation into the private namespace, we no longer enforce this.
In the long run, this might also allow us to switch cryptographic
library implementation without affecting the downstream users.

While making the isc_md_type_t type opaque, the API using the data type
was changed to use the pointer to isc_md_type_t instead of using the
type directly.

(cherry picked from commit 4e114f8ed653700f411f29bf9e87392d8f4ff9db)

6 years agoMerge branch 'mnowak/1751-abi-check-does-not-know-which-source-is-older-newer-v9_16...
Michal Nowak [Thu, 23 Apr 2020 07:43:11 +0000 (07:43 +0000)] 
Merge branch 'mnowak/1751-abi-check-does-not-know-which-source-is-older-newer-v9_16' into 'v9_16'

[v9_16] Ensure proper comparison order in "abi-check" jobs

See merge request isc-projects/bind9!3420

6 years agoEnsure proper comparison order in "abi-check" jobs
Michal Nowak [Wed, 15 Apr 2020 09:06:22 +0000 (11:06 +0200)] 
Ensure proper comparison order in "abi-check" jobs

Right before the release API version (LIBINTERFACE, LIBREVISION, LIBAGE)
for older and newer libraries tends to be the same. Given that, commit
hash can't be the determining factor here, Unix time of the commit
should suit us better and is placed after the API version. The commit
hash is preserved as it's useful to see it in the actual report.

(cherry picked from commit 8e3e2836b0f5a52ff38fe4485a1fc8faa1857f03)

6 years agoMerge branch 'ondrej/make-merge_copyrights-ignore-hidden-files-v9_16' into 'v9_16'
Ondřej Surý [Thu, 23 Apr 2020 06:03:48 +0000 (06:03 +0000)] 
Merge branch 'ondrej/make-merge_copyrights-ignore-hidden-files-v9_16' into 'v9_16'

Make merge_copyrights ignore hidden files

See merge request isc-projects/bind9!3418

6 years agoMake merge_copyrights ignore hidden files
Ondřej Surý [Thu, 23 Apr 2020 05:57:29 +0000 (07:57 +0200)] 
Make merge_copyrights ignore hidden files

(cherry picked from commit 6d46082d82408845dcbb185f702d57d04d3ccf3c)

6 years agoMerge branch '1779-lock-rpzs-v9_16' into 'v9_16'
Evan Hunt [Wed, 22 Apr 2020 00:45:07 +0000 (00:45 +0000)] 
Merge branch '1779-lock-rpzs-v9_16' into 'v9_16'

acquire maintenance lock when running incremental RPZ updates

See merge request isc-projects/bind9!3412

6 years agoCHANGES
Evan Hunt [Tue, 21 Apr 2020 23:59:02 +0000 (16:59 -0700)] 
CHANGES

(cherry picked from commit 2cf3d4c7004fed109162625d57168636a9829464)

6 years agoacquire maintenance lock when running incremental RPZ updates
Evan Hunt [Tue, 21 Apr 2020 17:42:23 +0000 (10:42 -0700)] 
acquire maintenance lock when running incremental RPZ updates

this addresses a race that could occur during shutdown or when
reconfiguring to remove RPZ zones.

this change should ensure that the rpzs structure and the incremental
updates don't interfere with each other: rpzs->zones entries cannot
be set to NULL while an update quantum is running, and the
task should be destroyed and its queue purged so that no subsequent
quanta will run.

(cherry picked from commit 286e8cd7ea887e82e45b3a3cae43b2c97c8dce56)

6 years agoMerge branch 'ondrej/enable-quota-test-in-Kyuatest-v9_16' into 'v9_16'
Ondřej Surý [Tue, 21 Apr 2020 13:34:54 +0000 (13:34 +0000)] 
Merge branch 'ondrej/enable-quota-test-in-Kyuatest-v9_16' into 'v9_16'

Fix and enable quota_test in Kyuafile

See merge request isc-projects/bind9!3409

6 years agoFix detaching the extra quotas in the quota_test
Witold Kręcicki [Tue, 21 Apr 2020 11:33:42 +0000 (13:33 +0200)] 
Fix detaching the extra quotas in the quota_test

(cherry picked from commit 62f738ba48532c2720a335ab8434eeffddf0939c)

6 years agoEnable quota_test in Kyuafile
Ondřej Surý [Tue, 21 Apr 2020 10:30:11 +0000 (12:30 +0200)] 
Enable quota_test in Kyuafile

(cherry picked from commit 54defc8b78f782438167b42feee014e7fc5d5331)