Add CHROOT and CWD sudoers options.

Also matching runchroot and runcwd Defaults settings.
This commit is contained in:
Todd C. Miller
2020-09-01 06:26:00 -06:00
parent c4a579cf8a
commit 6bdfd010d2
35 changed files with 3189 additions and 2162 deletions

View File

@@ -551,6 +551,14 @@ struct sudo_defs_types sudo_defs_table[] = {
"pam_rhost", T_FLAG,
N_("Set the pam remote host to the local host name"),
NULL,
}, {
"runcwd", T_STR|T_BOOL|T_PATH|T_TILDE,
N_("Working directory to change to before executing the command: %s"),
NULL,
}, {
"runchroot", T_STR|T_BOOL|T_PATH|T_TILDE,
N_("Root directory to change to before executing the command: %s"),
NULL,
}, {
NULL, 0, NULL
}