[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: pam_setcred & pam_open_session

What a mess. The basic problem is that pam_setcred is an interesting
concept without much of a formal definition. (For example, when/how will
a module require credentials be refreshed?)

The original PAM RFC:


Contains an explicit example (see "APPENDIX B. SAMPLE PAM APPLICATION")
where it is pretty explicit that the setcred(pamh, PAM_ESTABLISH_CRED)
call happens after the session is opened.

However, as commented here (by Ted in May of this year):


this doesn't actually make much sense...

Looking through the sources for Linux-PAM, I believe that we presently
advocate the reverse policy from that which rfc86.0 was suggesting.
Indeed, I believe that all of the Linux-PAM sources code and
documentation presently recommend setcred before open_session (this is
from documentation of February this year):


What currently confuses me about all this is the relative timing of
these changes. Perhaps I was just cleaning house, or perhaps someone
pointed out the incosistent state of the world at around that time?
Whatever the case, this appears to have been all dealt with as part of
Bug 229775.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []