From 0a1d445d1c269899e9695f799b6814c4e8ae54be Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Fri, 5 Oct 2007 15:42:18 +0000 Subject: [PATCH] - Fix syscall name to number conversion in libaudit. --- audit-1.6.3-noretry.patch | 20 ++++++++++++++++---- audit.spec | 7 +++++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/audit-1.6.3-noretry.patch b/audit-1.6.3-noretry.patch index 2f75523..ccf9842 100644 --- a/audit-1.6.3-noretry.patch +++ b/audit-1.6.3-noretry.patch @@ -1,7 +1,19 @@ -diff -urp audit-1.6.3.orig/src/auditd.c audit-1.6.3/src/auditd.c ---- audit-1.6.3.orig/src/auditd.c 2007-10-01 13:56:21.000000000 -0400 -+++ audit-1.6.3/src/auditd.c 2007-10-01 13:59:28.000000000 -0400 -@@ -136,8 +136,8 @@ static void distribute_event(struct audi +diff -urp audit-1.6.2.orig/lib/lookup_table.c audit-1.6.2/lib/lookup_table.c +--- audit-1.6.2.orig/lib/lookup_table.c 2007-10-05 10:30:25.000000000 -0400 ++++ audit-1.6.2/lib/lookup_table.c 2007-10-05 10:32:01.000000000 -0400 +@@ -483,7 +483,7 @@ int audit_name_to_msg_type(const char *m + strncpy(buf, msg_type + 8, len); + errno = 0; + return strtol(buf, NULL, 10); +- } else if (isdigit(msg_type)) { ++ } else if (isdigit(*msg_type)) { + errno = 0; + return strtol(msg_type, NULL, 10); + } +diff -urp audit-1.6.2.orig/src/auditd.c audit-1.6.2/src/auditd.c +--- audit-1.6.2.orig/src/auditd.c 2007-10-05 10:31:35.000000000 -0400 ++++ audit-1.6.2/src/auditd.c 2007-10-05 10:30:04.000000000 -0400 +@@ -135,8 +135,8 @@ static void distribute_event(struct audi } /* Last chance to send...maybe the pipe is empty now. */ diff --git a/audit.spec b/audit.spec index 12e1cb3..e59229d 100644 --- a/audit.spec +++ b/audit.spec @@ -1,10 +1,10 @@ %define sca_version 0.4.3 -%define sca_release 6 +%define sca_release 7 Summary: User space tools for 2.6 kernel auditing Name: audit Version: 1.6.2 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Group: System Environment/Daemons URL: http://people.redhat.com/sgrubb/audit/ @@ -217,6 +217,9 @@ fi %config(noreplace) %{_sysconfdir}/security/console.apps/system-config-audit-server %changelog +* Fri Oct 5 2007 Steve Grubb 1.6.2-3 +- Fix syscall name to number conversion in libaudit. + * Mon Oct 1 2007 Steve Grubb 1.6.2-2 - Don't retry if the rt queue is full.