Set use_pty=true in command details when use_pty is set in sudoers.
From Ludwig Nussel
This commit is contained in:
@@ -82,6 +82,7 @@ you believe you should be listed, please send a note to sudo@sudo.ws.
|
|||||||
Dworkin Muller
|
Dworkin Muller
|
||||||
Jeff Nieusma
|
Jeff Nieusma
|
||||||
Peter A. Nikitser
|
Peter A. Nikitser
|
||||||
|
Ludwig Nussel
|
||||||
Eric Paquet
|
Eric Paquet
|
||||||
Chantal Paradis
|
Chantal Paradis
|
||||||
Ted Percival
|
Ted Percival
|
||||||
|
@@ -85,6 +85,7 @@ you believe you should be listed, please send a note to sudo@sudo.ws.
|
|||||||
Dworkin Muller
|
Dworkin Muller
|
||||||
Jeff Nieusma
|
Jeff Nieusma
|
||||||
Peter A. Nikitser
|
Peter A. Nikitser
|
||||||
|
Ludwig Nussel
|
||||||
Eric Paquet
|
Eric Paquet
|
||||||
Chantal Paradis
|
Chantal Paradis
|
||||||
Ted Percival
|
Ted Percival
|
||||||
|
@@ -651,6 +651,8 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
|
|||||||
command_info[info_len++] = fmt_string("noexec_file", def_noexec_file);
|
command_info[info_len++] = fmt_string("noexec_file", def_noexec_file);
|
||||||
if (def_set_utmp)
|
if (def_set_utmp)
|
||||||
command_info[info_len++] = estrdup("set_utmp=true");
|
command_info[info_len++] = estrdup("set_utmp=true");
|
||||||
|
if (def_use_pty)
|
||||||
|
command_info[info_len++] = estrdup("use_pty=true");
|
||||||
if (def_utmp_runas)
|
if (def_utmp_runas)
|
||||||
command_info[info_len++] = fmt_string("utmp_user", runas_pw->pw_name);
|
command_info[info_len++] = fmt_string("utmp_user", runas_pw->pw_name);
|
||||||
#ifdef HAVE_LOGIN_CAP_H
|
#ifdef HAVE_LOGIN_CAP_H
|
||||||
|
Reference in New Issue
Block a user