diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2001-02-05 06:50:41 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2001-02-05 06:50:41 +0000 |
commit | 547e42fc5cb7c0208eeb002809c3d270334af114 (patch) | |
tree | 8c1653cfb589e3d69c80611c3808a47320cdb2fa /libpam/pam_private.h | |
parent | b89c0d4ccae2f48cfa1e28423e2fe86e1d435ec5 (diff) | |
download | pam-547e42fc5cb7c0208eeb002809c3d270334af114.tar.gz pam-547e42fc5cb7c0208eeb002809c3d270334af114.tar.bz2 pam-547e42fc5cb7c0208eeb002809c3d270334af114.zip |
Relevant BUGIDs: 129775
Purpose of commit: bugfix
Commit summary:
---------------
This bugfix leads to backwardly incompatable behavior with earlier
releases of Linux-PAM.
Note, this cleans up the setcred/session and chauthtok stacks in
such a way that it is no longer preferred that the setcred module
always return the same error code as the auth components of said
modules did.
This means behavior should be a great deal more sane. It also gives
meaning to the unique return codes that are available to pam_sm_setcred.
[I'm sure that when we add support for credential relevant events,
this change will be critical.]
Diffstat (limited to 'libpam/pam_private.h')
-rw-r--r-- | libpam/pam_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpam/pam_private.h b/libpam/pam_private.h index 2aa90bd4..52f6c5e6 100644 --- a/libpam/pam_private.h +++ b/libpam/pam_private.h @@ -47,6 +47,9 @@ struct handler { int must_fail; int (*func)(pam_handle_t *pamh, int flags, int argc, char **argv); int actions[_PAM_RETURN_VALUES]; + /* set by authenticate, open_session, chauthtok(1st) + consumed by setcred, close_session, chauthtok(2nd) */ + int cached_retval; int *cached_retval_p; int argc; char **argv; struct handler *next; |