| Summary: | [PATCH] Allow PAM conversation for pam_setcred for keyboard-interactive authentication | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Tomas Kuthan <tomas.kuthan> | ||||
| Component: | PAM support | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | NEW --- | ||||||
| Severity: | enhancement | ||||||
| Priority: | P5 | ||||||
| Version: | 7.1p2 | ||||||
| Hardware: | SPARC | ||||||
| OS: | Solaris | ||||||
| Attachments: |
|
||||||
|
Description
Tomas Kuthan
2016-03-08 00:05:08 AEDT
Created attachment 2797 [details]
Allow PAM conversation for pam_setcred
This patch moves calling pam_setcred to the end of actual PAM authentication, where there still is a real conversation function available.
If pam_setcred was already called, doesn't call it the second time in do_pam_setcred.
I should have noted the following to the proposed patch above: Although the patch applies, builds and runs standalone, it has an implicit dependency on fix for #2548. Without that fix, it only makes the issue described in #2548 worse: on top of pam_authenticate, pam_acct_mgmt and pam_chautok it would add pam_setcred too into the separate address space of the auxiliary PAM process. That would cause some substantive implications, such as invalid audit context and damaged audit records. |