Steve Grubb 654a5c
Summary: User space tools for 2.6 kernel auditing.
cvsdist 2c6ba5
Name: audit
Steve Grubb 78412f
Version: 0.6.4
Steve Grubb 78412f
Release: 1
cvsdist 2c6ba5
License: GPL
Steve Grubb 654a5c
Group: System Environment/Daemons
Steve Grubb c5201d
URL: http://people.redhat.com/sgrubb/audit/
cvsdist 2c6ba5
Source0: %{name}-%{version}.tar.gz
David Woodhouse 668644
Patch0: audit-0.6.3-stdint.patch
Steve Grubb 654a5c
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Steve Grubb 72b129
BuildRequires: glibc-kernheaders pam-devel libtool
Steve Grubb 8fd9fa
BuildRequires: automake >= 1.9
Steve Grubb 8fd9fa
BuildRequires: autoconf >= 2.59
Steve Grubb 75f480
Requires: %{name}-libs = %{version}-%{release}
Steve Grubb c5201d
Requires: chkconfig
cvsdist 2c6ba5
cvsdist 2c6ba5
%description
cvsdist 2c6ba5
The audit package contains the user space utilities for
cvsdist 2c6ba5
storing and processing the audit records generate by
cvsdist 2c6ba5
the audit subsystem in the Linux 2.6 kernel.
cvsdist 2c6ba5
Steve Grubb 75f480
%package libs
Steve Grubb 75f480
Summary: Dynamic library for libaudit
Steve Grubb c5201d
License: LGPL
Steve Grubb c5201d
Group: Development/Libraries
Steve Grubb c5201d
Steve Grubb 75f480
%description libs
Steve Grubb 75f480
The audit-libs package contains the dynamic libraries needed for 
Steve Grubb 75f480
applications to use the audit framework.
Steve Grubb 75f480
Steve Grubb 75f480
%package libs-devel
Steve Grubb 75f480
Summary: Header files and static library for libaudit
Steve Grubb 75f480
License: LGPL
Steve Grubb 75f480
Group: Development/Libraries
Steve Grubb 75f480
Requires: %{name}-libs = %{version}-%{release}
David Woodhouse 668644
Requires: glibc-kernheaders >= 2.4-9.1.90
Steve Grubb 75f480
Steve Grubb 75f480
%description libs-devel
Steve Grubb 75f480
The audit-libs-devel package contains the static libraries and header 
Steve Grubb 75f480
files needed for developing applications that need to use the audit 
Steve Grubb 75f480
framework libraries.
Steve Grubb c5201d
cvsdist 2c6ba5
%prep
cvsdist 2c6ba5
%setup -q
David Woodhouse 668644
%patch0 -p1
cvsdist 2c6ba5
cvsdist 2c6ba5
%build
Steve Grubb 654a5c
autoreconf -fv --install
Steve Grubb 56b158
export CFLAGS="$RPM_OPT_FLAGS"
Steve Grubb 56b158
./configure --sbindir=/sbin --mandir=%{_mandir} --libdir=/%{_lib} --with-pam=yes
cvsdist 2c6ba5
make
cvsdist 2c6ba5
cvsdist 2c6ba5
%install
cvsdist 2c6ba5
rm -rf $RPM_BUILD_ROOT
Steve Grubb 654a5c
mkdir -p $RPM_BUILD_ROOT/{sbin,etc/{sysconfig,rc.d/init.d}}
Steve Grubb 654a5c
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
Steve Grubb 19531f
mkdir -p $RPM_BUILD_ROOT/%{_lib}/security
Steve Grubb 654a5c
make DESTDIR=$RPM_BUILD_ROOT install
cvsdist 2c6ba5
Steve Grubb c5201d
mkdir -p $RPM_BUILD_ROOT/%{_includedir}
Steve Grubb c5201d
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
Steve Grubb aad931
# We manually install this since Makefile doesn't
Steve Grubb c5201d
install -m 0644 lib/libaudit.h $RPM_BUILD_ROOT/%{_includedir}
Steve Grubb aad931
# This winds up in the wrong place when libtool is involved
Steve Grubb 19531f
mv $RPM_BUILD_ROOT/%{_lib}/libaudit.a $RPM_BUILD_ROOT%{_libdir}
Steve Grubb 19531f
mv $RPM_BUILD_ROOT/%{_lib}/libaudit.la $RPM_BUILD_ROOT%{_libdir}
cvsdist 2c6ba5
cvsdist 2c6ba5
%clean
cvsdist 2c6ba5
rm -rf $RPM_BUILD_ROOT
cvsdist 2c6ba5
Steve Grubb 75f480
%post libs
Steve Grubb 75f480
/sbin/ldconfig 2>/dev/null
Steve Grubb 75f480
Steve Grubb c5201d
%post
Steve Grubb 72b129
/sbin/ldconfig 2>/dev/null
Steve Grubb c5201d
if [ $1 = 1 ]; then
Steve Grubb c5201d
   /sbin/chkconfig --add auditd
Steve Grubb c5201d
fi
Steve Grubb c5201d
Steve Grubb c5201d
%preun
Steve Grubb c5201d
if [ $1 = 0 ]; then
Steve Grubb c5201d
   /sbin/service auditd stop > /dev/null 2>&1
Steve Grubb c5201d
   /sbin/chkconfig --del auditd
Steve Grubb c5201d
fi
Steve Grubb c5201d
Steve Grubb 75f480
%postun libs
Steve Grubb 75f480
/sbin/ldconfig 2>/dev/null
Steve Grubb 75f480
Steve Grubb c5201d
%postun
Steve Grubb 72b129
/sbin/ldconfig 2>/dev/null
Steve Grubb c5201d
if [ $1 -ge 1 ]; then
Steve Grubb c5201d
   /sbin/service auditd condrestart > /dev/null 2>&1
Steve Grubb c5201d
fi
Steve Grubb c5201d
Steve Grubb 75f480
%files libs
Steve Grubb 75f480
%defattr(-,root,root)
Steve Grubb 19531f
%attr(755,root,root) /%{_lib}/libaudit.*
Steve Grubb 75f480
Steve Grubb 75f480
%files libs-devel
Steve Grubb c5201d
%defattr(-,root,root)
Steve Grubb aad931
%{_libdir}/libaudit.*
Steve Grubb c5201d
%{_includedir}/libaudit.h
Steve Grubb 72b129
%{_mandir}/man3/*
Steve Grubb c5201d
cvsdist 2c6ba5
%files
cvsdist 2c6ba5
%defattr(-,root,root,-)
Steve Grubb 78412f
%doc README COPYING ChangeLog sample.rules
Steve Grubb 654a5c
%attr(0644,root,root) %{_mandir}/man8/*
cvsdist 2c6ba5
%attr(750,root,root) /sbin/auditctl
cvsdist 2c6ba5
%attr(750,root,root) /sbin/auditd
Steve Grubb 78412f
%attr(750,root,root) /sbin/ausearch
Steve Grubb 78412f
%attr(755,root,root) /%{_lib}/security/pam_loginuid.so
Steve Grubb 654a5c
%attr(755,root,root) /etc/rc.d/init.d/auditd
Steve Grubb 01be97
%config(noreplace) %attr(640,root,root) /etc/auditd.conf
Steve Grubb 8fd9fa
%config(noreplace) %attr(640,root,root) /etc/audit.rules
Steve Grubb 654a5c
%config(noreplace) %attr(640,root,root) /etc/sysconfig/auditd
Steve Grubb 654a5c
cvsdist 2c6ba5
cvsdist 2c6ba5
%changelog
Steve Grubb 78412f
* Wed Feb 23 2005 Steve Grubb <sgrubb@redhat.com> 0.6.4-1
Steve Grubb 78412f
- Rename pam_audit to pam_loginuid to reflect what it does
Steve Grubb 78412f
- Fix bug in detecting space left on partition
Steve Grubb 78412f
- Fix bug in handling of suspended logging
Steve Grubb 78412f
David Woodhouse 668644
* Wed Feb 23 2005 David Woodhouse <dwmw2@redhat.com> 0.6.3-3
David Woodhouse 668644
- Include stdint.h in libaudit.h and require new glibc-kernheaders
David Woodhouse 668644
Steve Grubb 19531f
* Sun Feb 20 2005 Steve Grubb <sgrubb@redhat.com> 0.6.3-2
Steve Grubb 19531f
- Another lib64 correction
Steve Grubb 19531f
Steve Grubb 56b158
* Sun Feb 20 2005 Steve Grubb <sgrubb@redhat.com> 0.6.3-1
Steve Grubb 56b158
- Change pam install from /lib/security to /%{_lib}/security
Steve Grubb 56b158
- Change pam_audit to write loginuid to /proc/pid/loginuid
Steve Grubb 56b158
- Add pam_session_close handle
Steve Grubb 56b158
- Update to newest kernel headers
Steve Grubb 56b158
Steve Grubb 8fd9fa
* Fri Feb 11 2005 Steve Grubb <sgrubb@redhat.com> 0.6.2-1
Steve Grubb 8fd9fa
- New version
Steve Grubb 8fd9fa
- Add R option to auditctl to allow reading rules from file.
Steve Grubb 8fd9fa
- Do not allow task creation list to have syscall auditing
Steve Grubb 8fd9fa
- Add D option to allow deleting all rules with 1 command
Steve Grubb 8fd9fa
- Added pam_audit man page & sample.rules
Steve Grubb 8fd9fa
- Mod initscript to call auditctl to load rules at start-up
Steve Grubb 8fd9fa
- Write message to log file for daemon start up
Steve Grubb 8fd9fa
- Write message that daemon is shutting down
Steve Grubb 8fd9fa
- Modify auditd shutdown to wait until logger thread is finished
Steve Grubb 8fd9fa
- Add sample rule file to docs
Steve Grubb 8fd9fa
Steve Grubb e88a3e
* Sat Jan 08 2005 Steve Grubb <sgrubb@redhat.com> 0.6.1-1
Steve Grubb e88a3e
- New version: rework auditctl and its man pages.
Steve Grubb e88a3e
- Added admin_space_left config option as last chance before
Steve Grubb e88a3e
  running out of disk space.
Steve Grubb e88a3e
Steve Grubb 75f480
* Wed Jan 05 2005 Steve Grubb <sgrubb@redhat.com> 0.6-1
Steve Grubb 75f480
- New version
Steve Grubb 75f480
- Split package up to libs, libs-devel, and audit.
Steve Grubb 75f480
Steve Grubb 75f480
* Mon Dec 13 2004 Steve Grubb <sgrubb@redhat.com> 0.5.6-1
Steve Grubb aad931
- New version
Steve Grubb aad931
Steve Grubb 01be97
* Fri Dec 10 2004 Steve Grubb <sgrubb@redhat.com> 0.5.5-1
Steve Grubb 01be97
- New version
Steve Grubb 01be97
Steve Grubb 72b129
* Fri Dec 03 2004 Steve Grubb <sgrubb@redhat.com> 0.5.4-1
Steve Grubb 72b129
- New version
Steve Grubb 72b129
Steve Grubb c5201d
* Mon Nov 22 2004 Steve Grubb <sgrubb@redhat.com> 0.5.3-1
Steve Grubb c5201d
- New version
Steve Grubb c5201d
Steve Grubb 5a5010
* Mon Nov 15 2004 Steve Grubb <sgrubb@redhat.com> 0.5.2-1
Steve Grubb 5a5010
- New version
Steve Grubb 5a5010
Steve Grubb 654a5c
* Wed Nov 10 2004 Steve Grubb <sgrubb@redhat.com> 0.5.1-1
Steve Grubb 654a5c
- Added initscript pieces
Steve Grubb 654a5c
- New version
Steve Grubb 654a5c
Steve Grubb 654a5c
* Wed Sep  1 2004 Charlie Bennett (ccb@redhat.com) 0.5-1 
cvsdist 2c6ba5
- Initial build.
cvsdist 2c6ba5