Commit Graph
28539 Commits
Author SHA1 Message Date
Michal Nowak 85ba41d82e 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 313518dd3d)
2020-04-23 09:47:22 +02:00
Ondřej Surý 7d0c73b199 Merge branch 'ondrej/make-merge_copyrights-ignore-hidden-files-v9_11' into 'v9_11'
Make merge_copyrights ignore hidden files

See merge request isc-projects/bind9!3419
2020-04-23 06:05:05 +00:00
Ondřej Surý 2d3ac34b81 Make merge_copyrights ignore hidden files
(cherry picked from commit 6d46082d82)
2020-04-23 08:03:01 +02:00
Mark Andrews 13aba00fc9 Merge branch '1674-warn-bad-id-in-axfr-v9_11' into 'v9_11'
Warn about AXFR stream with inconsistent message id (v9_11)

See merge request isc-projects/bind9!3406
2020-04-21 00:21:53 +00:00
Mark Andrews 3a79f3629c Check that bad message id's are caught by named
(cherry picked from commit 06e53c9e14)
2020-04-21 09:37:47 +10:00
Mark Andrews 87a22c5705 Convert to using retry_quiet and nextpart
(cherry picked from commit 9937116f21)
2020-04-21 09:33:36 +10:00
Mark Andrews a05a6dedcb Warn about AXFR streams that are incompatible with BIND 9.18
(cherry picked from commit 998b2d5a57)
2020-04-21 09:31:24 +10:00
Michał Kępień bca7597aa5 Merge branch '1765-create-empty-release-notes-for-9-11-19' into 'v9_11'
create empty release notes for 9.11.19

See merge request isc-projects/bind9!3397
2020-04-17 06:35:24 +00:00
Mark AndrewsandMichał Kępień 69c78f16ad Create empty release notes for 9.11.19 2020-04-17 08:32:08 +02:00
Michał Kępień 3d32e3fb1f Merge branch 'mnowak/abi-tracker-helper-v9_11_18' into 'v9_11'
abi-check: Update BIND_BASELINE_VERSION to v9_11_18

See merge request isc-projects/bind9!3386
2020-04-16 21:23:40 +00:00
Michal NowakandMichał Kępień e15499258e abi-check: Update BIND_BASELINE_VERSION to v9_11_18 2020-04-16 21:22:42 +00:00
Michał Kępień d858f5e590 Merge branch 'v9_11_18-release' into 'v9_11'
Merge 9.11.18 release branch

See merge request isc-projects/bind9!3394
2020-04-16 21:11:31 +00:00
Michał Kępień 255be080cf Tweak library API versions 2020-04-16 23:10:26 +02:00
Tinderbox UserandMichał Kępień aaa281ec6b regen v9_11 2020-04-16 23:10:26 +02:00
Tinderbox UserandMichał Kępień 5dceb8d54d prep 9.11.18 2020-04-16 23:10:26 +02:00
Ondřej Surý cee435adb6 Merge branch '1755-tune-the-windows-build-so-we-can-use-wx-equivalent-of-werror-v9_11' into 'v9_11'
Resolve "Tune the Windows build, so we can use /WX (equivalent of -Werror)"

See merge request isc-projects/bind9!3380
2020-04-16 12:06:58 +00:00
Ondřej Surý 5e2d19911f _getcwd() on Windows needs direct.h header
The _getcwd() compatibility function on Microsoft CRT requires direct.h
header to pull a proper function prototype.

The (misleading) warning generated:

  bin\named\server.c(1074): warning C4047: '==': 'int' differs in levels of indirection from 'void *'
2020-04-16 13:13:00 +02:00
Ondřej Surý ebb6165839 Disable C4090 in libisccfg
The MSVC detects mismatch of const qualifiers in cfg_map_{first,next}clause
functions just in BIND 9.11.  As this is harmless in this particular
case, just disable the warning for these two functions.

The warnings reported:

  lib\isccfg\parser.c(2160): warning C4090: '=': different 'const' qualifiers
  lib\isccfg\parser.c(2184): warning C4090: '=': different 'const' qualifiers
2020-04-16 13:01:55 +02:00
Ondřej Surý 7f672ab47d Add default return value in win32 isc_thread_join() 2020-04-16 08:22:40 +02:00
Ondřej Surý e95433575d Don't escape spaces in CONFIGARGS, use double backslash with all whitespace
(cherry picked from commit 9b0e85cbd5)
2020-04-16 08:12:39 +02:00
Ondřej Surý 5fd1df8cfa Disable MSB8028 warning
All our MSVS Project files share the same intermediate directory.  We
know that this doesn't cause any problems, so we can just disable the
detection in the project files.

Example of the warning:

  warning MSB8028: The intermediate directory (.\Release\) contains files shared from another project (dnssectool.vcxproj).  This can lead to incorrect clean and rebuild behavior.

(cherry picked from commit b6c2012d93)
2020-04-16 08:12:39 +02:00
Ondřej Surý 8c00051ddb Remove the Windows build job dependency on autoreconf job
(cherry picked from commit 70318943fe)
2020-04-16 08:12:39 +02:00
Ondřej Surý 90108d479f Don't return from void function
(cherry picked from commit 948a23e6bb)
2020-04-16 08:12:39 +02:00
Ondřej Surý 1eb5a77baa Set WarningLevel to Level1 for Release, treat warnings as errors
Our vcxproj files set the WarningLevel to Level3, which is too verbose
for a code that needs to be portable.  That basically leads to ignoring
all the errors that MSVC produces.  This commits downgrades the
WarningLevel to Level1 and enables treating warnings as errors for
Release builds.  For the Debug builds the WarningLevel got upgraded to
Level4, and treating warnings as errors is explicitly disabled.

We should eventually make the code clean of all MSVC warnings, but it's
a long way to go for Level4, so it's more reasonable to start at Level1.

For reference[1], these are the warning levels as described by MSVC
documentation:

  * /W0 suppresses all warnings. It's equivalent to /w.
  * /W1 displays level 1 (severe) warnings. /W1 is the default setting
    in the command-line compiler.
  * /W2 displays level 1 and level 2 (significant) warnings.
  * /W3 displays level 1, level 2, and level 3 (production quality)
    warnings. /W3 is the default setting in the IDE.
  * /W4 displays level 1, level 2, and level 3 warnings, and all level 4
    (informational) warnings that aren't off by default. We recommend
    that you use this option to provide lint-like warnings. For a new
    project, it may be best to use /W4 in all compilations. This option
    helps ensure the fewest possible hard-to-find code defects.
  * /Wall displays all warnings displayed by /W4 and all other warnings
    that /W4 doesn't include — for example, warnings that are off by
    default.
  * /WX treats all compiler warnings as errors. For a new project, it
    may be best to use /WX in all compilations; resolving all warnings
    ensures the fewest possible hard-to-find code defects.

1. https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=vs-2019

(cherry picked from commit 789d253e3d)
2020-04-16 08:12:39 +02:00
Michał Kępień 385fd98bf1 Merge branch 'michal/fix-srcid-on-windows-v9_11' into 'v9_11'
[v9_11] Fix "srcid" on Windows

See merge request isc-projects/bind9!3373
2020-04-15 09:43:35 +00:00
Michał Kępień 2d73af4e2a Fix "srcid" on Windows
Windows BIND releases produced by GitLab CI are built from Git
repositories, not from release tarballs, which means the "srcid" file is
not present in the top source directory when MSBuild is invoked.  This
causes the Git commit hash for such builds to be set to "unset_id".
Enable win32utils/Configure to try determining the commit hash for a
build by invoking Git on the build host if the "srcid" file is not
present (which is what its Unix counterpart does).

(cherry picked from commit 05e13e7caf)
2020-04-15 11:39:55 +02:00
Ondřej Surý fd32f53a7b Merge branch 'ondrej/add-python-static-analysis-to-gitlab-ci-v9_11' into 'v9_11'
Add python static analysis to GitLab CI (v9.11)

See merge request isc-projects/bind9!3367
2020-04-15 07:48:07 +00:00
Ondřej Surý cea7ef64b8 Exclude contrib/queryperf/ from pylint check 2020-04-15 08:52:50 +02:00
Ondřej SurýandOndřej Surý 9301d69ebc Make the python code pylint and flake8 compliant
(cherry picked from commit 1e4ff9d485)
2020-04-15 07:46:35 +02:00
Ondřej SurýandOndřej Surý 120e6202c6 Add pylint and flake8 tests to GitLab CI
Our python code didn't adhere to any coding standard.  In this commit, we add
flame8 (https://pypi.org/project/flake8/), and pylint (https://www.pylint.org/).

There's couple of exceptions:

- ans.py scripts are not checked, nor fixed as part of this MR
- pylint's missing-*-docstring and duplicate-code checks have
  been disabled via .pylintrc

Both exceptions should be removed in due time.

(cherry picked from commit ee534592e3)
2020-04-15 07:44:39 +02:00
Michał Kępień 52666bbc09 Merge branch 'michal/misc-doc-fixes-v9_11' into 'v9_11'
[v9_11] Miscellaneous documentation fixes

See merge request isc-projects/bind9!3349
2020-04-09 05:50:14 +00:00
Michał Kępień 5d2950c9a3 Tweak release notes for BIND 9.11.18 2020-04-08 23:00:12 +02:00
Michał Kępień 01c2a876ea Tweak CHANGES for BIND 9.11.18 2020-04-08 23:00:12 +02:00
Ondřej Surý 1bb7b88c98 Merge branch 'ondrej/missing-changes-v9_11-v9_11' into 'v9_11'
Add missing CHANGES notes from v9_11 branch

See merge request isc-projects/bind9!3354
2020-04-08 12:49:30 +00:00
Ondřej Surý 7a866a11aa Add missing CHANGES notes from v9_11 branch
(cherry picked from commit 434929b53d)
2020-04-08 14:47:09 +02:00
Ondřej Surý 12597e7923 Merge branch 'ondrej/arch-ppc64le-v9_11-changes' into 'v9_11'
Add CHANGES note for !3295

See merge request isc-projects/bind9!3350
2020-04-08 12:18:20 +00:00
Ondřej Surý 10c9a30169 Add CHANGES note for !3295 2020-04-08 14:17:06 +02:00
Ondřej Surý eb750eaf72 Merge branch '1574-confidential-issue-rebinding-protection-fail-in-forwarding-mode-v9_11' into 'v9_11'
Resolve "DNS rebinding protection is ineffective when BIND is configured as a forwarding DNS server"

See merge request isc-projects/bind9!3345
2020-04-08 09:04:56 +00:00
Ondřej Surý fc2bead314 Add release notes 2020-04-08 09:47:08 +02:00
Ondřej Surý 11b8259846 Add CHANGES 2020-04-08 09:47:08 +02:00
Diego FronzaandOndřej Surý eace12fb70 Add test for the proposed fix
This test asserts that option "deny-answer-aliases" works correctly
when forwarding requests.

As a matter of example, the behavior expected for a forwarder BIND
instance, having an option such as deny-answer-aliases { "domain"; }
is that when forwarding a request for *.anything-but-domain, it is
expected that it will return SERVFAIL if any answer received has a CNAME
for "*.domain".
2020-04-08 09:21:03 +02:00
Diego FronzaandOndřej Surý 8beba5ee09 Fixed rebinding protection bug when using forwarder setups
BIND wasn't honoring option "deny-answer-aliases" when configured to
forward queries.

Before the fix it was possible for nameservers listed in "forwarders"
option to return CNAME answers pointing to unrelated domains of the
original query, which could be used as a vector for rebinding attacks.

The fix ensures that BIND apply filters even if configured as a forwarder
instance.
2020-04-08 09:21:03 +02:00
Michał Kępień 34786cb997 Merge branch 'mnowak/release-fixes-v9_11' into 'v9_11'
Fix a grammar mistake in entry 5357

See merge request isc-projects/bind9!3339
2020-04-08 07:17:13 +00:00
Michal Nowak 7637693be8 Fix a grammar mistake in entry 5357 2020-04-07 11:07:56 +02:00
Mark Andrews d7226ff55e Merge branch 'marka-empty-release-notes-v9_11' into 'v9_11'
add empty release notes for 9.11.18

See merge request isc-projects/bind9!3315
2020-03-31 07:21:06 +00:00
Mark Andrews d8ba069201 add empty release notes for 9.11.18
(cherry picked from commit 503e2dff64)
2020-03-31 17:16:13 +11:00
Mark Andrews c4b4a70d53 Merge branch '1678-bind-fails-to-build-with-mysql-support-against-mysql8-mysql-connector-8-v9_11' into 'v9_11'
Resolve "BIND fails to build with MYSQL support against mysql8/mysql-connector-8"

See merge request isc-projects/bind9!3306
2020-03-26 23:21:36 +00:00
Mark Andrews 779d4995f0 Typedef my_bool if missing.
ORACLE MySQL 8.0 has dropped the my_bool type, so we need to reinstate
it back when compiling with that version or higher.  MariaDB is still
keeping the my_bool type.  The numbering between the two (MariaDB 5.x
jumped to MariaDB 10.x) doesn't make the life of the developer easy.

(cherry picked from commit c6d5d5c88f)
2020-03-27 09:12:22 +11:00
Mark Andrews 95da2ffac1 remove unused variable
(cherry picked from commit 7af9883b48)
2020-03-27 09:07:17 +11:00
Ondřej Surý 6e9c035b05 Merge branch 'ondrej/scan-build-10-fixes-v9_11-2' into 'v9_11'
Fix 'Dead nested assignment' from scan-build-10

See merge request isc-projects/bind9!3296
2020-03-26 13:10:06 +00:00