]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
5 years agoUpdate ZONEMD to match RFC 8976
Mark Andrews [Wed, 28 Apr 2021 02:05:02 +0000 (12:05 +1000)] 
Update ZONEMD to match RFC 8976

* The location of the digest type field has changed to where the
  reserved field was.
* The reserved field is now called scheme and is where the digest
  type field was.
* Digest type 2 has been defined (SHA256).

(cherry picked from commit 8510ccaa547f9f8c75a3f2572f1ac1871f9e0787)

5 years agoMerge branch '2642-reduce-the-maximum-nsec3-iterations-that-can-be-configured-v9_11...
Mark Andrews [Fri, 30 Apr 2021 01:14:38 +0000 (01:14 +0000)] 
Merge branch '2642-reduce-the-maximum-nsec3-iterations-that-can-be-configured-v9_11' into 'v9_11'

Reduce nsec3 max iterations to 150 (9.11)

See merge request isc-projects/bind9!4967

5 years agoAdd Release Note for [GL #2642]
Mark Andrews [Thu, 29 Apr 2021 14:59:48 +0000 (16:59 +0200)] 
Add Release Note for [GL #2642]

(manually picked from commit ca07b8e414ff51d19af51dad1433dd2f8042020a)

5 years agoAdd CHANGES for [GL #2642]
Mark Andrews [Wed, 21 Apr 2021 01:43:47 +0000 (11:43 +1000)] 
Add CHANGES for [GL #2642]

5625.   [func]          Reduce the supported maximum number of iterations
                        that can be configured in an NSEC3 zones to 150.
                        [GL #2642]

(cherry picked from commit e04f06873f7d1e9ffd061f6f8f91df05818f0ba2)

5 years agoCheck that excessive iterations in logged by named when
Mark Andrews [Thu, 29 Apr 2021 14:54:17 +0000 (16:54 +0200)] 
Check that excessive iterations in logged by named when

loading an existing zone or transfering from the primary.

(manually picked from commit 46eb21c546eb36362bafcefa65ee8650fe2de795)

5 years agoCheck NSEC3 iterations with dnssec-signzone
Mark Andrews [Fri, 23 Apr 2021 01:46:31 +0000 (11:46 +1000)] 
Check NSEC3 iterations with dnssec-signzone

(cherry picked from commit 8ec16c378dbe4698de10174bb29e23c6814a406e)

5 years agoCheck that named rejects excessive iterations via UPDATE
Mark Andrews [Fri, 23 Apr 2021 00:28:06 +0000 (10:28 +1000)] 
Check that named rejects excessive iterations via UPDATE

(cherry picked from commit 4ce8437a6ef788fd6337f2c36de973eb4f7358fd)

5 years agonsupdate: reject attempts to add NSEC3PARAM with excessive iterations
Mark Andrews [Thu, 29 Apr 2021 14:23:48 +0000 (16:23 +0200)] 
nsupdate: reject attempts to add NSEC3PARAM with excessive iterations

(manually picked from commit 3fe75d9809902be38e49a409be3e688d78a2db2b)

5 years agoWarn if there is excessive NSEC3 iterations
Mark Andrews [Fri, 23 Apr 2021 04:23:00 +0000 (14:23 +1000)] 
Warn if there is excessive NSEC3 iterations

(cherry picked from commit c9f5f8a05909a47ef0f4a95ffee71a608f76a468)

5 years agoReduce nsec3 max iterations to 150
Mark Andrews [Thu, 29 Apr 2021 14:04:12 +0000 (16:04 +0200)] 
Reduce nsec3 max iterations to 150

(manually picked from commit 29126500d2f4e5564b3ee3d2b3112fd876dbbb79)

5 years agoMerge branch 'mnowak/configure-with-enable-dnstap-by-default-v9_11' into 'v9_11'
Michal Nowak [Thu, 29 Apr 2021 14:53:41 +0000 (14:53 +0000)] 
Merge branch 'mnowak/configure-with-enable-dnstap-by-default-v9_11' into 'v9_11'

[v9_11] Configure with --enable-dnstap by default

See merge request isc-projects/bind9!4966

5 years agoSuppress TSAN errors from libfstrm.so
Michal Nowak [Wed, 10 Feb 2021 13:21:08 +0000 (14:21 +0100)] 
Suppress TSAN errors from libfstrm.so

dnstap_test produces TSAN errors which originate in libfstrm.so. Unless
libfstrm is TSAN clean or a workaround is placed in libfstrm sources,
suppressing TSAN coming from libfstrm is necessary to test DNSTAP under
TSAN.

(cherry picked from commit c97c6fbfea2a58e95ef58c13b9aec07501496a9e)

5 years agoConfigure with --enable-dnstap by default
Michal Nowak [Tue, 26 Jan 2021 16:57:34 +0000 (17:57 +0100)] 
Configure with --enable-dnstap by default

All platforms but OpenBSD have dnstap dependencies readily in their
respective repositories, and dnstap thus can be tested there. Given that
majority of images have dnstap dependencies available, it seems fitting
to make dnstap enabled by default.

Also dnstap is disabled for TSAN jobs configured with --disable-atomic
as it's known to produce TSAN errors (#2664) and for the gcc:noatomics
job because it has threads disabled, which is a requirement for dnstap.

(cherry picked from commit deff0ae31742795ce59c0f561fac6461fac159a8)

5 years agoMerge branch 'v9_11_31-release' into 'v9_11'
Michał Kępień [Thu, 29 Apr 2021 10:08:00 +0000 (10:08 +0000)] 
Merge branch 'v9_11_31-release' into 'v9_11'

Merge 9.11.31 release branch

See merge request isc-projects/bind9!4956

5 years agoSet up release notes for BIND 9.11.32
Michał Kępień [Thu, 29 Apr 2021 09:56:03 +0000 (11:56 +0200)] 
Set up release notes for BIND 9.11.32

5 years agoBump BIND_BASELINE_VERSION for ABI checks
Michał Kępień [Thu, 29 Apr 2021 09:56:03 +0000 (11:56 +0200)] 
Bump BIND_BASELINE_VERSION for ABI checks

5 years agoMerge branch 'prep-release' into v9_11_31-release
Tinderbox User [Mon, 19 Apr 2021 14:10:40 +0000 (14:10 +0000)] 
Merge branch 'prep-release' into v9_11_31-release

5 years agoMerge branch 'michal/prepare-documentation-for-bind-9.11.31' into 'v9_11_31-release'
Michał Kępień [Mon, 19 Apr 2021 13:45:06 +0000 (13:45 +0000)] 
Merge branch 'michal/prepare-documentation-for-bind-9.11.31' into 'v9_11_31-release'

Prepare documentation for BIND 9.11.31

See merge request isc-private/bind9!289

5 years agoprep 9.11.31
Tinderbox User [Mon, 19 Apr 2021 14:10:09 +0000 (14:10 +0000)] 
prep 9.11.31

5 years agoMerge branch 'prep-release' into v9_11_30-release
Tinderbox User [Mon, 12 Apr 2021 13:44:41 +0000 (13:44 +0000)] 
Merge branch 'prep-release' into v9_11_30-release

5 years agoPrepare release notes for BIND 9.11.31
Michał Kępień [Mon, 19 Apr 2021 13:37:02 +0000 (15:37 +0200)] 
Prepare release notes for BIND 9.11.31

5 years agoMerge branch 'michal/prepare-documentation-for-bind-9.11.30' into 'security-v9_11'
Michał Kępień [Mon, 12 Apr 2021 13:10:15 +0000 (13:10 +0000)] 
Merge branch 'michal/prepare-documentation-for-bind-9.11.30' into 'security-v9_11'

Prepare documentation for BIND 9.11.30

See merge request isc-private/bind9!286

5 years agoprep 9.11.30
Tinderbox User [Mon, 12 Apr 2021 13:44:15 +0000 (13:44 +0000)] 
prep 9.11.30

5 years agoMerge branch '2604-confidential-issue-spnego-v9_11' into 'security-v9_11'
Michał Kępień [Mon, 12 Apr 2021 13:04:03 +0000 (13:04 +0000)] 
Merge branch '2604-confidential-issue-spnego-v9_11' into 'security-v9_11'

[CVE-2021-25216] [v9_11] Documentation for ZDI-CAN-13347: ISC BIND TKEY Query Integer Overflow Remote Code Execution Vulnerability

See merge request isc-private/bind9!284

5 years agoPrepare release notes for BIND 9.11.30
Michał Kępień [Mon, 12 Apr 2021 13:04:48 +0000 (15:04 +0200)] 
Prepare release notes for BIND 9.11.30

5 years agoMerge branch '2540-confidential-issue-existing-dname-v9_11' into 'security-v9_11'
Michał Kępień [Mon, 12 Apr 2021 12:57:16 +0000 (12:57 +0000)] 
Merge branch '2540-confidential-issue-existing-dname-v9_11' into 'security-v9_11'

[CVE-2021-25215] [v9_11] Properly answer queries for DNAME records that require the DNAME to be processed to resolve itself

See merge request isc-private/bind9!282

5 years agoAdd release note for [GL #2604]
Michał Kępień [Mon, 12 Apr 2021 13:00:03 +0000 (15:00 +0200)] 
Add release note for [GL #2604]

5 years agoTweak and reword release notes
Michał Kępień [Mon, 12 Apr 2021 13:04:48 +0000 (15:04 +0200)] 
Tweak and reword release notes

5 years agoMerge branch '2467-confidential-issue-ixfr-checks-v9_11' into 'security-v9_11'
Michał Kępień [Mon, 12 Apr 2021 12:53:45 +0000 (12:53 +0000)] 
Merge branch '2467-confidential-issue-ixfr-checks-v9_11' into 'security-v9_11'

[CVE-2021-25214] [v9_11] Prevent malformed incoming zone transfers from producing a zone without an SOA record

See merge request isc-private/bind9!263

5 years agoAdd Release Notes entry for [GL #2540]
Mark Andrews [Mon, 1 Mar 2021 05:08:21 +0000 (16:08 +1100)] 
Add Release Notes entry for [GL #2540]

5 years agoAdd CHANGES entry for [GL #2604]
Michał Kępień [Mon, 12 Apr 2021 13:00:03 +0000 (15:00 +0200)] 
Add CHANGES entry for [GL #2604]

5 years agoTweak and reword recent CHANGES entries
Michał Kępień [Mon, 12 Apr 2021 13:04:48 +0000 (15:04 +0200)] 
Tweak and reword recent CHANGES entries

5 years agoAdd release note for [GL #2467]
Mark Andrews [Wed, 3 Feb 2021 00:21:16 +0000 (11:21 +1100)] 
Add release note for [GL #2467]

5 years agoAdd CHANGES entry for [GL #2540]
Mark Andrews [Mon, 1 Mar 2021 05:09:39 +0000 (16:09 +1100)] 
Add CHANGES entry for [GL #2540]

5 years agoAdd CHANGES entry for [GL #2467]
Mark Andrews [Wed, 3 Feb 2021 00:19:43 +0000 (11:19 +1100)] 
Add CHANGES entry for [GL #2467]

5 years agoHandle DNAME lookup via itself
Mark Andrews [Mon, 1 Mar 2021 05:46:07 +0000 (16:46 +1100)] 
Handle DNAME lookup via itself

When answering a query, named should never attempt to add the same RRset
to the ANSWER section more than once.  However, such a situation may
arise when chasing DNAME records: one of the DNAME records placed in the
ANSWER section may turn out to be the final answer to a client query,
but there is no way to know that in advance.  Tweak the relevant INSIST
assertion in query_find() so that it handles this case properly.  The
rdataset is freed later anyway, so there is no need to clean it up
immediately.

5 years agoUnload a zone if a transfer breaks its SOA record
Mark Andrews [Thu, 25 Feb 2021 03:11:05 +0000 (14:11 +1100)] 
Unload a zone if a transfer breaks its SOA record

If a zone transfer results in a zone not having any NS records, named
stops serving it because such a zone is broken.  Do the same if an
incoming zone transfer results in a zone lacking an SOA record at the
apex or containing more than one SOA record.

5 years agoAddress inconsistencies in checking added RRsets
Mark Andrews [Fri, 12 Feb 2021 03:51:28 +0000 (14:51 +1100)] 
Address inconsistencies in checking added RRsets

loading_addrdataset() rejects SOA RRsets which are not at top of zone.
addrdataset() should similarly reject such RRsets.

5 years agoCheck SOA owner names in zone transfers
Mark Andrews [Wed, 3 Feb 2021 00:10:20 +0000 (11:10 +1100)] 
Check SOA owner names in zone transfers

An IXFR containing SOA records with owner names different than the
transferred zone's origin can result in named serving a version of that
zone without an SOA record at the apex.  This causes a RUNTIME_CHECK
assertion failure the next time such a zone is refreshed.  Fix by
immediately rejecting a zone transfer (either an incremental or
non-incremental one) upon detecting an SOA record not placed at the apex
of the transferred zone.

5 years agoMerge branch '2634-test-tkey-gssapi-credential-conditionally-v9_11' into 'v9_11'
Michał Kępień [Mon, 26 Apr 2021 08:23:52 +0000 (08:23 +0000)] 
Merge branch '2634-test-tkey-gssapi-credential-conditionally-v9_11' into 'v9_11'

[v9_11] Test "tkey-gssapi-credential" conditionally

See merge request isc-projects/bind9!4941

5 years agoTest "--without-gssapi" in GitLab CI
Michał Kępień [Mon, 26 Apr 2021 05:16:38 +0000 (07:16 +0200)] 
Test "--without-gssapi" in GitLab CI

GitLab CI pipelines do not currently include a Linux job that would have
GSSAPI support disabled.  Add the "--without-gssapi" option to the
./configure invocation on Debian 9 to address that deficiency and also
to continuously test that build-time switch.

(cherry picked from commit a3957af864eeebd925ee18c10d305024d4d99fc4)

5 years agoTest "tkey-gssapi-credential" conditionally
Michał Kępień [Mon, 26 Apr 2021 05:16:38 +0000 (07:16 +0200)] 
Test "tkey-gssapi-credential" conditionally

If "tkey-gssapi-credential" is set in the configuration and GSSAPI
support is not available, named will refuse to start.  As the test
system framework does not support starting named instances
conditionally, ensure that "tkey-gssapi-credential" is only present in
named.conf if GSSAPI support is available.

(cherry picked from commit 6feac68b5050e445b2e46b364ab7a0490e57ae52)

5 years agoMerge branch '2634-test-tkey-gssapi-credential-v9_11' into 'v9_11'
Petr Špaček [Fri, 23 Apr 2021 10:33:08 +0000 (10:33 +0000)] 
Merge branch '2634-test-tkey-gssapi-credential-v9_11' into 'v9_11'

Add tests for the "tkey-gssapi-credential" option

See merge request isc-projects/bind9!4934

5 years agoAdd tests for the "tkey-gssapi-credential" option
Petr Špaček [Fri, 16 Apr 2021 16:05:43 +0000 (18:05 +0200)] 
Add tests for the "tkey-gssapi-credential" option

Four named instances in the "nsupdate" system test have GSS-TSIG support
enabled.  All of them currently use "tkey-gssapi-keytab".  Configure two
of them with "tkey-gssapi-credential" to test that option.

As "tkey-gssapi-keytab" and "tkey-gssapi-credential" both provide the
same functionality, no test modifications are required.  The difference
between the two options is that the value of "tkey-gssapi-keytab" is an
explicit path to the keytab file to acquire credentials from, while the
value of "tkey-gssapi-credential" is the name of the principal whose
credentials should be used; those credentials are looked up in the
keytab file expected by the Kerberos library, i.e. /etc/krb5.keytab by
default.  The path to the default keytab file can be overridden using by
setting the KRB5_KTNAME environment variable.  Utilize that variable to
use existing keytab files with the "tkey-gssapi-credential" option.

The KRB5_KTNAME environment variable should not interfere with the
"tkey-gssapi-keytab" option.  Nevertheless, rename one of the keytab
files used with "tkey-gssapi-keytab" to something else than the contents
of the KRB5_KTNAME environment variable in order to make sure that both
"tkey-gssapi-keytab" and "tkey-gssapi-credential" are actually tested.

(cherry picked from commit 1746d2e84acee77ec88bf3f61eaa8f11cc1039a5)

5 years agoMerge branch '2634-fix-handling-undefined-GSS_SPNEGO_MECHANISM-macro-v9_11' into...
Michał Kępień [Fri, 16 Apr 2021 13:00:08 +0000 (13:00 +0000)] 
Merge branch '2634-fix-handling-undefined-GSS_SPNEGO_MECHANISM-macro-v9_11' into 'v9_11'

[v9_11] Fix handling undefined GSS_SPNEGO_MECHANISM macro

See merge request isc-projects/bind9!4903

5 years agoAdd CHANGES entry
Michał Kępień [Fri, 16 Apr 2021 12:40:06 +0000 (14:40 +0200)] 
Add CHANGES entry

(cherry picked from commit 381202629e2662130d522c6917fce676f516fd22)

5 years agoFix handling undefined GSS_SPNEGO_MECHANISM macro
Michał Kępień [Fri, 16 Apr 2021 12:40:06 +0000 (14:40 +0200)] 
Fix handling undefined GSS_SPNEGO_MECHANISM macro

BIND 9 attempts to look up GSSAPI OIDs for the Kerberos 5 and SPNEGO
mechanisms in the relevant header files provided by the Kerberos/GSSAPI
library used.  Due to the differences between various Kerberos/GSSAPI
implementations, if any of the expected preprocessor macros
(GSS_KRB5_MECHANISM, GSS_SPNEGO_MECHANISM) is not defined in the header
files provided by the library used, the code in lib/dns/gssapictx.c
defines its own version of each missing macro, so that BIND 9 can
attempt to use the relevant security mechanisms anyway.

Commit 7f08c756aa54d10a71bdf8242479ffeb82e52396, which contains a
partial backport of the changes introduced in commit
978c7b2e89aa37a7ddfe2f6b6ba12ce73dd04528, left a block of code in the
lib/dns/include/dst/gssapi.h header which defines the
GSS_SPNEGO_MECHANISM preprocessor macro to NULL if it is not defined by
any header file provided by the Kerberos/GSSAPI library used.  This
causes the gss_add_oid_set_member() call in the mech_oid_set_create()
helper function to always return an error.  This in turn causes the
dst_gssapi_acquirecred() function to also always return an error, which
ultimately prevents any named instance whose configuration includes the
"tkey-gssapi-credential" option from starting.

Remove the offending conditional definition of the GSS_SPNEGO_MECHANISM
preprocessor macro from lib/dns/include/dst/gssapi.h, so that a proper
GSSAPI OID is assigned to that macro in lib/dns/gssapictx.c when the
Kerberos/GSSAPI library used does not define it.

(cherry picked from commit 648ef3a2b4f8bc7928bf976fcba3b159ac5768e5)

5 years agoRoll back unnecessary libtool updates
Michał Kępień [Fri, 16 Apr 2021 12:40:06 +0000 (14:40 +0200)] 
Roll back unnecessary libtool updates

Commit 7f08c756aa54d10a71bdf8242479ffeb82e52396 inadvertently included
libtool updates which were unrelated to the removal of custom SPNEGO
code.  Roll these updates back to avoid confusion.

(cherry picked from commit 87f1db2ce4c8a0b070fd543bac3e0d41a5335891)

5 years agoMerge branch '2597-make-calling-generic-rdata-methods-consistent-v9_11' into 'v9_11'
Mark Andrews [Tue, 13 Apr 2021 02:11:05 +0000 (02:11 +0000)] 
Merge branch '2597-make-calling-generic-rdata-methods-consistent-v9_11' into 'v9_11'

Make calling generic rdata methods consistent

See merge request isc-projects/bind9!4844

5 years agoMake calling generic rdata methods consistent
Mark Andrews [Fri, 17 Jul 2020 02:23:19 +0000 (12:23 +1000)] 
Make calling generic rdata methods consistent

add matching macros to pass arguments from called methods
to generic methods.  This will reduce the amount of work
required when extending methods.

Also cleanup unnecessary UNUSED declarations.

(cherry picked from commit a88d3963e2b0620eb27b19a2024feb4251f4703a)

5 years agoMerge branch '2620-free-resources-when-gss_accept_sec_context-fails-v9_11' into ...
Michał Kępień [Thu, 8 Apr 2021 09:26:56 +0000 (09:26 +0000)] 
Merge branch '2620-free-resources-when-gss_accept_sec_context-fails-v9_11' into 'v9_11'

[v9_11] Free resources when gss_accept_sec_context() fails

See merge request isc-projects/bind9!4876

5 years agoAdd CHANGES entry
Michał Kępień [Thu, 8 Apr 2021 08:33:44 +0000 (10:33 +0200)] 
Add CHANGES entry

(cherry picked from commit 7eb87270a4362968f41dfc8febea95c1e2003c8c)

5 years agoFree resources when gss_accept_sec_context() fails
Michał Kępień [Thu, 8 Apr 2021 08:33:44 +0000 (10:33 +0200)] 
Free resources when gss_accept_sec_context() fails

Even if a call to gss_accept_sec_context() fails, it might still cause a
GSS-API response token to be allocated and left for the caller to
release.  Make sure the token is released before an early return from
dst_gssapi_acceptctx().

(cherry picked from commit d954e152d9f2901118b1fe36d3931ec244317fab)

5 years agoMerge branch 'michal/fix-triggering-rules-for-the-tarball-create-job-v9_11' into...
Michał Kępień [Wed, 7 Apr 2021 20:37:25 +0000 (20:37 +0000)] 
Merge branch 'michal/fix-triggering-rules-for-the-tarball-create-job-v9_11' into 'v9_11'

[v9_11] Fix triggering rules for the "tarball-create" job

See merge request isc-projects/bind9!4872

5 years agoFix triggering rules for the "tarball-create" job
Michał Kępień [Wed, 7 Apr 2021 20:31:09 +0000 (22:31 +0200)] 
Fix triggering rules for the "tarball-create" job

Commit de35d321f03799c6ca723121d97af6ff82611ef4 (a backport of commit
4d5d3b75da12a6e4c1180bc003d88badf52cb514) did not account for the fact
that the "tarball-create" GitLab CI job is not created for manually
triggered pipelines.  This prevents manual pipeline creation from
succeeding as it causes the "gcc:tarball" job to have unsatisfied
dependencies.  Make sure the "tarball-create" job is created for
manually triggered pipelines to allow such pipelines to be started
again.

(cherry picked from commit 233294d7503b126fbad7004bd97aa271d41ed712)

5 years agoMerge branch '2582-threadsanitizer-data-race-lib-dns-zone-c-10272-7-in-zone_maintenan...
Diego dos Santos Fronza [Wed, 7 Apr 2021 14:47:29 +0000 (14:47 +0000)] 
Merge branch '2582-threadsanitizer-data-race-lib-dns-zone-c-10272-7-in-zone_maintenance-v9_11' into 'v9_11'

Resolve TSAN data race in zone_maintenance

See merge request isc-projects/bind9!4868

5 years agoResolve TSAN data race in zone_maintenance
Diego Fronza [Wed, 7 Apr 2021 13:48:12 +0000 (10:48 -0300)] 
Resolve TSAN data race in zone_maintenance

Fix race between zone_maintenance and dns_zone_notifyreceive functions,
zone_maintenance was attempting to read a zone flag calling
DNS_ZONE_FLAG(zone, flag) while dns_zone_notifyreceive was updating
a flag in the same zone calling DNS_ZONE_SETFLAG(zone, ...).

The code reading the flag in zone_maintenance was not protected by the
zone's lock, to avoid a race the zone's lock is now being acquired
before an attempt to read the zone flag is made.

5 years agoMerge branch '2607-remove-custom-spnego-v9_11' into 'v9_11'
Ondřej Surý [Thu, 1 Apr 2021 14:14:58 +0000 (14:14 +0000)] 
Merge branch '2607-remove-custom-spnego-v9_11' into 'v9_11'

Remove custom ISC SPNEGO implementation (v9.11)

See merge request isc-projects/bind9!4857

5 years agoAdd CHANGES and release note for GL #2607
Mark Andrews [Wed, 20 Jan 2021 04:16:46 +0000 (15:16 +1100)] 
Add CHANGES and release note for GL #2607

5 years agoMove the dummy shims to single ifndef GSSAPI block
Ondřej Surý [Wed, 31 Mar 2021 12:01:48 +0000 (14:01 +0200)] 
Move the dummy shims to single ifndef GSSAPI block

Previously, every function had it's own #ifdef GSSAPI #else #endif block
that defined shim function in case GSSAPI was not being used.  Now the
dummy shim functions have be split out into a single #else #endif block
at the end of the file.

This makes the gssapictx.c similar to 9.17.x code, making the backports
and reviews easier.

5 years agoAdd Heimdal compatibility support
Mark Andrews [Wed, 20 Jan 2021 23:59:14 +0000 (10:59 +1100)] 
Add Heimdal compatibility support

The Heimdal Kerberos library handles the OID sets in a different manner.
Unify the handling of the OID sets between MIT and Heimdal
implementations by dynamically creating the OID sets instead of using
static predefined set.  This is how upstream recommends to handle the
OID sets.

5 years agoRequest krb5 CFLAGS and LIBS from $KRB5_CONFIG
Mark Andrews [Wed, 20 Jan 2021 23:23:32 +0000 (10:23 +1100)] 
Request krb5 CFLAGS and LIBS from $KRB5_CONFIG

The GSSAPI now needs both gssapi and krb5 libraries, so we need to
request both CFLAGS and LIBS from the configure script.

5 years agoRemove custom ISC SPNEGO implementation
Mark Andrews [Wed, 20 Jan 2021 02:55:43 +0000 (13:55 +1100)] 
Remove custom ISC SPNEGO implementation

The custom ISC SPNEGO mechanism implementation is no longer needed on
the basis that all major Kerberos 5/GSSAPI (mit-krb5, heimdal and
Windows) implementations support SPNEGO mechanism since 2006.

This commit removes the custom ISC SPNEGO implementation, and removes
the option from both autoconf and win32 Configure script.  Unknown
options are being ignored, so this doesn't require any special handling.

5 years agoHandle expected signals in tsiggss authsock.pl script
Mark Andrews [Wed, 20 Jan 2021 02:53:50 +0000 (13:53 +1100)] 
Handle expected signals in tsiggss authsock.pl script

When the authsock.pl script would be terminated with a signal,
it would leave the pidfile around.  This commit adds a signal
handler that cleanups the pidfile on signals that are expected.

5 years agoMerge branch 'mnowak/web-run-gcc-tarball-ci-job-v9_11' into 'v9_11'
Michal Nowak [Wed, 31 Mar 2021 15:04:22 +0000 (15:04 +0000)] 
Merge branch 'mnowak/web-run-gcc-tarball-ci-job-v9_11' into 'v9_11'

[v9_11] Run gcc:tarball CI job in web-triggered pipelines

See merge request isc-projects/bind9!4853

5 years agoRun gcc:tarball CI job in web-triggered pipelines
Michal Nowak [Wed, 31 Mar 2021 08:20:35 +0000 (10:20 +0200)] 
Run gcc:tarball CI job in web-triggered pipelines

The gcc:tarball CI job may identify problems with tarballs created by
"make dist" of the tarball-create CI job. Enabling the gcc:tarball CI
job in web-triggered pipelines provides developers with a test vector.

(cherry picked from commit 4d5d3b75da12a6e4c1180bc003d88badf52cb514)

5 years agoMerge branch 'v9_11_29-release' into 'v9_11'
Michal Nowak [Fri, 19 Mar 2021 09:38:22 +0000 (09:38 +0000)] 
Merge branch 'v9_11_29-release' into 'v9_11'

Merge 9.11.29 release branch

See merge request isc-projects/bind9!4822

5 years agoSet up release notes for BIND 9.11.30
Michal Nowak [Thu, 18 Mar 2021 17:12:49 +0000 (18:12 +0100)] 
Set up release notes for BIND 9.11.30

5 years agoBump BIND_BASELINE_VERSION for ABI checks
Michal Nowak [Thu, 18 Mar 2021 17:08:28 +0000 (18:08 +0100)] 
Bump BIND_BASELINE_VERSION for ABI checks

5 years agoMerge branch 'prep-release' into v9_11_29-release v9.11.29
Tinderbox User [Tue, 9 Mar 2021 12:49:28 +0000 (12:49 +0000)] 
Merge branch 'prep-release' into v9_11_29-release

5 years agoprep 9.11.29
Tinderbox User [Tue, 9 Mar 2021 12:49:04 +0000 (12:49 +0000)] 
prep 9.11.29

5 years agoMerge branch 'mnowak/prepare-documentation-for-bind-9.11.29' into 'v9_11_29-release'
Michal Nowak [Tue, 9 Mar 2021 09:18:13 +0000 (09:18 +0000)] 
Merge branch 'mnowak/prepare-documentation-for-bind-9.11.29' into 'v9_11_29-release'

Prepare documentation for BIND 9.11.29

See merge request isc-private/bind9!268

5 years agoPrepare release notes for BIND 9.11.29
Michal Nowak [Mon, 8 Mar 2021 11:57:11 +0000 (12:57 +0100)] 
Prepare release notes for BIND 9.11.29

5 years agoTweak and reword release notes
Michal Nowak [Mon, 8 Mar 2021 11:56:12 +0000 (12:56 +0100)] 
Tweak and reword release notes

5 years agoTweak and reword recent CHANGES entries
Michal Nowak [Mon, 8 Mar 2021 11:52:02 +0000 (12:52 +0100)] 
Tweak and reword recent CHANGES entries

5 years agoMerge branch '2238-fix-back-port-issues-missing-checks' into 'v9_11'
Ondřej Surý [Thu, 25 Feb 2021 08:16:15 +0000 (08:16 +0000)] 
Merge branch '2238-fix-back-port-issues-missing-checks' into 'v9_11'

Resolve "Fix back port issues:  missing checks."

See merge request isc-projects/bind9!4637

5 years agoAddress unchecked returns leading to NULL pointer dereferences
Mark Andrews [Thu, 25 Feb 2021 00:44:28 +0000 (11:44 +1100)] 
Address unchecked returns leading to NULL pointer dereferences

on out of memory conditions.

5 years agoMerge branch '2446-query-c-5430-16-runtime-error-v9_11' into 'v9_11'
Michal Nowak [Tue, 23 Feb 2021 16:48:54 +0000 (16:48 +0000)] 
Merge branch '2446-query-c-5430-16-runtime-error-v9_11' into 'v9_11'

[v9_11] Initialize checknames field in dns_view_create()

See merge request isc-projects/bind9!4736

5 years agoInitialize checknames field in dns_view_create()
Michal Nowak [Mon, 22 Feb 2021 12:50:11 +0000 (13:50 +0100)] 
Initialize checknames field in dns_view_create()

The 'checknames' field wasn't initialized in dns_view_create(), but it
should otherwise AddressSanitizer identifies the following runtime error
in query_test.c.

    runtime error: load of value 190, which is not a valid value for type '_Bool'

(cherry picked from commit 0c6fa16477075ef0bcac46c9952ac771740e56d7)

5 years agoMerge branch 'mnowak/alpine-3.13-v9_11' into 'v9_11'
Michal Nowak [Tue, 23 Feb 2021 15:05:17 +0000 (15:05 +0000)] 
Merge branch 'mnowak/alpine-3.13-v9_11' into 'v9_11'

[v9_11] Add Alpine Linux 3.13

See merge request isc-projects/bind9!4733

5 years agoAdd Alpine Linux 3.13
Michal Nowak [Mon, 22 Feb 2021 10:59:47 +0000 (11:59 +0100)] 
Add Alpine Linux 3.13

(cherry picked from commit 909c85f7a9351b334f27b45b7dc5fb128d6f5604)

5 years agoMerge branch 'mnowak/pairwise-pict-keep-stderr-v9_11' into 'v9_11'
Michal Nowak [Tue, 23 Feb 2021 14:32:35 +0000 (14:32 +0000)] 
Merge branch 'mnowak/pairwise-pict-keep-stderr-v9_11' into 'v9_11'

[v9_11] Do not remove stderr from pict output

See merge request isc-projects/bind9!4731

5 years agoDo not remove stderr from pict output
Michal Nowak [Tue, 23 Feb 2021 10:30:08 +0000 (11:30 +0100)] 
Do not remove stderr from pict output

Removing stderr from the pict tool serves no purpose and drops valuable
information, we might use when debugging failed pairwise CI job, such
as:

    Input Error: A parameter names must be unique

(cherry picked from commit 079debaa103979f56154f33ac5b6ea873e7b3d2a)

5 years agoMerge branch '2499-a-loc-record-with-a-invalid-direction-field-triggers-an-insist...
Mark Andrews [Fri, 19 Feb 2021 01:07:26 +0000 (01:07 +0000)] 
Merge branch '2499-a-loc-record-with-a-invalid-direction-field-triggers-an-insist-v9_11' into 'v9_11'

Resolve "A LOC record with a invalid direction field triggers an INSIST"

See merge request isc-projects/bind9!4712

5 years agoAdd release note for [GL #2499]
Mark Andrews [Thu, 18 Feb 2021 06:02:27 +0000 (17:02 +1100)] 
Add release note for [GL #2499]

(cherry picked from commit 3d340ecfd2f4a703608a001c6821949b534c9312)

5 years agoAdd CHANGES for [GL #2499]
Mark Andrews [Thu, 18 Feb 2021 05:59:57 +0000 (16:59 +1100)] 
Add CHANGES for [GL #2499]

(cherry picked from commit 6f47e0956ccb9f02e40875b864c780565a816160)

5 years agoCorrectly detect when get_direction failed
Mark Andrews [Thu, 18 Feb 2021 05:57:28 +0000 (16:57 +1100)] 
Correctly detect when get_direction failed

(cherry picked from commit 009358d77d68ea6ad90702a951483beb11717c00)

5 years agoTest a LOC record with an invalid direction field
Mark Andrews [Thu, 18 Feb 2021 05:56:51 +0000 (16:56 +1100)] 
Test a LOC record with an invalid direction field

(cherry picked from commit 07902d9f9d2d7eac5aa722237f863ac6745bb1d8)

5 years agoMerge branch 'mnowak/make-kyua-report-html-less-verbose-v9_11' into 'v9_11'
Michal Nowak [Thu, 18 Feb 2021 14:58:05 +0000 (14:58 +0000)] 
Merge branch 'mnowak/make-kyua-report-html-less-verbose-v9_11' into 'v9_11'

[v9_11] Make "kyua report-html" less verbose on stdout

See merge request isc-projects/bind9!4708

5 years agoMake "kyua report-html" less verbose on stdout
Michal Nowak [Tue, 16 Feb 2021 15:43:13 +0000 (16:43 +0100)] 
Make "kyua report-html" less verbose on stdout

"kyua report-html" command in CI generates more than two pages of output
to stdout, which is nothing but which HTML pages Kyua generated, e.g.:

  Generating kyua_html/context.html
  Generating kyua_html/lib_dns_tests_acl_test_main.html
  ...
  Generating kyua_html/lib_ns_tests_query_test_main.html
  Generating kyua_html/report.css
  Generating kyua_html/index.html

This is seldomly useful and requires the user to scroll three pages
upwards to get to unit test results.

(cherry picked from commit 74fa196286e7a052cadffc85b885185bf24d6d42)

5 years agoMerge branch 'mnowak/system-test-check-for-file-not-removed-v9_11' into 'v9_11'
Michal Nowak [Thu, 18 Feb 2021 10:14:08 +0000 (10:14 +0000)] 
Merge branch 'mnowak/system-test-check-for-file-not-removed-v9_11' into 'v9_11'

[v9_11] Check for "file not removed" in system test output

See merge request isc-projects/bind9!4705

5 years agoPrevent Git to expand $systest
Michal Nowak [Tue, 16 Feb 2021 10:33:58 +0000 (11:33 +0100)] 
Prevent Git to expand $systest

CentOS 8 "git status" unexpectedly expands search directory "tsig" to
also search in the "tsiggss" directory, thus incorrectly identifying
files as "not removed" in the "tsig" directory:

$ git status -su --ignored tsig
$ touch tsiggss/ns1/{named.run,named.memstats}
$ git status -su --ignored tsig
!! tsiggss/ns1/named.memstats
!! tsiggss/ns1/named.run

(cherry picked from commit f310b7525031e2017d4d793e9db5cb5a83392851)

5 years agoClean omitted files from system tests
Michal Nowak [Mon, 15 Feb 2021 11:48:54 +0000 (12:48 +0100)] 
Clean omitted files from system tests

Any CI job:
- I:dns64:file ns1/Ksigned.+005+*.key not removed
- I:dns64:file ns1/Ksigned.ns1/Ksigned.+005+*.private
- I:dns64:file ns1/Ksigned.ns1/Ksigned.+005+*.key
- I:dns64:file ns1/Ksigned.ns1/Ksigned.+005+*.private
- I:dns64:file ns1/Ksigned.ns1/dsset-signed.
- I:dns64:file ns1/Ksigned.ns1/named.conf
- I:dns64:file ns1/Ksigned.ns1/signed.db
- I:dns64:file ns1/Ksigned.ns1/signed.db.signed
- I:dns64:file ns1/Ksigned.ns2/named.conf
- I:ixfr:file ns5/named.run.prev not removed
- I:legacy:file ns1/named_dump.db.test20 not removed

(cherry picked from commit 14a104d1211611aa0d5465bd339a7d4c711acf33)

5 years agoCheck for "file not removed" in system test output
Michal Nowak [Mon, 15 Feb 2021 10:59:33 +0000 (11:59 +0100)] 
Check for "file not removed" in system test output

Run this check only when in Git repository, because run.sh produces the
"file not removed" warnings only when in Git repository.

(cherry picked from commit 4a2778abdff4b91bde3cdc5cf28e22a77494b206)

5 years agoAdd system test name to "file not removed" info
Michal Nowak [Mon, 15 Feb 2021 11:03:52 +0000 (12:03 +0100)] 
Add system test name to "file not removed" info

(cherry picked from commit 10bf725ee2500d5469ead305b6684b150267ff4d)

5 years agoMerge branch 'michal/add-doc-arm-notes-9.11.29.xml-to-util-copyrights' into 'v9_11'
Michał Kępień [Wed, 17 Feb 2021 22:05:23 +0000 (22:05 +0000)] 
Merge branch 'michal/add-doc-arm-notes-9.11.29.xml-to-util-copyrights' into 'v9_11'

Add doc/arm/notes-9.11.29.xml to util/copyrights

See merge request isc-projects/bind9!4702

5 years agoAdd doc/arm/notes-9.11.29.xml to util/copyrights
Michał Kępień [Wed, 17 Feb 2021 22:01:29 +0000 (23:01 +0100)] 
Add doc/arm/notes-9.11.29.xml to util/copyrights

Commit 81446d61c3554c07f41c3b502266d5dfa2e77fcf did not update
util/copyrights as it should have.  Add the missing line to prevent the
"misc" GitLab CI job from failing.

5 years agoMerge branch 'v9_11_28-release' into 'v9_11'
Michał Kępień [Wed, 17 Feb 2021 21:55:48 +0000 (21:55 +0000)] 
Merge branch 'v9_11_28-release' into 'v9_11'

Merge 9.11.28 release branch

See merge request isc-projects/bind9!4701

5 years agoSet up release notes for BIND 9.11.29
Michał Kępień [Wed, 17 Feb 2021 21:51:34 +0000 (22:51 +0100)] 
Set up release notes for BIND 9.11.29

5 years agoBump BIND_BASELINE_VERSION for ABI checks
Michał Kępień [Wed, 17 Feb 2021 21:51:34 +0000 (22:51 +0100)] 
Bump BIND_BASELINE_VERSION for ABI checks