diff options
author | Tomas Mraz <tm@t8m.info> | 2006-01-12 10:06:49 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2006-01-12 10:06:49 +0000 |
commit | 94483545da687d9dba81175575d07ba9f77a3eb5 (patch) | |
tree | f401c4f560af05cf6bf492eb8a36183b80b80d8d /libpam/pam_private.h | |
parent | 52fa7eff1bc0d56ad8ba8df0764d2c93383e17ef (diff) | |
download | pam-94483545da687d9dba81175575d07ba9f77a3eb5.tar.gz pam-94483545da687d9dba81175575d07ba9f77a3eb5.tar.bz2 pam-94483545da687d9dba81175575d07ba9f77a3eb5.zip |
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_private.h')
-rw-r--r-- | libpam/pam_private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libpam/pam_private.h b/libpam/pam_private.h index 2929a2f6..ce255452 100644 --- a/libpam/pam_private.h +++ b/libpam/pam_private.h @@ -150,6 +150,10 @@ struct pam_handle { event driven applications */ const char *mod_name; /* Name of the module currently executed */ int choice; /* Which function we call from the module */ + +#if HAVE_LIBAUDIT + int audit_state; /* keep track of reported audit messages */ +#endif }; /* Values for select arg to _pam_dispatch() */ @@ -286,6 +290,12 @@ if ((pamh) == NULL) { \ #define __PAM_TO_APP(pamh) \ do { (pamh)->caller_is = _PAM_CALLED_FROM_APP; } while (0) + +#if HAVE_LIBAUDIT +extern int _pam_auditlog(pam_handle_t *pamh, int action, int retval, int flags); +extern int _pam_audit_end(pam_handle_t *pamh, int pam_status); +#endif + /* * Copyright (C) 1995 by Red Hat Software, Marc Ewing * Copyright (c) 1996-8,2001 by Andrew G. Morgan <morgan@kernel.org> |