]> git.ipfire.org Git - thirdparty/bind9.git/commit
Check key-directory duplicates for kasp zones
authorMatthijs Mekking <matthijs@isc.org>
Tue, 4 May 2021 13:35:39 +0000 (15:35 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 18 May 2021 13:47:02 +0000 (15:47 +0200)
commit494e8b2cbd362af682e9699a9c4712cf79e27de8
tree16475d5e58d3f9d34757eb6aa8d2130053bd5ffc
parent8a90139c2c35ee61dfab5bffda45ad83c5720725
Check key-directory duplicates for kasp zones

Don't allow the same zone with different dnssec-policies in separate
views have the same key-directory.

Track zones plus key-directory in a symtab and if there is a match,
check the offending zone's dnssec-policy name. If the name is "none"
(there is no kasp for the offending zone), or if the name is the same
(the zone shares keys), it is fine, otherwise it is an error (zones
in views using different policies cannot share the same key-directory).
lib/bind9/check.c