Undo fix to libaudit.h before installing

This commit is contained in:
Steve Grubb 2022-02-24 08:24:30 -05:00
parent 0d31f225fa
commit 04a979b02d
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -urp audit-3.0.8.orig/lib/libaudit.h audit-3.0.8/lib/libaudit.h
--- audit-3.0.8.orig/lib/libaudit.h 2022-02-14 14:14:08.000000000 -0500
+++ audit-3.0.8/lib/libaudit.h 2022-02-23 13:35:52.638340789 -0500
@@ -39,7 +39,7 @@ extern "C" {
#include <stdint.h>
#include <sys/socket.h>
#include <linux/netlink.h>
-#include "audit.h"
+#include <linux/audit.h>
#include <stdarg.h>
#include <syslog.h>

View File

@ -2,7 +2,7 @@
Summary: User space tools for kernel auditing
Name: audit
Version: 3.0.7
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+
URL: http://people.redhat.com/sgrubb/audit/
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
@ -10,6 +10,7 @@ Source1: https://www.gnu.org/licenses/lgpl-2.1.txt
Patch1: audit-3.0.7-func-attr.patch
Patch2: audit-3.0.7-gcc-flags.patch
Patch3: audit-3.0.8-flex-array-workaround.patch
Patch4: audit-3.0.8-undo-flex-array.patch
BuildRequires: make gcc
BuildRequires: krb5-devel
@ -118,6 +119,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_lib}
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/audit
mkdir -p --mode=0700 $RPM_BUILD_ROOT/%{_var}/log/audit
mkdir -p $RPM_BUILD_ROOT/%{_var}/spool/audit
%patch4 -p1
make DESTDIR=$RPM_BUILD_ROOT install
# Remove these items so they don't get picked up.
@ -258,6 +260,9 @@ fi
%attr(750,root,root) %{_sbindir}/audispd-zos-remote
%changelog
* Thu Feb 24 2022 Steve Grubb <sgrubb@redhat.com> 3.0.7-3
- Undo fix to libaudit.h before installing
* Mon Feb 14 2022 Steve Grubb <sgrubb@redhat.com> 3.0.7-2
- Adjust sample-rules dir permissions
- Add support for new access/dealloc function attributes