diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-24 13:13:18 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-24 13:13:18 +0000 |
commit | 31668ed6f0bf6d2b1c6d621cca42aee0daf23a65 (patch) | |
tree | 9f6e10e193e23fe49147939a969d3ff4f71091a8 /modules/pam_unix/pam_unix_acct.c | |
parent | 554a5def9a2eddc643cf157208ddfe7fee444240 (diff) | |
download | pam-31668ed6f0bf6d2b1c6d621cca42aee0daf23a65.tar.gz pam-31668ed6f0bf6d2b1c6d621cca42aee0daf23a65.tar.bz2 pam-31668ed6f0bf6d2b1c6d621cca42aee0daf23a65.zip |
Relevant BUGIDs:
Purpose of commit:
Commit summary:
---------------
bugfix: 440107: Add various patches from Linux Distibutors to make
PAM modules reentrant.
Diffstat (limited to 'modules/pam_unix/pam_unix_acct.c')
-rw-r--r-- | modules/pam_unix/pam_unix_acct.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c index 58ba93c1..f87b13b1 100644 --- a/modules/pam_unix/pam_unix_acct.c +++ b/modules/pam_unix/pam_unix_acct.c @@ -53,6 +53,7 @@ #define PAM_SM_ACCOUNT #include <security/pam_modules.h> +#include <security/_pam_modutil.h> #ifndef LINUX_PAM #include <security/pam_appl.h> @@ -89,7 +90,7 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t * pamh, int flags, return PAM_USER_UNKNOWN; } - pwent = getpwnam(uname); + pwent = _pammodutil_getpwnam(pamh, uname); if (!pwent) { _log_err(LOG_ALERT, pamh ,"could not identify user (from getpwnam(%s))" @@ -113,7 +114,7 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t * pamh, int flags, return PAM_CRED_INSUFFICIENT; } } - spent = getspnam( uname ); + spent = _pammodutil_getspnam (pamh, uname); if (save_uid == pwent->pw_uid) setreuid( save_uid, save_euid ); else { @@ -123,7 +124,7 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t * pamh, int flags, } } else if (!strcmp( pwent->pw_passwd, "x" )) { - spent = getspnam(uname); + spent = _pammodutil_getspnam (pamh, uname); } else { return PAM_SUCCESS; } |