From c65ff125aa34d28d3e864b43112ea91b129e605d Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Tue, 26 Mar 2019 18:15:26 -0400 Subject: [PATCH] New upstream git snapshot prerelease which fixes a memory leak --- .gitignore | 1 + audit-2.8.6-memleak.patch | 20 ++++++++++++++++++++ audit.spec | 7 ++++++- sources | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 audit-2.8.6-memleak.patch diff --git a/.gitignore b/.gitignore index c6b332b..d6066b6 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,4 @@ audit-2.0.4.tar.gz /audit-3.0-alpha3.tar.gz /audit-3.0-alpha5.tar.gz /audit-3.0-alpha6.tar.gz +/audit-3.0-alpha7.tar.gz diff --git a/audit-2.8.6-memleak.patch b/audit-2.8.6-memleak.patch new file mode 100644 index 0000000..77a3b40 --- /dev/null +++ b/audit-2.8.6-memleak.patch @@ -0,0 +1,20 @@ +diff --git a/auparse/auparse.c b/auparse/auparse.c +index 650db02..fe0feb1 100644 +--- a/auparse/auparse.c ++++ b/auparse/auparse.c +@@ -259,15 +259,6 @@ static event_list_t *au_get_ready_event(auparse_state_t *au, int is_test) + if (lowest && lowest->status == EBS_COMPLETE) { + lowest->status = EBS_EMPTY; + au->au_ready--; +- // Try to consolidate the array so that we iterate +- // over a smaller portion next time +- if (lowest == &lol->array[lol->maxi]) { +- au_lolnode *ptr = lowest; +- while (ptr->status == EBS_EMPTY && lol->maxi > 0) { +- lol->maxi--; +- ptr = &lol->array[lol->maxi]; +- } +- } + return lowest->l; + } + diff --git a/audit.spec b/audit.spec index 33b78ae..0d6f66d 100644 --- a/audit.spec +++ b/audit.spec @@ -3,11 +3,12 @@ Summary: User space tools for 2.6 kernel auditing Name: audit Version: 3.0 -Release: 0.6.20181218gitbdb72c0%{?dist} +Release: 0.7.20190326git03e7489%{?dist} License: GPLv2+ URL: http://people.redhat.com/sgrubb/audit/ Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}-alpha6.tar.gz Source1: https://www.gnu.org/licenses/lgpl-2.1.txt +Patch1: audit-2.8.6-memleak.patch BuildRequires: gcc swig BuildRequires: openldap-devel @@ -98,6 +99,7 @@ Management Facility) database, through an IBM Tivoli Directory Server %prep %setup -q +%patch1 -p1 cp %{SOURCE1} . %build @@ -264,6 +266,9 @@ fi %attr(750,root,root) /sbin/audispd-zos-remote %changelog +* Tue Mar 26 2019 Steve Grubb 3.0-0.7.20190326git03e7489 +- New upstream git snapshot prerelease which fixes a memory leak + * Thu Jan 31 2019 Fedora Release Engineering - 3.0-0.6.20181218gitbdb72c0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index ab34c30..6147384 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (audit-3.0-alpha6.tar.gz) = f34a4d77688689c7d64c234aac7a77288fe06b72ad6867255f1598f5ca3e8d946cccef6cd4c59935303fe7d92d9ca9497f3ba23705db6f6f4d7b9ac28a8e04ee +SHA512 (audit-3.0-alpha7.tar.gz) = 3ef27371bd485b805ce36f4b3dc9cc34055cb127226a7b9b9cb9773b6dc341d562069cd8fd09cb43f59335c322ebe28de8bb844b4557cb9e36e57f05e31f81d9