]> git.ipfire.org Git - thirdparty/bind9.git/commit
acquire maintenance lock when running incremental RPZ updates
authorEvan Hunt <each@isc.org>
Tue, 21 Apr 2020 17:42:23 +0000 (10:42 -0700)
committerEvan Hunt <each@isc.org>
Wed, 22 Apr 2020 00:24:09 +0000 (17:24 -0700)
commit7622f8ccfb2ce0d0ef15a93fdd1e85d25d242073
treef909003e6698a51c7e3993c1e236fbbc7a3c517b
parent8a955ea40340c3bcac4dad912af6f8203c601aee
acquire maintenance lock when running incremental RPZ updates

this addresses a race that could occur during shutdown or when
reconfiguring to remove RPZ zones.

this change should ensure that the rpzs structure and the incremental
updates don't interfere with each other: rpzs->zones entries cannot
be set to NULL while an update quantum is running, and the
task should be destroyed and its queue purged so that no subsequent
quanta will run.

(cherry picked from commit 286e8cd7ea887e82e45b3a3cae43b2c97c8dce56)
lib/dns/rpz.c