Add ignore_perms plugin argument to skip the sudoers file security checks.

This is not intended to be used in a production environment.
This commit is contained in:
Todd C. Miller
2023-08-29 09:55:09 -06:00
parent 1eb4392e14
commit 3c05e748a4
5 changed files with 46 additions and 4 deletions

View File

@@ -82,6 +82,7 @@ struct sudoers_parser_config {
const char *sudoers_path;
bool strict;
bool recovery;
bool ignore_perms;
int verbose;
mode_t sudoers_mode;
uid_t sudoers_uid;
@@ -91,6 +92,7 @@ struct sudoers_parser_config {
NULL, /* sudoers_path */ \
false, /* strict */ \
true, /* recovery */ \
false, /* ignore_perms */ \
1, /* verbose level 1 */ \
SUDOERS_MODE, \
SUDOERS_UID, \