]> 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>
Tue, 21 Apr 2020 22:53:58 +0000 (15:53 -0700)
commit286e8cd7ea887e82e45b3a3cae43b2c97c8dce56
tree5e4ac6100ab748a4afac6fd22f3d147d91ad620a
parentbb4515346a882d0a50fcb3ef7387d3eb5aeb523a
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.
lib/dns/rpz.c