]>
git.ipfire.org Git - thirdparty/unbound.git/log
Maryse47 [Thu, 19 Sep 2019 15:35:30 +0000 (17:35 +0200)]
Consistently use /dev/urandom instead of /dev/random in scripts and docs
Unbound code call /dev/urandom (see below) but various docs and scripts
mention /dev/random which may be confusing.
https://github.com/NLnetLabs/unbound/blob/release-1.9.3/compat/arc4random.c#L107
https://github.com/NLnetLabs/unbound/blob/release-1.9.3/compat/getentropy_linux.c#L251
https://github.com/NLnetLabs/unbound/blob/release-1.9.3/compat/getentropy_osx.c
https://github.com/NLnetLabs/unbound/blob/release-1.9.3/compat/getentropy_solaris.c#L116
W.C.A. Wijngaards [Thu, 19 Sep 2019 14:56:14 +0000 (16:56 +0200)]
- Merge #80 from stasic: Improve wording in man page.
(Changelog entry for merge)
Wouter Wijngaards [Thu, 19 Sep 2019 14:54:42 +0000 (16:54 +0200)]
Merge pull request #80 from stasic/patch-1
Improve wording in man page
Arsen Stasic [Thu, 19 Sep 2019 14:51:54 +0000 (14:51 +0000)]
Improve wording in man page
Make it more consistent throughout the man page.
If a config option can either be *yes* or *no* use exact these terms and not something like *on* which could be easily read as *no*.
W.C.A. Wijngaards [Thu, 19 Sep 2019 14:29:51 +0000 (16:29 +0200)]
- Fix wrong response ttl for prepended short CNAME ttls, this would
create a wrong zero_ttl response count with serve-expired enabled.
W.C.A. Wijngaards [Thu, 19 Sep 2019 08:09:49 +0000 (10:09 +0200)]
- Fix for oss-fuzz build warning.
W.C.A. Wijngaards [Thu, 19 Sep 2019 08:03:47 +0000 (10:03 +0200)]
- Fix fix for #78 to also free service callback struct.
W.C.A. Wijngaards [Thu, 19 Sep 2019 07:55:23 +0000 (09:55 +0200)]
- oss-fuzz badge on README.md.
W.C.A. Wijngaards [Thu, 19 Sep 2019 07:53:21 +0000 (09:53 +0200)]
- Merge pull request #76 from Maryse47: Improvements and fixes for
systemd unbound.service.
(Changelog note for merge of #76).
Wouter Wijngaards [Thu, 19 Sep 2019 07:52:30 +0000 (09:52 +0200)]
Merge pull request #76 from Maryse47/patch-1
Improvements and fixes for systemd unbound.service
W.C.A. Wijngaards [Thu, 19 Sep 2019 07:11:23 +0000 (09:11 +0200)]
- Fix #78: Memory leak in outside_network.c.
Maryse47 [Tue, 17 Sep 2019 10:00:08 +0000 (10:00 +0000)]
Improvements and fixes for systemd unbound.service
1. Remove `ProtectKernelTunables=true`: This prevents various with socket options from working as shown below.
`unbound[] warning: so-rcvbuf
1048576 was not granted. Got 425984. To fix: start with root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or kern.ipc.maxsockbuf(bsd) values.`
2. Add `CAP_NET_ADMIN` to available caps which is needed for `ip-transparent: yes` config option to work as shown below.
`unbound[] warning: setsockopt(.. IP_TRANSPARENT ..) failed: Operation not permitted`
3. Make `ReadWritePaths` less permissive: `UNBOUND_SYSCONF_DIR` equals to `sysconfdir` which usually equals to `/etc` and `UNBOUND_LOCALSTATE_DIR` equals to `localstatedir` which usually equals to `/var`. Allowing write access for those dirs shouldn't be needed. The only dirs unbound should be allow to write to are `/run` ( for pidfile), `@UNBOUND_RUN_DIR@` (for chroot) and `@UNBOUND_CHROOT_DIR@` in case it differs from the previous one.
4. Bind-mount `/run/systemd/notify`, `UNBOUND_PIDFILE`, `/dev/log`, `/dev/urandom` in order to use them inside chroot.
5. Add few extra hardening options: `RestrictNamespaces`, `LockPersonality` and `RestrictSUIDSGID` should be safe to use.
W.C.A. Wijngaards [Wed, 11 Sep 2019 13:31:03 +0000 (15:31 +0200)]
- Use explicit bzero for wiping clear buffer of hash in cachedb,
reported by Eric Sesterhenn from X41 D-Sec.
Ralph Dolmans [Mon, 9 Sep 2019 16:54:23 +0000 (18:54 +0200)]
Typo fix, reported by jpmens
Ralph Dolmans [Mon, 9 Sep 2019 15:17:43 +0000 (17:17 +0200)]
Merge branch 'master' into rpz
Ralph Dolmans [Mon, 9 Sep 2019 15:13:08 +0000 (17:13 +0200)]
- Merge clean up
- revert dname2str off by one fix
- fix str2dname off by one at right location
Ralph Dolmans [Mon, 9 Sep 2019 15:11:26 +0000 (17:11 +0200)]
Merge remote-tracking branch 'ralph/feature/rpz' into rpz
W.C.A. Wijngaards [Mon, 9 Sep 2019 12:27:55 +0000 (14:27 +0200)]
- Fix #72: configure --with-syslog-facility=LOCAL0-7 with default
LOG_DAEMON (as before) can set the syslog facility that the server
uses to log messages.
W.C.A. Wijngaards [Wed, 4 Sep 2019 06:44:19 +0000 (08:44 +0200)]
- Fix #71: fix openssl error squelch commit compilation error.
W.C.A. Wijngaards [Tue, 3 Sep 2019 07:47:27 +0000 (09:47 +0200)]
- squelch DNS over TLS errors 'ssl handshake failed crypto error'
on low verbosity, they show on verbosity 3 (query details), because
there is a high volume and the operator cannot do anything for the
remote failure. Specifically filters the high volume errors.
W.C.A. Wijngaards [Mon, 2 Sep 2019 13:56:24 +0000 (15:56 +0200)]
- updated Makefile dependencies.
W.C.A. Wijngaards [Mon, 2 Sep 2019 13:17:25 +0000 (15:17 +0200)]
- ipset: refactor long routine into three smaller ones.
W.C.A. Wijngaards [Mon, 2 Sep 2019 11:50:42 +0000 (13:50 +0200)]
- ipset module #28: log that an address is added, when verbosity high.
W.C.A. Wijngaards [Tue, 27 Aug 2019 07:56:20 +0000 (09:56 +0200)]
- Master is 1.9.4 in development.
Ralph Dolmans [Fri, 23 Aug 2019 10:45:34 +0000 (12:45 +0200)]
Don't pass along unused parameter
Ralph Dolmans [Fri, 23 Aug 2019 10:15:37 +0000 (12:15 +0200)]
- add always_deny action, use this one for RPZ
- use localzone's memory layout when removing rr from rrset
W.C.A. Wijngaards [Fri, 23 Aug 2019 06:41:46 +0000 (08:41 +0200)]
- Fix contrib/fastrpz.patch asprintf return value checks.
W.C.A. Wijngaards [Thu, 22 Aug 2019 12:50:49 +0000 (14:50 +0200)]
- 1.9.3rc2 release candidate tag.
W.C.A. Wijngaards [Thu, 22 Aug 2019 11:32:34 +0000 (13:32 +0200)]
delete duplicate file.
W.C.A. Wijngaards [Thu, 22 Aug 2019 11:31:09 +0000 (13:31 +0200)]
updated fastrpz.patch to apply cleanly.
W.C.A. Wijngaards [Thu, 22 Aug 2019 10:22:25 +0000 (12:22 +0200)]
- Fix that pkg-config is setup before --enable-systemd needs it.
W.C.A. Wijngaards [Wed, 21 Aug 2019 15:41:29 +0000 (17:41 +0200)]
- Fix log_dns_msg to log irrespective of minimal responses config.
Ralph Dolmans [Mon, 19 Aug 2019 11:27:19 +0000 (13:27 +0200)]
- Document limitation of pidfile removal outside of chroot directory.
W.C.A. Wijngaards [Fri, 16 Aug 2019 10:52:58 +0000 (12:52 +0200)]
- Remove warning about unknown cast-function-type warning pragma.
W.C.A. Wijngaards [Fri, 16 Aug 2019 10:37:13 +0000 (12:37 +0200)]
- Fixup contrib/fastrpz.patch
W.C.A. Wijngaards [Fri, 16 Aug 2019 10:21:40 +0000 (12:21 +0200)]
- Please doxygen's parser for "@" occurrence in doxygen comment.
W.C.A. Wijngaards [Fri, 16 Aug 2019 10:18:23 +0000 (12:18 +0200)]
- Fix unittest valgrind false positive uninitialised value report,
where if gcc 9.1.1 uses -O2 (but not -O1) then valgrind 3.15.0
issues an uninitialised value for the token buffer at the str2wire.c
rrinternal_get_owner() strcmp with the '@' value. Rewritten to use
straight character comparisons removes the false positive. Also
valgrinds --expensive-definedness-checks=yes can stop this false
positive.
Ralph Dolmans [Fri, 16 Aug 2019 10:13:30 +0000 (12:13 +0200)]
Prevent potential double free
W.C.A. Wijngaards [Thu, 15 Aug 2019 15:04:38 +0000 (17:04 +0200)]
- (for later release): -V prints if TCP fastopen is available.
W.C.A. Wijngaards [Thu, 15 Aug 2019 13:49:15 +0000 (15:49 +0200)]
- 1.9.3rc1 release candidate tag.
W.C.A. Wijngaards [Thu, 15 Aug 2019 13:11:04 +0000 (15:11 +0200)]
- Fix character buffer size in ub_ctx_hosts.
W.C.A. Wijngaards [Thu, 15 Aug 2019 13:05:02 +0000 (15:05 +0200)]
- escape commandline contents for -V.
W.C.A. Wijngaards [Thu, 15 Aug 2019 12:25:46 +0000 (14:25 +0200)]
- avoid warning about upcast on 32bit systems for autotrust.
W.C.A. Wijngaards [Thu, 15 Aug 2019 12:02:14 +0000 (14:02 +0200)]
- Fix autotrust temp file uniqueness windows compile.
W.C.A. Wijngaards [Thu, 15 Aug 2019 11:07:26 +0000 (13:07 +0200)]
- iana portlist updated.
W.C.A. Wijngaards [Wed, 14 Aug 2019 14:08:19 +0000 (16:08 +0200)]
- Fix warning for unused variable for compilation without systemd.
George Thessalonikefs [Wed, 14 Aug 2019 13:51:28 +0000 (15:51 +0200)]
- Fix #59, when compiled with systemd support check that we can properly
communicate with systemd through the `NOTIFY_SOCKET`.
Wouter Wijngaards [Wed, 14 Aug 2019 10:47:42 +0000 (12:47 +0200)]
Merge pull request #57 from NLnetLabs/show-build-options
Introduce `-V` option to print the version number and build options.
gthess [Wed, 14 Aug 2019 09:45:41 +0000 (11:45 +0200)]
Merge branch 'master' into show-build-options
W.C.A. Wijngaards [Wed, 14 Aug 2019 09:40:35 +0000 (11:40 +0200)]
- Generate configlexer with newer flex.
W.C.A. Wijngaards [Wed, 14 Aug 2019 09:34:27 +0000 (11:34 +0200)]
autoconf for the '-V' option changes.
Ralph Dolmans [Tue, 13 Aug 2019 15:06:43 +0000 (17:06 +0200)]
- Add RPZ AXFR test
- Fix memory leak
Ralph Dolmans [Mon, 12 Aug 2019 16:44:30 +0000 (18:44 +0200)]
- Add RPZ response IP override test
George Thessalonikefs [Mon, 12 Aug 2019 15:52:43 +0000 (17:52 +0200)]
- Introduce `-V` option to print the version number and build options.
Previously reported build options like linked libs and linked modules
are now moved from `-h` to `-V` as well for consistency.
- PACKAGE_BUGREPORT now also includes link to GitHub issues.
Ralph Dolmans [Mon, 12 Aug 2019 14:06:15 +0000 (16:06 +0200)]
- Add RPZ respip test
- Fix rpz memory leak
Ralph Dolmans [Thu, 8 Aug 2019 14:43:28 +0000 (16:43 +0200)]
- Add RPZ/QNAME override test
Ralph Dolmans [Thu, 8 Aug 2019 14:07:16 +0000 (16:07 +0200)]
- Extend RPZ/QNAME trigger test
- Fix potential memory leak
Ralph Dolmans [Thu, 8 Aug 2019 11:50:02 +0000 (13:50 +0200)]
- Added RPZ/QNAME trigger test
Ralph Dolmans [Wed, 7 Aug 2019 12:53:23 +0000 (14:53 +0200)]
Update RPZ man page and example.conf
Ralph Dolmans [Wed, 7 Aug 2019 12:09:48 +0000 (14:09 +0200)]
Add statistics support for disabled (action override) response IP RPZ
triggers.
W.C.A. Wijngaards [Thu, 1 Aug 2019 14:57:36 +0000 (16:57 +0200)]
- Check repinfo in worker_handle_request, if null, drop it.
W.C.A. Wijngaards [Thu, 1 Aug 2019 14:48:41 +0000 (16:48 +0200)]
- Fix to timeval_add for remaining second in microseconds.
W.C.A. Wijngaards [Thu, 1 Aug 2019 14:40:52 +0000 (16:40 +0200)]
- Fix to return after failed auth zone http chunk write.
- Fix to remove unused test for task_probe existance.
Ralph Dolmans [Thu, 1 Aug 2019 12:31:37 +0000 (14:31 +0200)]
- Add RPZ response IP override option, logging, and statistics
W.C.A. Wijngaards [Thu, 1 Aug 2019 07:34:44 +0000 (09:34 +0200)]
- Fix #52 #53, fix for example fail program.
W.C.A. Wijngaards [Thu, 1 Aug 2019 07:15:33 +0000 (09:15 +0200)]
- For #52 #53, second context does not close logfile override.
W.C.A. Wijngaards [Mon, 29 Jul 2019 14:58:23 +0000 (16:58 +0200)]
Fix comment.
W.C.A. Wijngaards [Mon, 29 Jul 2019 14:51:40 +0000 (16:51 +0200)]
- Add hex print of trust anchor pointer to trust anchor file temp
name to make it unique, for libunbound created multiple contexts.
W.C.A. Wijngaards [Mon, 29 Jul 2019 07:25:49 +0000 (09:25 +0200)]
- Add verbose log message when auth zone file is written, at level 4.
W.C.A. Wijngaards [Tue, 23 Jul 2019 12:01:59 +0000 (14:01 +0200)]
- Fix question section mismatch in local zone redirect.
W.C.A. Wijngaards [Fri, 19 Jul 2019 10:51:37 +0000 (12:51 +0200)]
Fixup space in error message.
W.C.A. Wijngaards [Fri, 19 Jul 2019 06:18:06 +0000 (08:18 +0200)]
- Fix #49: Set no renegotiation on the SSL context to stop client
session renegotiation.
Ralph Dolmans [Tue, 16 Jul 2019 17:45:49 +0000 (19:45 +0200)]
- Fix doxygen issue
- Fix memory leak
- IANA ports update
- merge littlehash ASAN changes
Ralph Dolmans [Tue, 16 Jul 2019 16:43:16 +0000 (18:43 +0200)]
- Added RPZ response IP support
W.C.A. Wijngaards [Fri, 12 Jul 2019 12:34:35 +0000 (14:34 +0200)]
- Fix #48: Unbound returns additional records on NODATA response,
if minimal-responses is enabled, also the additional for negative
responses is removed.
Ralph Dolmans [Tue, 9 Jul 2019 12:58:36 +0000 (14:58 +0200)]
- Fix in respip addrtree selection. Absence of addr_tree_init_parents() call
made it impossible to go up the tree when the matching netmask is too
specific.
Ralph Dolmans [Fri, 5 Jul 2019 14:52:03 +0000 (16:52 +0200)]
- Fix for possible assertion failure when answering respip CNAME from cache.
W.C.A. Wijngaards [Tue, 25 Jun 2019 13:14:07 +0000 (15:14 +0200)]
Nicer spelling and layout.
W.C.A. Wijngaards [Tue, 25 Jun 2019 12:50:49 +0000 (14:50 +0200)]
- For #45, check that 127.0.0.1 and ::1 are not used in unbound.conf
when do-not-query-localhost is turned on, or at default on,
unbound-checkconf prints a warning if it is found in forward-addr or
stub-addr statements.
Ralph Dolmans [Mon, 24 Jun 2019 14:01:01 +0000 (16:01 +0200)]
Procedures to parse RPZ ip address notation.
W.C.A. Wijngaards [Mon, 24 Jun 2019 08:53:27 +0000 (10:53 +0200)]
- Fix memleak in unit test, reported from the clang 8.0 static analyzer.
W.C.A. Wijngaards [Tue, 18 Jun 2019 15:25:08 +0000 (17:25 +0200)]
- Fix python dict reference and double free in config.
W.C.A. Wijngaards [Tue, 18 Jun 2019 15:11:31 +0000 (17:11 +0200)]
- Merge PR #6: Python module: support multiple instances
- Merge PR #5: Python module: define constant MODULE_RESTART_NEXT
- Merge PR #4: Python module: assign something useful to the
per-query data store 'qdata'
Noted in Changelog.
W.C.A. Wijngaards [Tue, 18 Jun 2019 15:08:59 +0000 (17:08 +0200)]
Merge branch 'episource-dev/all-merged/master'.
Merge PR #6: Python module: support multiple instances
Merge PR #5: Python module: define constant MODULE_RESTART_NEXT
Merge PR #4: Python module: assign something useful to the per-query data store 'qdata'
W.C.A. Wijngaards [Tue, 18 Jun 2019 15:07:57 +0000 (17:07 +0200)]
Merge branch 'dev/all-merged/master' of git://github.com/episource/unbound into episource-dev/all-merged/master
W.C.A. Wijngaards [Tue, 18 Jun 2019 14:25:11 +0000 (16:25 +0200)]
- Added documentation to the ipset files (for doxygen output).
W.C.A. Wijngaards [Tue, 18 Jun 2019 13:59:10 +0000 (15:59 +0200)]
- make depend
W.C.A. Wijngaards [Tue, 18 Jun 2019 13:57:28 +0000 (15:57 +0200)]
- Fix to make unbound-control with ipset, remove unused variable,
use unsigned type because of comparison, and assign null instead
of compare with it. Remade lex and yacc output.
W.C.A. Wijngaards [Tue, 18 Jun 2019 13:38:37 +0000 (15:38 +0200)]
- PR #28: IPSet module, by Kevin Chou. Created a module to support
the ipset that could add the domain's ip to a list easily.
Needs libmnl, and --enable-ipset and config it, doc/README.ipset.md.
- Fix to omit RRSIGs from addition to the ipset.
W.C.A. Wijngaards [Tue, 18 Jun 2019 11:54:04 +0000 (13:54 +0200)]
Merge branch 'k9982874-master',PR #28 IPset module.
W.C.A. Wijngaards [Tue, 18 Jun 2019 11:52:52 +0000 (13:52 +0200)]
Merge branch 'master' of git://github.com/k9982874/unbound into k9982874-master
W.C.A. Wijngaards [Mon, 17 Jun 2019 12:15:36 +0000 (14:15 +0200)]
- Fix for #24: Fix abort due to scan of auth zone masters using old
address from previous scan.
W.C.A. Wijngaards [Mon, 17 Jun 2019 10:13:12 +0000 (12:13 +0200)]
- Fix #39: In libunbound, leftover logfile is close()d unpredictably.
W.C.A. Wijngaards [Mon, 17 Jun 2019 09:42:19 +0000 (11:42 +0200)]
- Master contains version 1.9.3 in development.
W.C.A. Wijngaards [Fri, 14 Jun 2019 06:38:37 +0000 (08:38 +0200)]
- 1.9.2rc3 release candidate tag.
Moritz Schneider [Wed, 12 Jun 2019 17:11:20 +0000 (19:11 +0200)]
Update Changelog
Moritz Schneider [Wed, 12 Jun 2019 17:08:59 +0000 (19:08 +0200)]
Update documentation for outbound-msg-retry
Moritz Schneider [Wed, 12 Jun 2019 16:54:03 +0000 (18:54 +0200)]
Adapt some comments
Moritz Schneider [Wed, 12 Jun 2019 16:52:41 +0000 (18:52 +0200)]
Update configparser with outbound-msg-retry config parameter
Moritz Schneider [Wed, 12 Jun 2019 16:51:26 +0000 (18:51 +0200)]
Make outbound msg retry configurable