PAM_LOG_DEBUG -> PAM_LOG_LIBDEBUG
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@649 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
f6205baa20
commit
0da2f07cfb
|
@ -69,12 +69,12 @@ openpam_borrow_cred(pam_handle_t *pamh,
|
|||
ENTERI(pwd->pw_uid);
|
||||
r = pam_get_data(pamh, PAM_SAVED_CRED, &scredp);
|
||||
if (r == PAM_SUCCESS && scredp != NULL) {
|
||||
openpam_log(PAM_LOG_DEBUG,
|
||||
openpam_log(PAM_LOG_LIBDEBUG,
|
||||
"already operating under borrowed credentials");
|
||||
RETURNC(PAM_SYSTEM_ERR);
|
||||
}
|
||||
if (geteuid() != 0 && geteuid() != pwd->pw_uid) {
|
||||
openpam_log(PAM_LOG_DEBUG, "called with non-zero euid: %d",
|
||||
openpam_log(PAM_LOG_LIBDEBUG, "called with non-zero euid: %d",
|
||||
(int)geteuid());
|
||||
RETURNC(PAM_PERM_DENIED);
|
||||
}
|
||||
|
|
|
@ -112,12 +112,12 @@ openpam_dispatch(pam_handle_t *pamh,
|
|||
debug = (openpam_get_option(pamh, "debug") != NULL);
|
||||
if (debug)
|
||||
++openpam_debug;
|
||||
openpam_log(PAM_LOG_DEBUG, "calling %s() in %s",
|
||||
openpam_log(PAM_LOG_LIBDEBUG, "calling %s() in %s",
|
||||
pam_sm_func_name[primitive], chain->module->path);
|
||||
r = (chain->module->func[primitive])(pamh, flags,
|
||||
chain->optc, (const char **)chain->optv);
|
||||
pamh->current = NULL;
|
||||
openpam_log(PAM_LOG_DEBUG, "%s: %s(): %s",
|
||||
openpam_log(PAM_LOG_LIBDEBUG, "%s: %s(): %s",
|
||||
chain->module->path, pam_sm_func_name[primitive],
|
||||
pam_strerror(pamh, r));
|
||||
if (debug)
|
||||
|
@ -152,7 +152,7 @@ openpam_dispatch(pam_handle_t *pamh,
|
|||
err = r;
|
||||
if ((chain->flag == PAM_REQUIRED ||
|
||||
chain->flag == PAM_BINDING) && !fail) {
|
||||
openpam_log(PAM_LOG_DEBUG, "required module failed");
|
||||
openpam_log(PAM_LOG_LIBDEBUG, "required module failed");
|
||||
fail = 1;
|
||||
err = r;
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ openpam_dispatch(pam_handle_t *pamh,
|
|||
* immediately.
|
||||
*/
|
||||
if (chain->flag == PAM_REQUISITE) {
|
||||
openpam_log(PAM_LOG_DEBUG, "requisite module failed");
|
||||
openpam_log(PAM_LOG_LIBDEBUG, "requisite module failed");
|
||||
fail = 1;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ openpam_dynamic(const char *path)
|
|||
*/
|
||||
#if 0
|
||||
if (module->func[i] == NULL)
|
||||
openpam_log(PAM_LOG_DEBUG, "%s: %s(): %s",
|
||||
openpam_log(PAM_LOG_LIBDEBUG, "%s: %s(): %s",
|
||||
path, pam_sm_func_name[i], dlerror());
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue