]>
git.ipfire.org Git - thirdparty/unbound.git/log
W.C.A. Wijngaards [Thu, 30 Jan 2020 13:57:03 +0000 (14:57 +0100)]
dnstap io, test threads in unit test.
Ralph Dolmans [Thu, 30 Jan 2020 13:56:48 +0000 (14:56 +0100)]
- Fix small memory leak in error condition remote.c
- Fix double free in error condition view.c
Ralph Dolmans [Thu, 30 Jan 2020 13:46:39 +0000 (14:46 +0100)]
- Fix RPZ locking issues on error conditions
Ralph Dolmans [Thu, 30 Jan 2020 13:25:45 +0000 (14:25 +0100)]
- Revert addition of cscope.out to project .gitignore, should be in
global ignore list
W.C.A. Wijngaards [Thu, 30 Jan 2020 13:25:00 +0000 (14:25 +0100)]
Merge branch 'master' into stream-reuse
W.C.A. Wijngaards [Thu, 30 Jan 2020 13:20:31 +0000 (14:20 +0100)]
Merge branch 'master' into framestreams
W.C.A. Wijngaards [Thu, 30 Jan 2020 13:20:08 +0000 (14:20 +0100)]
- updated .gitignore for added contrib file.
W.C.A. Wijngaards [Thu, 30 Jan 2020 13:14:29 +0000 (14:14 +0100)]
Merge branch 'master' into framestreams
W.C.A. Wijngaards [Thu, 30 Jan 2020 13:11:41 +0000 (14:11 +0100)]
Changelog note for PR#151.
- Merge PR#151: Fixes for systemd units, by Maryse47, Edmonds
and Frzk. Updates the unbound.service systemd file and adds
a portable systemd service file.
Wouter Wijngaards [Thu, 30 Jan 2020 13:09:29 +0000 (14:09 +0100)]
Merge pull request #151 from Maryse47/systemd_fix
Fixes for systemd units
Ralph Dolmans [Thu, 30 Jan 2020 13:05:56 +0000 (14:05 +0100)]
- Fix RPZ stats RPZ_NO_OVERRIDE_ACTION check
W.C.A. Wijngaards [Thu, 30 Jan 2020 12:39:31 +0000 (13:39 +0100)]
fix dnstap io for lock checks, log identity (numworkers+1), and add locks
around protected area modification in the message queue.
W.C.A. Wijngaards [Thu, 30 Jan 2020 12:39:13 +0000 (13:39 +0100)]
fix ascync test compile with lock checks.
W.C.A. Wijngaards [Thu, 30 Jan 2020 12:10:29 +0000 (13:10 +0100)]
dnstap socket tool better help text.
W.C.A. Wijngaards [Thu, 30 Jan 2020 12:06:52 +0000 (13:06 +0100)]
Merge branch 'master' into framestreams
W.C.A. Wijngaards [Thu, 30 Jan 2020 12:05:35 +0000 (13:05 +0100)]
- Update contrib/fastrpz.patch for clean diff with current code.
W.C.A. Wijngaards [Thu, 30 Jan 2020 08:08:19 +0000 (09:08 +0100)]
- Fix subnet tests for disabled DSA algorithm by default.
W.C.A. Wijngaards [Wed, 29 Jan 2020 15:36:46 +0000 (16:36 +0100)]
Merge branch 'master' into framestreams
Ralph Dolmans [Wed, 29 Jan 2020 15:32:03 +0000 (16:32 +0100)]
- Fix misplaced parentheses from PR#156
W.C.A. Wijngaards [Wed, 29 Jan 2020 15:31:33 +0000 (16:31 +0100)]
dnstap io, move setup with nothreads into its own routine.
W.C.A. Wijngaards [Wed, 29 Jan 2020 15:22:32 +0000 (16:22 +0100)]
dnstap io, fix compile warning when compiled with threading enabled.
W.C.A. Wijngaards [Wed, 29 Jan 2020 15:10:16 +0000 (16:10 +0100)]
Merge branch 'master' into framestreams
Ralph Dolmans [Wed, 29 Jan 2020 14:46:05 +0000 (15:46 +0100)]
- Add PR#156 merge to changelog (Added unbound-control view_local_datas_remove
command)
Ralph Dolmans [Wed, 29 Jan 2020 14:44:39 +0000 (15:44 +0100)]
Merge pull request #156 from n3bul4/master
Added unbound-control view_local_datas_remove command
Alexander Berkes [Wed, 29 Jan 2020 14:32:55 +0000 (15:32 +0100)]
Added view_local_datas_remove description to documentation
Ralph Dolmans [Wed, 29 Jan 2020 14:16:44 +0000 (15:16 +0100)]
- Add extra dnamelen checks to ipdnametoaddr and netblockdnametoaddr
Ralph Dolmans [Wed, 29 Jan 2020 11:07:13 +0000 (12:07 +0100)]
- Use consistent dname buffer sizes for RPZ
W.C.A. Wijngaards [Wed, 29 Jan 2020 10:56:29 +0000 (11:56 +0100)]
- Fix #157: undefined reference to `htobe64'.
Ralph Dolmans [Wed, 29 Jan 2020 10:30:22 +0000 (11:30 +0100)]
- Make dname_has_label's dnamelen check work with 0 length
Ralph Dolmans [Wed, 29 Jan 2020 09:57:29 +0000 (10:57 +0100)]
- Fix RPZ's get_tld_label maxdnamelen check
Alexander Berkes [Wed, 29 Jan 2020 01:28:00 +0000 (02:28 +0100)]
Added unbound-control view_local_datas_remove command
Maryse47 [Tue, 28 Jan 2020 17:47:21 +0000 (18:47 +0100)]
unbound.service.in: don't write pidfile at start
Pidfiles aren't needed while running unbound through systemd.
The PID of the unbound daemon can still be obtained with:
'systemctl show --property MainPID --value unbound'.
While disabling pidfiles we can also drop CAP_CHOWN and writable
/run directory.
Maryse47 [Tue, 28 Jan 2020 17:42:41 +0000 (18:42 +0100)]
unbound.service.in: drop CAP_IPC_LOCK
CAP_IPC_LOCK controls whether a process can lock pages into physical
memory (for instance to prevent passwords or private keys from
being swapped to disk), e.g. mmap() with the MAP_LOCKED flag or
shmctl() with the SHM_LOCK command, neither of which seem to be
used by unbound.
Ralph Dolmans [Tue, 28 Jan 2020 17:35:04 +0000 (18:35 +0100)]
- Address review feedback
W.C.A. Wijngaards [Tue, 28 Jan 2020 14:51:39 +0000 (15:51 +0100)]
dnstap io, without threads, logs from the main event loop.
W.C.A. Wijngaards [Tue, 28 Jan 2020 14:09:21 +0000 (15:09 +0100)]
dnstap io, fix exit when compiled without threads.
W.C.A. Wijngaards [Tue, 28 Jan 2020 13:39:26 +0000 (14:39 +0100)]
Merge branch 'master' into framestreams
W.C.A. Wijngaards [Tue, 28 Jan 2020 13:32:06 +0000 (14:32 +0100)]
- Fix to silence the tls handshake errors for broken pipe and reset
by peer, unless verbosity is set to 2 or higher.
W.C.A. Wijngaards [Tue, 28 Jan 2020 13:25:43 +0000 (14:25 +0100)]
Merge branch 'master' into framestreams
W.C.A. Wijngaards [Tue, 28 Jan 2020 13:24:14 +0000 (14:24 +0100)]
dnstap io, windows portability improvements.
Ralph Dolmans [Tue, 28 Jan 2020 12:41:26 +0000 (13:41 +0100)]
- Add PR#147 merge to changelog
Ralph Dolmans [Tue, 28 Jan 2020 12:39:18 +0000 (13:39 +0100)]
Merge pull request #147 from mnach/minor-rfc-comment
minor #1344 change rfc reference for reserved top level dns names
PMunch [Tue, 28 Jan 2020 12:18:01 +0000 (13:18 +0100)]
Merge branch 'master' into master
W.C.A. Wijngaards [Tue, 28 Jan 2020 11:48:36 +0000 (12:48 +0100)]
dnstap io, fix memory leak if dnstap queue full.
W.C.A. Wijngaards [Tue, 28 Jan 2020 11:46:33 +0000 (12:46 +0100)]
Merge branch 'master' into framestreams
W.C.A. Wijngaards [Tue, 28 Jan 2020 11:46:08 +0000 (12:46 +0100)]
dnstap io, fix for msg queue cleanup and make test.
W.C.A. Wijngaards [Tue, 28 Jan 2020 11:25:37 +0000 (12:25 +0100)]
- iana portlist updated.
W.C.A. Wijngaards [Tue, 28 Jan 2020 11:21:05 +0000 (12:21 +0100)]
merge master into framestreams, autoconf again.
W.C.A. Wijngaards [Tue, 28 Jan 2020 11:20:09 +0000 (12:20 +0100)]
Merge branch 'master' into framestreams
Maryse47 [Mon, 27 Jan 2020 17:31:10 +0000 (18:31 +0100)]
unbound.service.in: allow CAP_CHOWN
CAP_CHOWN is needed for changing onwership of pidfile before
dropping privileges and truncate pidfile on exit.
Mikhail Nacharov [Tue, 21 Jan 2020 12:13:50 +0000 (17:13 +0500)]
minor #1344 change rfc reference for reserved top level dns names
Ralph Dolmans [Mon, 27 Jan 2020 15:06:06 +0000 (16:06 +0100)]
- Add changelog entry for PR#148.
Ralph Dolmans [Mon, 27 Jan 2020 15:04:00 +0000 (16:04 +0100)]
Merge pull request #148 from pettai/morestats
Add some TLS stats to unbound_munin_
Ralph Dolmans [Mon, 27 Jan 2020 14:50:12 +0000 (15:50 +0100)]
- Add changelog entry for RP#154
- autoconf after PR#154
Ralph Dolmans [Mon, 27 Jan 2020 14:44:32 +0000 (15:44 +0100)]
Merge pull request #154 from edmonds/edmonds/libbsd-support
Allow use of libbsd functions with configure option --with-libbsd
Ralph Dolmans [Mon, 27 Jan 2020 14:37:33 +0000 (15:37 +0100)]
Merge branch 'master' into edmonds/libbsd-support
Maryse47 [Mon, 27 Jan 2020 12:46:31 +0000 (13:46 +0100)]
unbound.service.in: add StateDirectory
State directory will be created under /var/lib/unbound and will be
useful for writing various files managed at runtime like trust
anchors updates there instead of in ConfigureDirectory which could
be made read-only next. For this chroot needs to be disabled.
Maryse47 [Fri, 24 Jan 2020 23:48:25 +0000 (00:48 +0100)]
Move unbound_nochroot.service to unbound_portable.service
The real purpose of this service is to make it work with
https://systemd.io/PORTABLE_SERVICES/ which are incompatible with
chroot workarounds from original unbound.service.
The service content is identical to unbound.service with exception
for chroot related rules which were modified as needed.
Maryse47 [Fri, 24 Jan 2020 12:41:06 +0000 (13:41 +0100)]
unbound.service.in: add RuntimeDirectory and ConfigurationDirectory
Adding 'RuntimeDirectory' is needed when pidfile path is set to
subdirectory under /run.
Adding ConfigurationDirectory may help in some non-standard setups.
Also add more descriptions about used rules to avoid user confusion
about they meaning and purpose.
W.C.A. Wijngaards [Mon, 27 Jan 2020 08:40:18 +0000 (09:40 +0100)]
- Fix #153: Disable validation for DSA algorithms. RFC 8624
compliance.
W.C.A. Wijngaards [Mon, 27 Jan 2020 08:31:07 +0000 (09:31 +0100)]
Changelog note for PR#155.
- Merge PR#155 from Rober Edmonds: contrib/libunbound.pc.in: Fixes
to Libs/Requires for crypto library dependencies.
W.C.A. Wijngaards [Mon, 27 Jan 2020 08:29:18 +0000 (09:29 +0100)]
Merge branch 'master' of github.com:NLnetLabs/unbound
Wouter Wijngaards [Mon, 27 Jan 2020 08:28:53 +0000 (09:28 +0100)]
Merge pull request #155 from edmonds/edmonds/pkg-config/libs-fixes
contrib/libunbound.pc.in: Fixes to Libs/Requires for crypto library dependencies
Robert Edmonds [Mon, 27 Jan 2020 03:23:53 +0000 (22:23 -0500)]
contrib/libunbound.pc.in: Embed the correct crypto dependencies
This commit removes the hardcoded dependency in the libunbound
pkg-config .pc file on the libcrypto and libssl modules and instead
populates the .pc file based on which crypto library was selected at
configure time.
Note that the .pc file specifies pkg-config module names for the
"Requires" line and this can vary from the library filename (e.g. "nss"
is the pkg-config module name vs. "nss3" being the library name).
Robert Edmonds [Mon, 27 Jan 2020 03:01:38 +0000 (22:01 -0500)]
contrib/libunbound.pc.in: Only specify -lunbound for Libs
According to the pkg-config manpage, the "Libs" line in a .pc file
should give the link flags "specific to your package", and specifically
says not to include link flags for dependencies:
Libs: This line should give the link flags specific to your
package. Don't add any flags for required packages;
pkg-config will add those automatically.
Steven Chamberlain [Thu, 16 Feb 2017 12:37:41 +0000 (12:37 +0000)]
Allow use of libbsd functions with configure option --with-libbsd
Add a new configure option `--with-libbsd', which allows to use libbsd's
portable implementations of:
strlcpy strlcat arc4random arc4random_uniform reallocarray
instead of the embedded code copies in contrib/, which will be
difficult to maintain in the long term.
Also patch util/random.c so that, when building with libbsd and without
OpenSSL, arc4random can still be used as the PRNG. Otherwise, building
with libnettle would need a kernel-specific getentropy implementation,
and libbsd does not export one.
[edmonds@debian.org: Imported patch description from BTS, refreshed
patch against Unbound 1.9.6.]
W.C.A. Wijngaards [Thu, 23 Jan 2020 15:51:57 +0000 (16:51 +0100)]
dnstap io, nicer layout for wouldblock calls.
W.C.A. Wijngaards [Thu, 23 Jan 2020 15:49:44 +0000 (16:49 +0100)]
dnstap io, fix event reference in winevent wouldblock call.
W.C.A. Wijngaards [Thu, 23 Jan 2020 15:24:54 +0000 (16:24 +0100)]
Merge branch 'master' into framestreams
W.C.A. Wijngaards [Thu, 23 Jan 2020 15:16:52 +0000 (16:16 +0100)]
Changelog and contrib/README note for PR#150.
- Merge PR#150 from Frzk: Systemd unit without chroot. It add
contrib/unbound_nochroot.service.in, a systemd file for use with
chroot: "", see comments in the file, it uses systemd protections
instead.
Wouter Wijngaards [Thu, 23 Jan 2020 15:14:17 +0000 (16:14 +0100)]
Merge pull request #150 from Frzk/systemd_unit_without_chroot
Systemd unit without chroot
W.C.A. Wijngaards [Thu, 23 Jan 2020 14:56:12 +0000 (15:56 +0100)]
dnstap io, remove --with-libfstrm, it is not required to build dnstap
support. protobuf-c is still used for handling the dnstap encoding.
François KUBLER [Thu, 23 Jan 2020 14:51:07 +0000 (15:51 +0100)]
Patch configure.ac file to take the new contrib/unbound_nochroot.service unit file in consideration.
All props to Wouter Wijngaards for this work.
W.C.A. Wijngaards [Thu, 23 Jan 2020 14:49:36 +0000 (15:49 +0100)]
dnstap io, remove libfstrm calls from dnstap.c.
François KUBLER [Thu, 23 Jan 2020 14:46:53 +0000 (15:46 +0100)]
Added a new unit file to run unbound with systemd and without chroot.
See https://github.com/NLnetLabs/unbound/pull/149
W.C.A. Wijngaards [Thu, 23 Jan 2020 14:39:27 +0000 (15:39 +0100)]
dnstap io, failure to add event closes and attempts to reopen the output.
W.C.A. Wijngaards [Thu, 23 Jan 2020 14:17:43 +0000 (15:17 +0100)]
in stop flush use timer_del to remove timer.
W.C.A. Wijngaards [Thu, 23 Jan 2020 14:11:08 +0000 (15:11 +0100)]
dnstap io, reconnect attempts with exponential backoff to once per second.
W.C.A. Wijngaards [Thu, 23 Jan 2020 12:38:10 +0000 (13:38 +0100)]
dnstap io, fixup error exit of event add routines.
W.C.A. Wijngaards [Thu, 23 Jan 2020 12:27:21 +0000 (13:27 +0100)]
dnstap io, sleeps thread when there is no traffic.
W.C.A. Wijngaards [Thu, 23 Jan 2020 10:51:10 +0000 (11:51 +0100)]
dnstap io, make sure to free current message when stream closes.
W.C.A. Wijngaards [Thu, 23 Jan 2020 10:44:32 +0000 (11:44 +0100)]
loop in output callback for performance.
W.C.A. Wijngaards [Thu, 23 Jan 2020 10:16:41 +0000 (11:16 +0100)]
check close neater also with a write at the same time.
W.C.A. Wijngaards [Thu, 23 Jan 2020 10:07:30 +0000 (11:07 +0100)]
dnstap io: check for close of channel by the other side.
W.C.A. Wijngaards [Thu, 23 Jan 2020 09:34:38 +0000 (10:34 +0100)]
dtio_find_msg loop roundrobin instead of first queue only, with
state in the dtio struct for loop iterator.
W.C.A. Wijngaards [Thu, 23 Jan 2020 08:55:15 +0000 (09:55 +0100)]
dnstap io fixup socket creation, stop flush dtio pointer, connect reports.
frpet [Thu, 23 Jan 2020 07:23:16 +0000 (08:23 +0100)]
Update unbound_munin_
Add TLS (DoT) counters
W.C.A. Wijngaards [Wed, 22 Jan 2020 16:41:34 +0000 (17:41 +0100)]
dnstap io output performs nonblocking connect.
W.C.A. Wijngaards [Wed, 22 Jan 2020 14:26:04 +0000 (15:26 +0100)]
output event del before free.
W.C.A. Wijngaards [Wed, 22 Jan 2020 14:20:48 +0000 (15:20 +0100)]
write data and stop flush for dnstap io.
W.C.A. Wijngaards [Wed, 22 Jan 2020 11:05:52 +0000 (12:05 +0100)]
remove fatal_exit from runtime reopen routines.
W.C.A. Wijngaards [Wed, 22 Jan 2020 10:57:15 +0000 (11:57 +0100)]
improve fstrm routine documentation.
W.C.A. Wijngaards [Wed, 22 Jan 2020 10:44:11 +0000 (11:44 +0100)]
fstrm routines for start and stop, fstrm_create_control_frame_start and
fstrm_create_control_frame_stop, suitable for reuse, together with fstrm
protocol defines.
W.C.A. Wijngaards [Tue, 21 Jan 2020 16:15:37 +0000 (17:15 +0100)]
Remove editor file that was added by mistake.
W.C.A. Wijngaards [Tue, 21 Jan 2020 16:14:47 +0000 (17:14 +0100)]
iothread find msg.
W.C.A. Wijngaards [Tue, 21 Jan 2020 16:01:25 +0000 (17:01 +0100)]
iothread work.
W.C.A. Wijngaards [Tue, 21 Jan 2020 13:50:37 +0000 (14:50 +0100)]
the framestream queue.
W.C.A. Wijngaards [Tue, 21 Jan 2020 13:02:45 +0000 (14:02 +0100)]
dnstap unit test.
W.C.A. Wijngaards [Tue, 21 Jan 2020 09:14:30 +0000 (10:14 +0100)]
dnstap test program prints messages and timestamps in long format.
W.C.A. Wijngaards [Tue, 21 Jan 2020 08:56:28 +0000 (09:56 +0100)]
dnstap test program prints identity and version.