- Fix memleak in auditd eoe code

This commit is contained in:
Steve Grubb 2008-04-05 01:38:01 +00:00
parent 5676baffd9
commit 13e2090eff
2 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,13 @@
diff -urp audit-1.7/src/auditd.c audit-1.7.1/src/auditd.c
--- audit-1.7/src/auditd.c 2008-01-01 09:55:36.000000000 -0500
+++ audit-1.7.1/src/auditd.c 2008-04-04 21:19:35.000000000 -0400
@@ -150,7 +150,8 @@ static void distribute_event(struct audi
enqueue_event(rep);
if (yield)
pthread_yield(); /* Let other thread try to log it. */
- }
+ } else
+ free(rep); // This function takes custody of the memory
// FIXME: This is commented out since it fails to work. The
// problem is that the logger thread free's the buffer. Probably

View File

@ -1,5 +1,5 @@
%define sca_version 0.4.6 %define sca_version 0.4.6
%define sca_release 3 %define sca_release 4
%define selinux_variants mls strict targeted %define selinux_variants mls strict targeted
%define selinux_policyver 3.2.5 %define selinux_policyver 3.2.5
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@ -7,13 +7,14 @@
Summary: User space tools for 2.6 kernel auditing Summary: User space tools for 2.6 kernel auditing
Name: audit Name: audit
Version: 1.7 Version: 1.7
Release: 2%{?dist} Release: 3%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://people.redhat.com/sgrubb/audit/ URL: http://people.redhat.com/sgrubb/audit/
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
Patch1: audit-1.7.1-overflow.patch Patch1: audit-1.7.1-overflow.patch
Patch2: audit-1.7.1-lsb-headers.patch Patch2: audit-1.7.1-lsb-headers.patch
Patch3: audit-1.7.1-eoe-memleak.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext-devel intltool libtool swig python-devel BuildRequires: gettext-devel intltool libtool swig python-devel
BuildRequires: kernel-headers >= 2.6.18 BuildRequires: kernel-headers >= 2.6.18
@ -99,6 +100,7 @@ A graphical utility for editing audit configuration.
%setup -q %setup -q
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
mkdir zos-remote-policy mkdir zos-remote-policy
cp -p audisp/plugins/zos-remote/policy/audispd-zos-remote.* zos-remote-policy cp -p audisp/plugins/zos-remote/policy/audispd-zos-remote.* zos-remote-policy
@ -319,6 +321,9 @@ fi
%config(noreplace) %{_sysconfdir}/security/console.apps/system-config-audit-server %config(noreplace) %{_sysconfdir}/security/console.apps/system-config-audit-server
%changelog %changelog
* Fri Apr 04 2008 Steve Grubb <sgrubb@redhat.com> 1.7-3
- Fix memleak in auditd eoe code
* Tue Apr 01 2008 Steve Grubb <sgrubb@redhat.com> 1.7-2 * Tue Apr 01 2008 Steve Grubb <sgrubb@redhat.com> 1.7-2
- Remove LSB headers from init scripts - Remove LSB headers from init scripts
- Fix buffer overflow in audit_log_user_command again - Fix buffer overflow in audit_log_user_command again