sudoers error recovery can be configured via an "error_recovery" setting.

This setting is an argument to the sudoers plugin, similar to how
sudoers_file, sudoers_mode, sudoers_uid, etc. are implemented.
The default value is true.
This commit is contained in:
Todd C. Miller
2020-08-17 13:14:30 -06:00
parent 360c264760
commit 609910cc21
5 changed files with 59 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ sudo_file_parse(struct sudo_nss *nss)
log_warningx(SLOG_SEND_MAIL|SLOG_NO_STDERR,
N_("parse error in %s"), errorfile);
}
if (error) {
if (error || !sudoers_recovery) {
/* unrecoverable error */
debug_return_ptr(NULL);
}