mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Replace tty_tickets option with timestamp_type which can be
global, ppid or tty. Defaults to tty (no change in behavior). Some users want the ppid behavior.
This commit is contained in:
@@ -28,6 +28,13 @@ static struct def_values def_data_fdexec[] = {
|
||||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
static struct def_values def_data_timestamp_type[] = {
|
||||
{ "global", global },
|
||||
{ "ppid", ppid },
|
||||
{ "tty", tty },
|
||||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
struct sudo_defs_types sudo_defs_table[] = {
|
||||
{
|
||||
"syslog", T_LOGFAC|T_BOOL,
|
||||
@@ -469,6 +476,10 @@ struct sudo_defs_types sudo_defs_table[] = {
|
||||
"syslog_pid", T_FLAG,
|
||||
N_("Include the process ID when logging via syslog"),
|
||||
NULL,
|
||||
}, {
|
||||
"timestamp_type", T_TUPLE,
|
||||
N_("Type of authentication timestamp record: %s"),
|
||||
def_data_timestamp_type,
|
||||
}, {
|
||||
NULL, 0, NULL
|
||||
}
|
||||
|
Reference in New Issue
Block a user