W.C.A. Wijngaards
554e4a939c
- Fix fix for #78 to also free service callback struct.
2019-09-19 10:03:47 +02:00
W.C.A. Wijngaards
45b3215594
- oss-fuzz badge on README.md.
2019-09-19 09:55:23 +02:00
W.C.A. Wijngaards
3cb1cdeebd
- Merge pull request #76 from Maryse47: Improvements and fixes for
...
systemd unbound.service.
(Changelog note for merge of #76 ).
2019-09-19 09:53:21 +02:00
Wouter Wijngaards
9a9d59ecaf
Merge pull request #76 from Maryse47/patch-1
...
Improvements and fixes for systemd unbound.service
2019-09-19 09:52:30 +02:00
W.C.A. Wijngaards
1a4eaaabc5
- Fix #78 : Memory leak in outside_network.c.
2019-09-19 09:11:23 +02:00
Maryse47
ff8fd0be5c
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.
2019-09-18 21:48:12 +02:00
W.C.A. Wijngaards
13d96540de
- Use explicit bzero for wiping clear buffer of hash in cachedb,
...
reported by Eric Sesterhenn from X41 D-Sec.
2019-09-11 15:31:03 +02:00
Ralph Dolmans
f3dfb4d537
Typo fix, reported by jpmens
2019-09-09 18:54:23 +02:00
Ralph Dolmans
9843b836ee
Merge branch 'master' into rpz
2019-09-09 17:17:43 +02:00
Ralph Dolmans
4ac33aa104
- Merge clean up
...
- revert dname2str off by one fix
- fix str2dname off by one at right location
2019-09-09 17:13:08 +02:00
Ralph Dolmans
2b5cd8e9b4
Merge remote-tracking branch 'ralph/feature/rpz' into rpz
2019-09-09 17:11:26 +02:00
W.C.A. Wijngaards
e45e9f1ce0
- 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.
2019-09-09 14:27:55 +02:00
W.C.A. Wijngaards
05b9f4fd28
- Fix #71 : fix openssl error squelch commit compilation error.
2019-09-04 08:44:19 +02:00
W.C.A. Wijngaards
1089fd6dc1
- 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.
2019-09-03 09:47:27 +02:00
W.C.A. Wijngaards
366296ec14
- updated Makefile dependencies.
2019-09-02 15:56:24 +02:00
W.C.A. Wijngaards
7f9aa6734a
- ipset: refactor long routine into three smaller ones.
2019-09-02 15:17:25 +02:00
W.C.A. Wijngaards
9902a5f81d
- ipset module #28 : log that an address is added, when verbosity high.
2019-09-02 13:50:42 +02:00
W.C.A. Wijngaards
cd0a2b1af1
- Master is 1.9.4 in development.
2019-08-27 09:56:20 +02:00
Ralph Dolmans
bc39217070
Don't pass along unused parameter
2019-08-23 12:45:34 +02:00
Ralph Dolmans
ccb576f95e
- add always_deny action, use this one for RPZ
...
- use localzone's memory layout when removing rr from rrset
2019-08-23 12:15:37 +02:00
W.C.A. Wijngaards
a374dfb669
- Fix contrib/fastrpz.patch asprintf return value checks.
2019-08-23 08:41:46 +02:00
W.C.A. Wijngaards
79fa94834e
- 1.9.3rc2 release candidate tag.
2019-08-22 14:50:49 +02:00
W.C.A. Wijngaards
e35d5f5a2d
delete duplicate file.
2019-08-22 13:32:34 +02:00
W.C.A. Wijngaards
334e2b1e35
updated fastrpz.patch to apply cleanly.
2019-08-22 13:31:09 +02:00
W.C.A. Wijngaards
06847ff3be
- Fix that pkg-config is setup before --enable-systemd needs it.
2019-08-22 12:22:25 +02:00
W.C.A. Wijngaards
80c2c69fa7
- Fix log_dns_msg to log irrespective of minimal responses config.
2019-08-21 17:41:29 +02:00
Ralph Dolmans
8b752e359e
- Document limitation of pidfile removal outside of chroot directory.
2019-08-19 13:27:19 +02:00
W.C.A. Wijngaards
d3b3d64ef3
- Remove warning about unknown cast-function-type warning pragma.
2019-08-16 12:52:58 +02:00
W.C.A. Wijngaards
c602ba7319
- Fixup contrib/fastrpz.patch
2019-08-16 12:37:13 +02:00
W.C.A. Wijngaards
bdb6c153e4
- Please doxygen's parser for "@" occurrence in doxygen comment.
2019-08-16 12:21:40 +02:00
W.C.A. Wijngaards
d8a8730cac
- 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.
2019-08-16 12:18:23 +02:00
Ralph Dolmans
a16111d471
Prevent potential double free
2019-08-16 12:13:30 +02:00
W.C.A. Wijngaards
0532cdd357
- (for later release): -V prints if TCP fastopen is available.
2019-08-15 17:04:38 +02:00
W.C.A. Wijngaards
e84b913585
- 1.9.3rc1 release candidate tag.
2019-08-15 15:49:15 +02:00
W.C.A. Wijngaards
a5027f5f56
- Fix character buffer size in ub_ctx_hosts.
2019-08-15 15:11:04 +02:00
W.C.A. Wijngaards
06a58ca248
- escape commandline contents for -V.
2019-08-15 15:05:02 +02:00
W.C.A. Wijngaards
4700d79024
- avoid warning about upcast on 32bit systems for autotrust.
2019-08-15 14:25:46 +02:00
W.C.A. Wijngaards
9d9884c442
- Fix autotrust temp file uniqueness windows compile.
2019-08-15 14:02:14 +02:00
W.C.A. Wijngaards
c1c75929fa
- iana portlist updated.
2019-08-15 13:07:26 +02:00
W.C.A. Wijngaards
8cb3656b3e
- Fix warning for unused variable for compilation without systemd.
2019-08-14 16:08:19 +02:00
George Thessalonikefs
a90f173875
- Fix #59 , when compiled with systemd support check that we can properly
...
communicate with systemd through the `NOTIFY_SOCKET`.
2019-08-14 15:51:28 +02:00
Wouter Wijngaards
b266db3920
Merge pull request #57 from NLnetLabs/show-build-options
...
Introduce `-V` option to print the version number and build options.
2019-08-14 12:47:42 +02:00
gthess
fd415d8833
Merge branch 'master' into show-build-options
2019-08-14 11:45:41 +02:00
W.C.A. Wijngaards
b5a52f8c86
- Generate configlexer with newer flex.
2019-08-14 11:40:35 +02:00
W.C.A. Wijngaards
67271242bf
autoconf for the '-V' option changes.
2019-08-14 11:34:27 +02:00
Ralph Dolmans
965f16cc89
- Add RPZ AXFR test
...
- Fix memory leak
2019-08-13 17:06:43 +02:00
Ralph Dolmans
4cbf4f4996
- Add RPZ response IP override test
2019-08-12 18:44:30 +02:00
George Thessalonikefs
008813f0a2
- 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.
2019-08-12 17:52:43 +02:00
Ralph Dolmans
88fce791df
- Add RPZ respip test
...
- Fix rpz memory leak
2019-08-12 16:06:15 +02:00
Ralph Dolmans
7180284d82
- Add RPZ/QNAME override test
2019-08-08 16:43:28 +02:00