Look up runas user by name, not euid, where possible.

Fixes a problem when there are multiple users with the same user-ID
where the PAM session modules could be called with the wrong user name.
Debian bug #734752
This commit is contained in:
Todd C. Miller
2020-05-06 16:38:08 -06:00
parent ea99394fcf
commit 4dba87262a
2 changed files with 6 additions and 1 deletions

View File

@@ -161,6 +161,7 @@ struct command_details {
struct passwd *pw;
GETGROUPS_T *groups;
const char *command;
const char *runas_user;
const char *cwd;
const char *login_class;
const char *chroot;