Fix restoring the file context of the user's tty with SELinux.

Also fix broken tty labeling when running a command in a pty.
Includes a fix for a typo introduced in the last change set.
This commit is contained in:
Todd C. Miller
2019-09-27 15:32:49 -06:00
parent b7b3fb72d0
commit 112dff276a
7 changed files with 50 additions and 25 deletions

View File

@@ -171,6 +171,7 @@ struct command_details {
const char *selinux_role;
const char *selinux_type;
const char *utmp_user;
const char *tty;
char **argv;
char **envp;
#ifdef HAVE_PRIV_SET