Read path section of sudo.conf for sudo_conf_intercept_path().

This commit is contained in:
Todd C. Miller
2023-07-28 19:31:19 -06:00
parent bdde6dfa11
commit 961f23af94

View File

@@ -230,8 +230,8 @@ sudo_interposer_init(void)
debug_return; debug_return;
initialized = true; initialized = true;
/* Read debug section of sudo.conf and init debugging. */ /* Read debug and path section of sudo.conf and init debugging. */
if (sudo_conf_read(NULL, SUDO_CONF_DEBUG) != -1) { if (sudo_conf_read(NULL, SUDO_CONF_DEBUG|SUDO_CONF_PATHS) != -1) {
sudo_debug_register("sudo_intercept.so", NULL, NULL, sudo_debug_register("sudo_intercept.so", NULL, NULL,
sudo_conf_debug_files("sudo_intercept.so"), INTERCEPT_FD_MIN); sudo_conf_debug_files("sudo_intercept.so"), INTERCEPT_FD_MIN);
} }