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:
@@ -284,6 +284,7 @@ main(int argc, char *argv[], char *envp[])
|
||||
}
|
||||
/* Setup command details and run command/edit. */
|
||||
command_info_to_details(command_info, &command_details);
|
||||
command_details.tty = user_details.tty;
|
||||
command_details.argv = argv_out;
|
||||
command_details.envp = user_env_out;
|
||||
if (ISSET(sudo_mode, MODE_LOGIN_SHELL))
|
||||
|
Reference in New Issue
Block a user