]> git.ipfire.org Git - thirdparty/bind9.git/commit
Rescan interfaces before dropping privileges
authorOndřej Surý <ondrej@isc.org>
Thu, 6 Oct 2022 16:00:06 +0000 (18:00 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 1 Nov 2022 10:48:56 +0000 (11:48 +0100)
commit04a5477eb23bf495ebc0daabd1494f3409c5a2ec
treef42fae57ff73754b8c1bb9166141c19a5c5ac352
parentf7f13f430b6961a4d19e332bdb3edf464463590e
Rescan interfaces before dropping privileges

The ns_interfacemgr_scan() now requires the loopmgr to be running, so we
need to end exclusive mode for the rescan and then begin it again.

This is relatively safe operation (because the scan happens on the timer
anyway), but we need to ensure that we won't load the configuration from
different threads.  This is already the case because the initial load
happens on the main thread and the control channel also listens just on
the main loop.
bin/named/server.c