Summary: | No AFS tokens at login - saveGids() invoked too early? | ||
---|---|---|---|
Product: | [Unmaintained] kdm | Reporter: | Hans Ranke <Ranke> |
Component: | general | Assignee: | kdm bugs tracker <kdm-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Hans Ranke
2007-05-08 16:23:04 UTC
imo, the pam module is broken. gids should be set in pam_setcred, not pam_open_session. please check with the author of this pam_krb5 module. Well, in theory, you are probably right, this is about setting credentials. However, there are reasons why PAG setup is often done in the session management components of PAM. What pam_krb5 does for AFS, is (among others) setting up a PAG (process authentication group). A PAG is a credential that is an attribute to the session - not to an user account. On modern linux kernels, PAG setup involves both setting up a special key in the process' keyring and setting a session-specific Group ID. Pam_krb5 will optionally do the PAG setup in pam_setcred(). But then the PAG key will be destroyed by pam_keyinit during session setup. Thus, PAG setup needs to be performed in the session setup, after pam_keyinit. credentials are always set up in preparation of opening a session. they may depend upon time, location and the weather if the sysadmin wishes so. an additional hint that my interpretation of the pam manuals is correct is the existence of PAM_REFRESH_CRED and a lack of PAM_REFRESH_SESSION or something to that effect. if other modules do the same, they are equally broken. in fact, i've seen no external module that gets the credentials and session setup even remotely right. i tend to close this as INVALID unless some convincing arguments are brought up. compatibility with utterly broken code is no convincing argument (unless is poses a security risk). no convincing arguments |