summaryrefslogtreecommitdiff
path: root/libpam/pam_start.c
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2006-01-12 10:06:49 +0000
committerTomas Mraz <tm@t8m.info>2006-01-12 10:06:49 +0000
commit94483545da687d9dba81175575d07ba9f77a3eb5 (patch)
treef401c4f560af05cf6bf492eb8a36183b80b80d8d /libpam/pam_start.c
parent52fa7eff1bc0d56ad8ba8df0764d2c93383e17ef (diff)
Relevant BUGIDs:
Purpose of commit: new feature Commit summary: --------------- 2006-01-12 Steve Grubb <sgrubb@redhat.com> * configure.in: Add check for audit library. * libpam/Makefile.am (libpam_la_LDFLAGS): Add LIBAUDIT. (libpam_la_SOURCES): Add pam_audit.c. * libpam/pam_account.c (pam_acct_mgmt): Add _pam_auditlog() call. * libpam/pam_auth.c (pam_authenticate), (pam_setcred): Likewise. * libpam/pam_password.c (pam_chauthtok): Likewise. * libpam/pam_session.c (pam_open_session), (pam_close_session): Likewise. * libpam/pam_private.h: Add audit_state member to pam_handle, declare _pam_auditlog and _pam_audit_end. * libpam/pam_start.c (pam_start): Initialize audit_state. * libpam/pam_audit.c: New file with _pam_auditlog and _pam_audit_end implementation. * libpam/pam_end.c (pam_end): Add _pam_audit_end() call. * NEWS: Note about added auditing.
Diffstat (limited to 'libpam/pam_start.c')
-rw-r--r--libpam/pam_start.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpam/pam_start.c b/libpam/pam_start.c
index 63f58f5b..e1d30034 100644
--- a/libpam/pam_start.c
+++ b/libpam/pam_start.c
@@ -88,6 +88,9 @@ int pam_start (
(*pamh)->oldauthtok = NULL;
(*pamh)->fail_delay.delay_fn_ptr = NULL;
(*pamh)->former.choice = PAM_NOT_STACKED;
+#if HAVE_LIBAUDIT
+ (*pamh)->audit_state = 0;
+#endif
if (((*pamh)->pam_conversation = (struct pam_conv *)
malloc(sizeof(struct pam_conv))) == NULL) {