Commit Graph
28560 Commits
Author SHA1 Message Date
Evan Hunt 410ee752dd 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 7e73660206)
2020-05-01 17:47:44 -07:00
Mark Andrews dfb33fc93d Merge branch '1695-addzone-system-tests-failing-in-mac-os-x-v9_11' into 'v9_11'
Resolve "addzone system tests failing in Mac OS X"

See merge request isc-projects/bind9!3470
2020-05-01 01:40:21 +00:00
Mark Andrews 9e515cd7bb Add CHANGES entry
(cherry picked from commit d63479a48d)
2020-05-01 10:10:09 +10:00
Mark Andrews 48f7566b61 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 a66c6fc883)
2020-05-01 10:10:09 +10:00
Mark Andrews 5af8a088f4 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 060b56dc70)
2020-05-01 09:18:07 +10:00
Mark Andrews 0c21ddcac6 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 5ab9b5b1e6)
2020-05-01 09:18:04 +10:00
Mark Andrews 453ec7c3b5 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 b02081d423)
2020-05-01 09:15:11 +10:00
Mark Andrews 2951ff086d Merge branch '1806-system-and-unit-clang-asan-have-incorrect-needs-v9_11' into 'v9_11'
Incorrect job in needs, gcc:asan -> clang:asan

See merge request isc-projects/bind9!3464
2020-04-30 08:50:52 +00:00
Mark Andrews b5766e0c64 Incorrect job in needs, gcc:asan -> clang:asan
(cherry picked from commit 0adf9562fb)
2020-04-30 18:50:08 +10:00
Mark Andrews f4ec4ce9f8 Merge branch '1804-util-parse_tsan-py-is-not-pylint-clean-v9_11' into 'v9_11'
pylint cleanups

See merge request isc-projects/bind9!3461
2020-04-30 08:44:33 +00:00
Mark Andrews bc7034bcc0 pylint cleanups
(cherry picked from commit d7618f6954)
2020-04-30 17:38:04 +10:00
Ondřej Surý b9492e6846 Merge branch '1764-build-9-16-2-release-make-depend-fatal-error-lib-dns-dnstap-pb-c-h-no-such-file-or-directory-v9_11' into 'v9_11'
check that 'make depend' does not fail

See merge request isc-projects/bind9!3449
2020-04-29 15:50:24 +00:00
Mark AndrewsandOndřej Surý 7252ffa7d8 check that 'make depend' does not fail
(cherry picked from commit 72143febe7)
2020-04-29 17:49:28 +02:00
Ondřej Surý ab6b58fe6d Merge branch 'ondrej/fix-asan-symbolizer-v9_11' into 'v9_11'
Fix the ASAN symbolizer

See merge request isc-projects/bind9!3452
2020-04-29 15:47:59 +00:00
Ondřej Surý 8fb874a510 Fix the ASAN symbolizer
(cherry picked from commit 96805e8c91)
2020-04-29 17:28:17 +02:00
Ondřej Surý 8d029b4405 Merge branch '1090-fix-unable-to-set-effective-uid-to-0-v9_11' into 'v9_11'
Resolve "BIND 9.14: unable to set effective uid to 0"

See merge request isc-projects/bind9!3441
2020-04-28 16:44:19 +00:00
Ondřej SurýandOndřej Surý bf5df9faf1 Add release notes for GL #1042, #1090
(cherry picked from commit 60b608b65b)
2020-04-28 17:31:27 +02:00
Ondřej SurýandOndřej Surý fa5e9706a0 Add CHANGES for #1042, #1090
(cherry picked from commit a0a5eab31c)
2020-04-28 17:31:27 +02:00
Mark AndrewsandOndřej Surý 94ec98ad7a 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 071bc29962)
2020-04-28 17:31:26 +02:00
Ondřej SurýandOndřej Surý 89ad4912e9 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 6c82e2af92)
2020-04-28 17:31:26 +02:00
Michal Nowak 126c9d94cf Merge branch 'mnowak/1751-abi-check-does-not-know-which-source-is-older-newer-v9_11' into 'v9_11'
[v9_11] Ensure proper comparison order in "abi-check" jobs

See merge request isc-projects/bind9!3421
2020-04-23 08:01:56 +00:00
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