Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins/pam: Check the user didn't change during PAM transaction
PAM modules can change the user during their execution, in such case, sudo would still use the user that has been provided giving potentially access to another user with the credentials of another one. So prevent this to happen, by ensuring that the final PAM user is matching the one which started the transaction
- Loading branch information