bind9/bin/plugins
Evan Hunt 92cefc52bc check plugin config before registering
In named_config_parsefile(), when checking the validity of
named.conf, the checking of plugin correctness was deliberately
postponed until the plugin is loaded and registered. However,
when the plugin was registered, the checking was never actually
done: the plugin_register() implementation was called, but
plugin_check() was not.

This made it necessary to duplicate the correctness checking in both
functions, so that both named-checkconf and named could catch errors.
That should not be required.

ns_plugin_register() now calls the check function before the register
function, and aborts if either one fails.  ns_plugin_check() calls only
the check function.  ns_plugin_check() is used by named-checkconf, and
ns_plugin_register() is used by named. (Note: this design has a
side effect that a call to ns_plugin_register() will result in the
plugin parameters being parsed twice at registration time.)

ns_plugin_check() now takes an additional argument for the hook
source: zone or view.
2025-09-30 15:42:26 -07:00
..
filter-a.c check plugin config before registering 2025-09-30 15:42:26 -07:00
filter-a.rst Hyperlink program names to their manual pages 2022-03-14 10:46:36 +01:00
filter-aaaa.c check plugin config before registering 2025-09-30 15:42:26 -07:00
filter-aaaa.rst clean up some deprecated/obsolete options and doc 2023-02-10 09:52:27 -08:00
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00