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

Add runas_check_shell flag to require a runas user to have a valid shell.

Not enabled by default.
This commit is contained in:
Todd C. Miller
2019-12-09 19:29:45 -07:00
parent df8f06609c
commit b14d633ec6
16 changed files with 285 additions and 5 deletions

View File

@@ -529,6 +529,10 @@ struct sudo_defs_types sudo_defs_table[] = {
"runas_allow_unknown_id", T_FLAG,
N_("Allow the use of unknown runas user and/or group ID"),
NULL,
}, {
"runas_check_shell", T_FLAG,
N_("Only permit running commands as a user with a valid shell"),
NULL,
}, {
NULL, 0, NULL
}