2004-11-15 22:58:29 +00:00
|
|
|
Summary: User space tools for 2.6 kernel auditing.
|
2004-09-09 03:16:50 +00:00
|
|
|
Name: audit
|
2005-12-05 23:10:00 +00:00
|
|
|
Version: 1.1.2
|
2005-10-04 22:04:36 +00:00
|
|
|
Release: 1
|
2004-09-09 03:16:50 +00:00
|
|
|
License: GPL
|
2004-11-15 22:58:29 +00:00
|
|
|
Group: System Environment/Daemons
|
2004-11-19 22:18:07 +00:00
|
|
|
URL: http://people.redhat.com/sgrubb/audit/
|
2004-09-09 03:16:50 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2004-11-15 22:58:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2005-03-14 21:08:53 +00:00
|
|
|
BuildRequires: libtool
|
2005-06-02 19:43:35 +00:00
|
|
|
BuildRequires: glibc-kernheaders >= 2.4-9.1.95
|
2005-02-11 19:22:21 +00:00
|
|
|
BuildRequires: automake >= 1.9
|
|
|
|
BuildRequires: autoconf >= 2.59
|
2005-01-05 19:13:59 +00:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2004-11-19 22:18:07 +00:00
|
|
|
Requires: chkconfig
|
2004-09-09 03:16:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The audit package contains the user space utilities for
|
2005-10-19 20:12:04 +00:00
|
|
|
storing and searching the audit records generate by
|
2004-09-09 03:16:50 +00:00
|
|
|
the audit subsystem in the Linux 2.6 kernel.
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%package libs
|
|
|
|
Summary: Dynamic library for libaudit
|
2004-11-19 22:18:07 +00:00
|
|
|
License: LGPL
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%description libs
|
|
|
|
The audit-libs package contains the dynamic libraries needed for
|
|
|
|
applications to use the audit framework.
|
|
|
|
|
|
|
|
%package libs-devel
|
|
|
|
Summary: Header files and static library for libaudit
|
|
|
|
License: LGPL
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2005-07-07 15:59:43 +00:00
|
|
|
Requires: glibc-kernheaders >= 2.4-9.1.95
|
2005-01-05 19:13:59 +00:00
|
|
|
|
|
|
|
%description libs-devel
|
|
|
|
The audit-libs-devel package contains the static libraries and header
|
|
|
|
files needed for developing applications that need to use the audit
|
|
|
|
framework libraries.
|
2004-11-19 22:18:07 +00:00
|
|
|
|
2005-11-30 22:08:32 +00:00
|
|
|
%package libs-python
|
|
|
|
Summary: Python bindings for libaudit
|
|
|
|
License: LGPL
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
Requires: glibc-kernheaders >= 2.4-9.1.95
|
|
|
|
|
|
|
|
%description libs-python
|
|
|
|
The audit-libs-python package contains the bindings so that libaudit
|
|
|
|
can be used by python.
|
|
|
|
|
2004-09-09 03:16:50 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2004-11-15 22:58:29 +00:00
|
|
|
autoreconf -fv --install
|
2005-02-20 20:33:50 +00:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2005-11-30 22:08:32 +00:00
|
|
|
%configure --sbindir=/sbin --libdir=/%{_lib}
|
2004-09-09 03:16:50 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-11-15 22:58:29 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/{sbin,etc/{sysconfig,rc.d/init.d}}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
2005-03-14 21:08:53 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
2005-04-01 19:10:36 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_var}/log/audit
|
2004-11-15 22:58:29 +00:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2004-09-09 03:16:50 +00:00
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_includedir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
|
2004-12-13 19:27:06 +00:00
|
|
|
# We manually install this since Makefile doesn't
|
2004-11-19 22:18:07 +00:00
|
|
|
install -m 0644 lib/libaudit.h $RPM_BUILD_ROOT/%{_includedir}
|
2004-12-13 19:27:06 +00:00
|
|
|
# This winds up in the wrong place when libtool is involved
|
2005-02-20 20:43:49 +00:00
|
|
|
mv $RPM_BUILD_ROOT/%{_lib}/libaudit.a $RPM_BUILD_ROOT%{_libdir}
|
2005-03-03 22:48:44 +00:00
|
|
|
curdir=`pwd`
|
|
|
|
cd $RPM_BUILD_ROOT/%{_libdir}
|
2005-07-18 14:56:29 +00:00
|
|
|
LIBNAME=`basename \`ls $RPM_BUILD_ROOT/%{_lib}/libaudit.so.*.*.*\``
|
|
|
|
ln -s ../../%{_lib}/$LIBNAME libaudit.so
|
2005-03-03 22:48:44 +00:00
|
|
|
cd $curdir
|
2005-06-23 21:40:32 +00:00
|
|
|
# Remove these items so they don't get picked up.
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libaudit.so
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libaudit.la
|
2005-11-30 22:08:32 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/_audit.a
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/_audit.la
|
2005-03-03 22:48:44 +00:00
|
|
|
|
2004-09-09 03:16:50 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-04-20 21:33:07 +00:00
|
|
|
%post libs -p /sbin/ldconfig
|
2005-01-05 19:13:59 +00:00
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
%post
|
2005-07-12 14:21:29 +00:00
|
|
|
/sbin/chkconfig --add auditd
|
2004-11-19 22:18:07 +00:00
|
|
|
|
|
|
|
%preun
|
2005-07-14 13:27:33 +00:00
|
|
|
if [ $1 -eq 0 ]; then
|
2004-11-19 22:18:07 +00:00
|
|
|
/sbin/service auditd stop > /dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del auditd
|
|
|
|
fi
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%postun libs
|
|
|
|
/sbin/ldconfig 2>/dev/null
|
|
|
|
|
2004-11-19 22:18:07 +00:00
|
|
|
%postun
|
|
|
|
if [ $1 -ge 1 ]; then
|
2005-08-22 21:40:25 +00:00
|
|
|
/sbin/service auditd condrestart > /dev/null 2>&1 || :
|
2004-11-19 22:18:07 +00:00
|
|
|
fi
|
|
|
|
|
2005-01-05 19:13:59 +00:00
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root)
|
2005-02-20 20:43:49 +00:00
|
|
|
%attr(755,root,root) /%{_lib}/libaudit.*
|
2005-01-05 19:13:59 +00:00
|
|
|
|
|
|
|
%files libs-devel
|
2004-11-19 22:18:07 +00:00
|
|
|
%defattr(-,root,root)
|
2005-03-03 22:48:44 +00:00
|
|
|
%{_libdir}/libaudit.a
|
|
|
|
%{_libdir}/libaudit.so
|
2004-11-19 22:18:07 +00:00
|
|
|
%{_includedir}/libaudit.h
|
2004-12-03 20:58:39 +00:00
|
|
|
%{_mandir}/man3/*
|
2004-11-19 22:18:07 +00:00
|
|
|
|
2005-11-30 22:08:32 +00:00
|
|
|
%files libs-python
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/python2.4/site-packages/_audit.so
|
|
|
|
/usr/lib/python2.4/site-packages/audit.py*
|
|
|
|
|
2004-09-09 03:16:50 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2005-11-09 22:48:47 +00:00
|
|
|
%doc README COPYING ChangeLog sample.rules contrib/capp.rules contrib/lspp.rules init.d/auditd.cron
|
2004-11-15 22:58:29 +00:00
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*
|
2005-10-19 20:12:04 +00:00
|
|
|
%attr(750,root,root) /sbin/auditctl
|
|
|
|
%attr(750,root,root) /sbin/auditd
|
2005-04-23 21:15:11 +00:00
|
|
|
%attr(750,root,root) /sbin/ausearch
|
2005-10-04 22:04:36 +00:00
|
|
|
%attr(750,root,root) /sbin/aureport
|
2005-04-20 21:33:07 +00:00
|
|
|
%attr(750,root,root) /sbin/autrace
|
2005-11-09 22:48:47 +00:00
|
|
|
%attr(750,root,root) /sbin/audispd
|
2004-11-15 22:58:29 +00:00
|
|
|
%attr(755,root,root) /etc/rc.d/init.d/auditd
|
2005-04-01 19:10:36 +00:00
|
|
|
%attr(750,root,root) %{_var}/log/audit
|
2004-12-10 22:13:10 +00:00
|
|
|
%config(noreplace) %attr(640,root,root) /etc/auditd.conf
|
2005-02-11 19:22:21 +00:00
|
|
|
%config(noreplace) %attr(640,root,root) /etc/audit.rules
|
2004-11-15 22:58:29 +00:00
|
|
|
%config(noreplace) %attr(640,root,root) /etc/sysconfig/auditd
|
|
|
|
|
2004-09-09 03:16:50 +00:00
|
|
|
|
|
|
|
%changelog
|
2005-12-05 23:10:00 +00:00
|
|
|
* Thu Dec 5 2005 Steve Grubb <sgrubb@redhat.com> 1.1.2-1
|
|
|
|
- Add more message types
|
|
|
|
|
2005-11-30 22:08:32 +00:00
|
|
|
* Wed Nov 30 2005 Steve Grubb <sgrubb@redhat.com> 1.1.1-1
|
|
|
|
- Add support for alpha processors
|
|
|
|
- Update the audisp code
|
|
|
|
- Add locale code in ausearch and aureport
|
|
|
|
- Add new rule operator patch
|
|
|
|
- Add exclude filter patch
|
|
|
|
- Cleanup make files
|
|
|
|
- Add python bindings
|
|
|
|
|
2005-11-09 22:48:47 +00:00
|
|
|
* Wed Nov 9 2005 Steve Grubb <sgrubb@redhat.com> 1.1-1
|
|
|
|
- Add initial version of audisp. Just a placeholder at this point
|
|
|
|
- Remove -t from auditctl
|
|
|
|
|
2005-11-07 22:58:52 +00:00
|
|
|
* Mon Nov 7 2005 Steve Grubb <sgrubb@redhat.com> 1.0.12-1
|
|
|
|
- Add 2 more summary reports
|
|
|
|
- Add 2 more message types
|
|
|
|
|