summaryrefslogtreecommitdiffstats
path: root/usr.sbin/unbound/testcode
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2019-02-07 17:20:35 +0000
committerflorian <florian@openbsd.org>2019-02-07 17:20:35 +0000
commit296cf316e5212b4eaf6162fa88b346f7d2a8030a (patch)
tree308d8e3e3d92ed56fedf8291d83ae45caf6bcb89 /usr.sbin/unbound/testcode
parentminor formatting tweaks, and add the missing RETURN VALUES section; (diff)
downloadwireguard-openbsd-296cf316e5212b4eaf6162fa88b346f7d2a8030a.tar.xz
wireguard-openbsd-296cf316e5212b4eaf6162fa88b346f7d2a8030a.zip
Rewrite trust anchor handling.
Do not use the libunbound's auto trust anchor file feature since it then the resolver process needs rpath, wpath, and cpath pledges and permission on the trust anchor file. Instead configure the trust anchor as resource record strings. The parent process opens the file, passes a filedescriptor to the frontend process to parse the file and then passes trust anchors to the resolver process to (re-) configure the resolver contexts. The resolver process periodically probes for new trust anchors (DNSKEY records of the root zone) and passes those to the frontend process. This in turn requests a file descripter for writing from the parent process. Once the trust anchors have been written the parent process renames the tmp file to the final location. Also provide a built in trust anchor for boot strapping purposes if no file is found on disk. That way we can get rid of unbound-anchor in unwind's rc.d script.
Diffstat (limited to 'usr.sbin/unbound/testcode')
0 files changed, 0 insertions, 0 deletions