Add intercept_type sudoers option to set intercept/log_subcmds mechanism.

This commit is contained in:
Todd C. Miller
2022-05-24 13:39:28 -06:00
parent b203753013
commit f053f174bc
13 changed files with 243 additions and 37 deletions

View File

@@ -44,6 +44,12 @@ static struct def_values def_data_log_format[] = {
{ NULL, 0 },
};
static struct def_values def_data_intercept_type[] = {
{ "dso", dso },
{ "trace", trace },
{ NULL, 0 },
};
struct sudo_defs_types sudo_defs_table[] = {
{
"syslog", T_LOGFAC|T_BOOL,
@@ -657,6 +663,10 @@ struct sudo_defs_types sudo_defs_table[] = {
"passprompt_regex", T_LIST|T_SPACE|T_BOOL,
N_("List of regular expressions to use when matching a password prompt"),
NULL,
}, {
"intercept_type", T_TUPLE,
N_("The mechanism used by the intercept and log_subcmds options: %s"),
def_data_intercept_type,
}, {
NULL, 0, NULL
}