Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 156601 Details for
Bug 243204
CVE-2007-3102 audit logging of failed logins
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch addressing the issues listed above
pam-0.99.6.2-audit-log-fix.patch (text/plain), 1.91 KB, created by
Steve Grubb
on 2007-06-08 19:02:30 UTC
(
hide
)
Description:
Patch addressing the issues listed above
Filename:
MIME Type:
Creator:
Steve Grubb
Created:
2007-06-08 19:02:30 UTC
Size:
1.91 KB
patch
obsolete
>diff -urp Linux-PAM-0.99.6.2.orig/configure.in Linux-PAM-0.99.6.2/configure.in >--- Linux-PAM-0.99.6.2.orig/configure.in 2007-06-07 10:45:43.000000000 -0400 >+++ Linux-PAM-0.99.6.2/configure.in 2007-06-07 10:51:18.000000000 -0400 >@@ -317,7 +317,7 @@ AM_CONDITIONAL([HAVE_LIBCRACK], [test ! > > dnl Look for Linux Auditing library - see documentation > AC_CHECK_HEADER([libaudit.h], >- [AC_CHECK_LIB(audit, audit_log_user_message, LIBAUDIT=-laudit, LIBAUDIT="")] >+ [AC_CHECK_LIB(audit, audit_log_acct_message, LIBAUDIT=-laudit, LIBAUDIT="")] > ) > AC_SUBST(LIBAUDIT) > if test ! -z "$LIBAUDIT" -a "ac_cv_header_libaudit_h" != "no" ; then >diff -urp Linux-PAM-0.99.6.2.orig/libpam/pam_audit.c Linux-PAM-0.99.6.2/libpam/pam_audit.c >--- Linux-PAM-0.99.6.2.orig/libpam/pam_audit.c 2007-06-07 10:46:18.000000000 -0400 >+++ Linux-PAM-0.99.6.2/libpam/pam_audit.c 2007-06-07 11:17:30.000000000 -0400 >@@ -26,13 +26,12 @@ _pam_audit_writelog(pam_handle_t *pamh, > const char *message, int retval) > { > int rc; >- char buf[256]; >+ char buf[32]; > >- snprintf(buf, sizeof(buf), "PAM: %s acct=%s ", message, >- (retval != PAM_USER_UNKNOWN && pamh->user) ? pamh->user : "?"); >- >- rc = audit_log_user_message( audit_fd, type, buf, >- pamh->rhost, NULL, pamh->tty, retval == PAM_SUCCESS ); >+ snprintf(buf, sizeof(buf), "PAM:%s", message); >+ rc = audit_log_acct_message( audit_fd, type, NULL, buf, >+ (retval != PAM_USER_UNKNOWN && pamh->user) ? pamh->user : "?", >+ -1, pamh->rhost, NULL, pamh->tty, retval == PAM_SUCCESS ); > > pamh->audit_state |= PAMAUDIT_LOGGED; > return rc; >@@ -66,11 +65,11 @@ _pam_auditlog(pam_handle_t *pamh, int ac > type = AUDIT_USER_AUTH; > break; > case PAM_OPEN_SESSION: >- message = "session open"; >+ message = "session_open"; > type = AUDIT_USER_START; > break; > case PAM_CLOSE_SESSION: >- message = "session close"; >+ message = "session_close"; > type = AUDIT_USER_END; > break; > case PAM_ACCOUNT:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 243204
: 156601