Steve Grubb cb9ea2
Summary: User space tools for 2.6 kernel auditing
cvsdist 2c6ba5
Name: audit
Steve Grubb 82a277
Version: 1.2.7
Steve Grubb 82a277
Release: 2
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
Steve Grubb 654a5c
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Steve Grubb 42d612
BuildRequires: libtool swig python-devel
Steve Grubb cb9ea2
BuildRequires: kernel-headers >= 2.6.17
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
Steve Grubb 979da9
Prereq: coreutils
cvsdist 2c6ba5
cvsdist 2c6ba5
%description
cvsdist 2c6ba5
The audit package contains the user space utilities for
Steve Grubb f553a5
storing and searching 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}
Steve Grubb cb9ea2
Requires: kernel-headers >= 2.6.17
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
Steve Grubb 9fb940
%package libs-python
Steve Grubb 9fb940
Summary: Python bindings for libaudit
Steve Grubb 9fb940
License: LGPL
Steve Grubb 9fb940
Group: Development/Libraries
Steve Grubb 9fb940
Requires: %{name}-libs = %{version}-%{release}
Steve Grubb cb9ea2
Requires: kernel-headers >= 2.6.17
Steve Grubb 9fb940
Steve Grubb 9fb940
%description libs-python
Steve Grubb 9fb940
The audit-libs-python package contains the bindings so that libaudit
Steve Grubb 9fb940
can be used by python.
Steve Grubb 9fb940
cvsdist 2c6ba5
%prep
cvsdist 2c6ba5
%setup -q
cvsdist 2c6ba5
cvsdist 2c6ba5
%build
Steve Grubb 654a5c
autoreconf -fv --install
Steve Grubb 56b158
export CFLAGS="$RPM_OPT_FLAGS"
Steve Grubb 9fb940
%configure --sbindir=/sbin --libdir=/%{_lib}
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 57646a
mkdir -p $RPM_BUILD_ROOT/%{_lib}
Daniel J Walsh 965e81
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/audit
Steve Grubb d1e22d
mkdir -p $RPM_BUILD_ROOT/%{_var}/log/audit
Steve Grubb 654a5c
make DESTDIR=$RPM_BUILD_ROOT install
cvsdist 2c6ba5
Steve Grubb c5201d
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
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 42d612
mv $RPM_BUILD_ROOT/%{_lib}/libauparse.a $RPM_BUILD_ROOT%{_libdir}
Steve Grubb 21c8b7
curdir=`pwd`
Steve Grubb 21c8b7
cd $RPM_BUILD_ROOT/%{_libdir}
Tomáš Mráz f9356b
LIBNAME=`basename \`ls $RPM_BUILD_ROOT/%{_lib}/libaudit.so.*.*.*\``
Tomáš Mráz f9356b
ln -s ../../%{_lib}/$LIBNAME libaudit.so
Steve Grubb 42d612
LIBNAME=`basename \`ls $RPM_BUILD_ROOT/%{_lib}/libauparse.so.*.*.*\``
Steve Grubb 42d612
ln -s ../../%{_lib}/$LIBNAME libauparse.so
Steve Grubb 21c8b7
cd $curdir
Steve Grubb 64cb26
# Remove these items so they don't get picked up.
Steve Grubb 64cb26
rm -f $RPM_BUILD_ROOT/%{_lib}/libaudit.so
Steve Grubb 42d612
rm -f $RPM_BUILD_ROOT/%{_lib}/libauparse.so
Steve Grubb 64cb26
rm -f $RPM_BUILD_ROOT/%{_lib}/libaudit.la
Steve Grubb 42d612
rm -f $RPM_BUILD_ROOT/%{_lib}/libauparse.la
Steve Grubb 9fb940
rm -f $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/_audit.a
Steve Grubb 9fb940
rm -f $RPM_BUILD_ROOT/%{_libdir}/python2.4/site-packages/_audit.la
Steve Grubb 21c8b7
cvsdist 2c6ba5
%clean
cvsdist 2c6ba5
rm -rf $RPM_BUILD_ROOT
cvsdist 2c6ba5
Steve Grubb 7a408f
%post libs -p /sbin/ldconfig
Steve Grubb 75f480
Steve Grubb c5201d
%post
Steve Grubb 7c0633
/sbin/chkconfig --add auditd
Steve Grubb ca188d
if [ -f /etc/auditd.conf ]; then
Steve Grubb ca188d
   mv /etc/auditd.conf /etc/audit/auditd.conf
Steve Grubb ca188d
fi
Steve Grubb ca188d
if [ -f /etc/audit.rules ]; then
Steve Grubb ca188d
   mv /etc/audit.rules /etc/audit/audit.rules
Steve Grubb ca188d
fi
Steve Grubb cb9ea2
if [ -f /etc/audit/auditd.conf ]; then
Steve Grubb cb9ea2
   tmp=`mktemp /etc/audit/auditd-post.XXXXXX`
Steve Grubb cb9ea2
   if [ -n $tmp ]; then
Steve Grubb cb9ea2
      sed 's|#dispatcher|dispatcher|g' /etc/audit/auditd.conf > $tmp && \
Steve Grubb cb9ea2
      cat $tmp > /etc/audit/auditd.conf
Steve Grubb cb9ea2
      rm -f $tmp
Steve Grubb cb9ea2
   fi
Steve Grubb cb9ea2
fi
Steve Grubb c5201d
Steve Grubb c5201d
%preun
Steve Grubb 1be66f
if [ $1 -eq 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 c5201d
if [ $1 -ge 1 ]; then
Steve Grubb ec62b1
   /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 42d612
%attr(755,root,root) /%{_lib}/libauparse.*
Steve Grubb ca97eb
%config(noreplace) %attr(640,root,root) /etc/libaudit.conf
Steve Grubb 75f480
Steve Grubb 75f480
%files libs-devel
Steve Grubb c5201d
%defattr(-,root,root)
Steve Grubb 21c8b7
%{_libdir}/libaudit.a
Steve Grubb 42d612
%{_libdir}/libauparse.a
Steve Grubb 21c8b7
%{_libdir}/libaudit.so
Steve Grubb 42d612
%{_libdir}/libauparse.so
Steve Grubb c5201d
%{_includedir}/libaudit.h
Steve Grubb 72b129
%{_mandir}/man3/*
Steve Grubb c5201d
Steve Grubb 9fb940
%files libs-python
Steve Grubb 9fb940
%defattr(-,root,root)
Daniel J Walsh 25f2ae
%attr(750,root,root) /sbin/audispd
Daniel J Walsh 25f2ae
%{_libdir}/python*/site-packages/_audit.so
Daniel J Walsh 25f2ae
/usr/lib/python*/site-packages/audit.py*
Daniel J Walsh 25f2ae
/usr/lib/python*/site-packages/AuditMsg.py*
Steve Grubb 9fb940
cvsdist 2c6ba5
%files
cvsdist 2c6ba5
%defattr(-,root,root,-)
Steve Grubb 22affe
%doc  README COPYING ChangeLog sample.rules contrib/capp.rules contrib/lspp.rules contrib/skeleton.c init.d/auditd.cron
Steve Grubb 654a5c
%attr(0644,root,root) %{_mandir}/man8/*
Steve Grubb f553a5
%attr(750,root,root) /sbin/auditctl
Steve Grubb f553a5
%attr(750,root,root) /sbin/auditd
Steve Grubb e7cf97
%attr(750,root,root) /sbin/ausearch
Steve Grubb 50ab79
%attr(750,root,root) /sbin/aureport
Steve Grubb 7a408f
%attr(750,root,root) /sbin/autrace
Steve Grubb 654a5c
%attr(755,root,root) /etc/rc.d/init.d/auditd
Steve Grubb d1e22d
%attr(750,root,root) %{_var}/log/audit
Steve Grubb 835c19
%attr(750,root,root) %dir /etc/audit
Daniel J Walsh 965e81
%attr(750,root,root) %dir %{_libdir}/audit
Steve Grubb ca188d
%config(noreplace) %attr(640,root,root) /etc/audit/auditd.conf
Steve Grubb ca188d
%config(noreplace) %attr(640,root,root) /etc/audit/audit.rules
Steve Grubb 654a5c
%config(noreplace) %attr(640,root,root) /etc/sysconfig/auditd
cvsdist 2c6ba5
cvsdist 2c6ba5
%changelog
Steve Grubb 82a277
* Mon Sep 18 2006 Steve Grubb <sgrubb@redhat.com> 1.2.7-1
Steve Grubb 82a277
- Fix logging messages to use addr if passed.
Steve Grubb 82a277
- Apply patches from Tony Jones correcting no kernel support messages
Steve Grubb 82a277
- Updated syscall tables for 2.6.18 kernel
Steve Grubb 82a277
- Remove deprecated functions: audit_log, audit_log_avc, audit_log_if_enabled
Steve Grubb 82a277
- Disallow syscall auditing on exclude list
Steve Grubb 82a277
- Improve time handling in ausearch and aureport (#191394)
Steve Grubb 82a277
- Attempt to reconstruct full path from relative for searching
Steve Grubb 82a277
Steve Grubb 329251
* Wed Aug 30 2006 Steve Grubb <sgrubb@redhat.com> 1.2.6-3
Steve Grubb 329251
- Rename audit event socket
Steve Grubb 329251
Steve Grubb 8b804c
* Mon Aug 28 2006 Steve Grubb <sgrubb@redhat.com> 1.2.6-2
Steve Grubb 8b804c
- Another minor update to auditctl -p option
Steve Grubb 8b804c
Steve Grubb 3dec9b
* Sat Aug 26 2006 Steve Grubb <sgrubb@redhat.com> 1.2.6-1
Steve Grubb 3dec9b
- Apply updates to dispatcher
Steve Grubb 3dec9b
- Fix a couple bugs regarding MLS labels
Steve Grubb 3dec9b
- Resurrect -p option
Steve Grubb 3dec9b
- Tighten rules with exclude filter
Steve Grubb 3dec9b
- Fix parsing issue which lead to segfault in some cases
Steve Grubb 3dec9b
- Fix option parsing to ignore malformed lines
Steve Grubb 3dec9b
Jesse Keating 50c84f
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 1.2.5-8
Jesse Keating 50c84f
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
Jesse Keating 50c84f
  (#203001)
Jesse Keating 50c84f
Daniel J Walsh e4fd4c
* Wed Aug 8 2006 Dan Walsh <dwalsh@redhat.com> 1.2.5-7
Daniel J Walsh e4fd4c
- Remove debug lines from dispatcher
Daniel J Walsh e4fd4c
Daniel J Walsh 46837e
* Wed Aug 2 2006 Dan Walsh <dwalsh@redhat.com> 1.2.5-6
Daniel J Walsh 46837e
- Change audisp to use a named pipe
Daniel J Walsh 46837e
Daniel J Walsh 965e81
* Fri Jul 21 2006 Dan Walsh <dwalsh@redhat.com> 1.2.5-5
Daniel J Walsh 965e81
- Fix dispatcher to handle sigchld
Daniel J Walsh 965e81
- Fix library location for 64 bit
Steve Grubb 979da9
- Add Prereq
Daniel J Walsh 965e81
Daniel J Walsh cb2a38
* Fri Jul 21 2006 Dan Walsh <dwalsh@redhat.com> 1.2.5-4
Daniel J Walsh cb2a38
- Eliminate avc package from audisp
Daniel J Walsh cb2a38
Daniel J Walsh 61d408
* Wed Jul 19 2006 Dan Walsh <dwalsh@redhat.com> 1.2.5-3
Daniel J Walsh 61d408
- More fixes for setroubleshoot to handle failing plugin
Daniel J Walsh 61d408
Daniel J Walsh 25f2ae
* Fri Jul 14 2006 Dan Walsh <dwalsh@redhat.com> 1.2.5-2
Daniel J Walsh 25f2ae
- Fixes for setroubleshoot
Daniel J Walsh 25f2ae
Steve Grubb cb9ea2
* Thu Jul 13 2006 Steve Grubb <sgrubb@redhat.com> 1.2.5-1
Steve Grubb cb9ea2
- Switch out dispatcher
Steve Grubb cb9ea2
- Fix bug upgrading rule types
Steve Grubb cb9ea2
Jesse Keating bcf52d
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.4-1.1
Jesse Keating bcf52d
- rebuild
Jesse Keating bcf52d
Steve Grubb ca97eb
* Fri Jun 30 2006 Steve Grubb <sgrubb@redhat.com> 1.2.4-1
Steve Grubb ca97eb
- Add support for the new filter key
Steve Grubb ca97eb
- Update syscall tables for 2.6.17
Steve Grubb ca97eb
- Add audit failure query function
Steve Grubb ca97eb
- Switch out gethostbyname call with getaddrinfo
Steve Grubb ca97eb
- Add audit by obj capability for 2.6.18 kernel
Steve Grubb ca97eb
- Ausearch & aureport now fail if no args to -te
Steve Grubb ca97eb
- New auditd.conf option to choose blocking/non-blocking dispatcher comm
Steve Grubb ca97eb
- Ausearch improved search by label
Steve Grubb ca97eb
Steve Grubb d65873
* Fri May 25 2006 Steve Grubb <sgrubb@redhat.com> 1.2.3-1
Steve Grubb d65873
- Apply patch to ensure watches only associate with exit filter
Steve Grubb d65873
- Apply patch to correctly show new operators when new listing format is used
Steve Grubb d65873
- Apply patch to pull kernel's audit.h into python bindings
Steve Grubb d65873
- Collect signal sender's context
Steve Grubb d65873
David Woodhouse db346e
* Tue May 16 2006 David Woodhouse <dwmw2@redhat.com> 1.2.2-2
David Woodhouse db346e
- Require kernel-headers, not glibc-kernheaders. Again.
David Woodhouse db346e
Steve Grubb ca188d
* Fri May 12 2006 Steve Grubb <sgrubb@redhat.com> 1.2.2-1
Steve Grubb ca188d
- Updates for new glibc-kernheaders
Steve Grubb ca188d
- Change auditctl to collect list of rules then delete them on -D
Steve Grubb ca188d
- Update capp.rules and lspp.rules to comment out rules for the possible list
Steve Grubb ca188d
- Add new message types
Steve Grubb ca188d
- Support sigusr1 sender identity of newer kernels
Steve Grubb ca188d
- Add support for ppid in auditctl and ausearch
Steve Grubb ca188d
- fix auditctl to trim the '/' from watches
Steve Grubb ca188d
- Move audit daemon config files to /etc/audit for better SE Linux protection
Steve Grubb ca188d
David Woodhouse 1fe1de
* Wed Apr 25 2006 David Woodhouse <dwmw2@redhat.com> 1.2.1-2
David Woodhouse 1fe1de
- Require kernel-headers, not glibc-kernheaders
David Woodhouse 994c36
- Fix redefinition of audit_rule_data with new kernel headers
David Woodhouse 994c36
- Remove abuse of __KERNEL__ in lookup_table.c
David Woodhouse 1fe1de
Steve Grubb 948327
* Sun Apr 16 2006 Steve Grubb <sgrubb@redhat.com> 1.2.1-1
Steve Grubb 948327
- New message type for trusted apps
Steve Grubb 948327
- Add new keywords today, yesterday, now for ausearch and aureport
Steve Grubb 948327
- Make audit_log_user_avc_message really send to syslog on error
Steve Grubb 948327
- Updated syscall tables in auditctl
Steve Grubb 948327
- Deprecated the 'possible' action for syscall rules in auditctl
Steve Grubb 948327
- Update watch code to use file syscalls instead of 'all' in auditctl
Steve Grubb 948327
Steve Grubb 69c5a1
* Fri Apr 7 2006 Steve Grubb <sgrubb@redhat.com> 1.2-1
Steve Grubb 69c5a1
- Add support for new file system auditing kernel subsystem
Steve Grubb 69c5a1
Steve Grubb 42d612
* Thu Apr 6 2006 Steve Grubb <sgrubb@redhat.com> 1.1.6-1
Steve Grubb 42d612
- New message types
Steve Grubb 42d612
- Support new rule format found in 2.6.17 and later kernels
Steve Grubb 42d612
- Add support for audit by role, clearance, type, sensitivity
Steve Grubb 42d612
Steve Grubb 7f66ef
* Wed Mar 6 2006 Steve Grubb <sgrubb@redhat.com> 1.1.5-1
Steve Grubb 7f66ef
- Changed audit_log_semanage_message to take new params
Steve Grubb 7f66ef
- In aureport, add class between syscall and permission in avc report
Steve Grubb 7f66ef
- Fix bug where fsync is called in debug mode
Steve Grubb 7f66ef
- Add optional support for tty in SYSCALL records for ausearch/aureport
Steve Grubb 7f66ef
- Reinstate legacy rule operator support
Steve Grubb 7f66ef
- Add man pages
Steve Grubb 7f66ef
- Auditd ignore most signals
Steve Grubb 7f66ef
Steve Grubb d65873
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1.4-5.1
Steve Grubb d65873
- bump again for double-long bug on ppc(64)
Steve Grubb d65873
Steve Grubb d65873
* Fri Feb 10 2006 Steve Grubb <sgrubb@redhat.com> 1.1.4-5
Steve Grubb d65873
- Change audit_log_semanage_message to check strlen as well as NULL.
Steve Grubb d65873
Steve Grubb d65873
* Thu Feb 9 2006 Steve Grubb <sgrubb@redhat.com> 1.1.4-3
Steve Grubb d65873
- Change audit_log_semanage_message to take new params.
Steve Grubb d65873
Steve Grubb 4a74d3
* Wed Feb 8 2006 Steve Grubb <sgrubb@redhat.com> 1.1.4-1
Steve Grubb 4a74d3
- Fix bug in autrace where it didn't run on kernels without file watch support
Steve Grubb 4a74d3
- Add syslog message to auditd saying what program was started for dispatcher
Steve Grubb 4a74d3
- Remove audit_send_user from public api
Steve Grubb 4a74d3
- Fix bug in USER_LOGIN messages where ausearch does not translate
Steve Grubb 4a74d3
  msg='uid=500: into acct name (#178102).
Steve Grubb 4a74d3
- Change comm with dispatcher to socketpair from pipe
Steve Grubb 4a74d3
- Change auditd to use custom daemonize to avoid race in init scripts
Steve Grubb 4a74d3
- Update error message when deleting a rule that doesn't exist (#176239)
Steve Grubb 4a74d3
- Call shutdown_dispatcher when auditd stops
Steve Grubb 4a74d3
- Add new logging function audit_log_semanage_message
Steve Grubb 4a74d3
Steve Grubb d65873
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1.3-1.1
Steve Grubb d65873
- rebuilt for new gcc4.1 snapshot and glibc changes
Steve Grubb d65873
Steve Grubb 22affe
* Thu Jan 5 2006 Steve Grubb <sgrubb@redhat.com> 1.1.3-1
Steve Grubb 22affe
- Add timestamp to daemon_config messages (#174865)
Steve Grubb 4a74d3
- Add error checking of year for aureport & ausearch
Steve Grubb 22affe
- Treat af_unix sockets as files for searching and reporting
Steve Grubb 22affe
- Update capp & lspp rules to combine syscalls for higher performance
Steve Grubb 22affe
- Adjusted the chkconfig line for auditd to start a little earlier
Steve Grubb 22affe
- Added skeleton program to docs for people to write their own dispatcher with
Steve Grubb 22affe
- Apply patch from Ulrich Drepper that optimizes resource utilization
Steve Grubb 22affe
- Change ausearch and aureport to unlocked IO
Jesse Keating 176c79
Steve Grubb 8d49e2
* Thu Dec 5 2005 Steve Grubb <sgrubb@redhat.com> 1.1.2-1
Steve Grubb 8d49e2
- Add more message types
Steve Grubb 8d49e2
Steve Grubb 9fb940
* Wed Nov 30 2005 Steve Grubb <sgrubb@redhat.com> 1.1.1-1
Steve Grubb 9fb940
- Add support for alpha processors
Steve Grubb 9fb940
- Update the audisp code
Steve Grubb 9fb940
- Add locale code in ausearch and aureport
Steve Grubb 9fb940
- Add new rule operator patch
Steve Grubb 9fb940
- Add exclude filter patch
Steve Grubb 9fb940
- Cleanup make files
Steve Grubb 9fb940
- Add python bindings
Steve Grubb 9fb940
Steve Grubb ef6919
* Wed Nov 9 2005 Steve Grubb <sgrubb@redhat.com> 1.1-1
Steve Grubb ef6919
- Add initial version of audisp. Just a placeholder at this point
Steve Grubb ef6919
- Remove -t from auditctl
Steve Grubb ef6919
Steve Grubb c170a2
* Mon Nov 7 2005 Steve Grubb <sgrubb@redhat.com> 1.0.12-1
Steve Grubb c170a2
- Add 2 more summary reports
Steve Grubb c170a2
- Add 2 more message types
Steve Grubb c170a2