2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Reload sudo.conf upon SIGUP

This makes it possible to update the Debug settings in sudo.conf and
have them take effect on reload.
This commit is contained in:
Todd C. Miller 2020-04-08 10:19:55 -06:00
parent 69b6783be6
commit ce92674cc2

View File

@ -1606,6 +1606,12 @@ server_reload(struct sudo_event_base *base)
/* Re-initialize listeners and TLS context. */
if (!server_setup(base))
sudo_fatalx(U_("unable setup listen socket"));
/* Re-initialize debugging. */
if (sudo_conf_read(NULL, SUDO_CONF_DEBUG) != -1) {
sudo_debug_register(getprogname(), NULL, NULL,
sudo_conf_debug_files(getprogname()));
}
}
debug_return;