Skip to content

Various pam changes #982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 5, 2025
Merged

Various pam changes #982

merged 9 commits into from
Feb 5, 2025

Conversation

bjorn3
Copy link
Collaborator

@bjorn3 bjorn3 commented Feb 5, 2025

Remove PamContextBuilder and some misc changes around PAM errors.

It is redundant with the PamErrorType.
None of the uses remaining before this commit had anything to do with
state not being complete.
All callers of close_session ignore errors anyway. Also change
PamContext::close_session to prevent calling pam_close_session again if
a previous explicit call to PamContext::close_session failed.
@bjorn3 bjorn3 requested a review from squell February 5, 2025 09:57
@squell
Copy link
Member

squell commented Feb 5, 2025

If you could also pick up #981 in this PR, that'd be great :-)

@bjorn3 bjorn3 force-pushed the various_pam_changes branch from 46294b8 to bcb680d Compare February 5, 2025 10:19
Mostly copied from og sudo.
This case is only possible when there is a bug in sudo-rs and it is a
fatal error anyway.
@bjorn3 bjorn3 force-pushed the various_pam_changes branch from bcb680d to f543e67 Compare February 5, 2025 12:21
@squell squell added the C-pam PAM library label Feb 5, 2025
@squell squell linked an issue Feb 5, 2025 that may be closed by this pull request
@squell squell enabled auto-merge February 5, 2025 12:37
@squell squell merged commit 42dfd33 into main Feb 5, 2025
14 checks passed
@squell squell deleted the various_pam_changes branch February 5, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-pam PAM library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve PAM error messages
2 participants