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
|
2006-04-16 20:33:48 +00:00
|
|
|
Version: 1.2.1
|
2006-04-26 16:17:04 +00:00
|
|
|
Release: 2
|
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
|
2006-01-05 23:37:48 +00:00
|
|
|
Patch1: audit-1.1.3-initscript-disabled.patch
|
2006-04-28 15:39:53 +00:00
|
|
|
Patch2: audit-1.2.1-include.patch
|
2006-04-28 17:09:58 +00:00
|
|
|
Patch3: audit-1.2.1-header-abuse.patch
|
2004-11-15 22:58:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2006-04-07 01:33:11 +00:00
|
|
|
BuildRequires: libtool swig python-devel
|
2006-04-26 16:17:04 +00:00
|
|
|
BuildRequires: kernel-headers >= 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}
|
2006-04-28 15:39:53 +00:00
|
|
|
Requires: kernel-headers >= 2.6.16
|
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}
|
2006-04-28 15:39:53 +00:00
|
|
|
Requires: kernel-headers >= 2.6.16
|
2005-11-30 22:08:32 +00:00
|
|
|
|
|
|
|
%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
|
2006-01-05 23:37:48 +00:00
|
|
|
# When in production, uncomment this so the patch is applied
|
|
|
|
#%patch1 -p1
|
2006-04-28 15:39:53 +00:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2004-09-09 03:16:50 +00:00
|
|
|
|
|
|
|
%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}
|
2006-04-07 01:33:11 +00:00
|
|
|
mv $RPM_BUILD_ROOT/%{_lib}/libauparse.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
|
2006-04-07 01:33:11 +00:00
|
|
|
LIBNAME=`basename \`ls $RPM_BUILD_ROOT/%{_lib}/libauparse.so.*.*.*\``
|
|
|
|
ln -s ../../%{_lib}/$LIBNAME libauparse.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
|
2006-04-07 01:33:11 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libauparse.so
|
2005-06-23 21:40:32 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libaudit.la
|
2006-04-07 01:33:11 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libauparse.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
|
2006-01-05 23:37:48 +00:00
|
|
|
# Temp remove this file
|
|
|
|
rm -f $RPM_BUILD_ROOT/sbin/audispd
|
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.*
|
2006-04-07 01:33:11 +00:00
|
|
|
%attr(755,root,root) /%{_lib}/libauparse.*
|
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
|
2006-04-07 01:33:11 +00:00
|
|
|
%{_libdir}/libauparse.a
|
2005-03-03 22:48:44 +00:00
|
|
|
%{_libdir}/libaudit.so
|
2006-04-07 01:33:11 +00:00
|
|
|
%{_libdir}/libauparse.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,-)
|
2006-01-05 23:37:48 +00:00
|
|
|
%doc README COPYING ChangeLog sample.rules contrib/capp.rules contrib/lspp.rules contrib/skeleton.c 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
|
2006-01-05 23:37:48 +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
|
2006-04-26 16:17:04 +00:00
|
|
|
* Wed Apr 25 2006 David Woodhouse <dwmw2@redhat.com> 1.2.1-2
|
|
|
|
- Require kernel-headers, not glibc-kernheaders
|
2006-04-28 15:39:53 +00:00
|
|
|
- Fix redefinition of audit_rule_data with new kernel headers
|
|
|
|
- Remove abuse of __KERNEL__ in lookup_table.c
|
2006-04-26 16:17:04 +00:00
|
|
|
|
2006-04-16 20:33:48 +00:00
|
|
|
* Sun Apr 16 2006 Steve Grubb <sgrubb@redhat.com> 1.2.1-1
|
|
|
|
- New message type for trusted apps
|
|
|
|
- Add new keywords today, yesterday, now for ausearch and aureport
|
|
|
|
- Make audit_log_user_avc_message really send to syslog on error
|
|
|
|
- Updated syscall tables in auditctl
|
|
|
|
- Deprecated the 'possible' action for syscall rules in auditctl
|
|
|
|
- Update watch code to use file syscalls instead of 'all' in auditctl
|
|
|
|
|
2006-04-07 21:06:18 +00:00
|
|
|
* Fri Apr 7 2006 Steve Grubb <sgrubb@redhat.com> 1.2-1
|
|
|
|
- Add support for new file system auditing kernel subsystem
|
|
|
|
|
2006-04-07 01:33:11 +00:00
|
|
|
* Thu Apr 6 2006 Steve Grubb <sgrubb@redhat.com> 1.1.6-1
|
|
|
|
- New message types
|
|
|
|
- Support new rule format found in 2.6.17 and later kernels
|
|
|
|
- Add support for audit by role, clearance, type, sensitivity
|
|
|
|
|
2006-03-06 22:18:21 +00:00
|
|
|
* Wed Mar 6 2006 Steve Grubb <sgrubb@redhat.com> 1.1.5-1
|
|
|
|
- Changed audit_log_semanage_message to take new params
|
|
|
|
- In aureport, add class between syscall and permission in avc report
|
|
|
|
- Fix bug where fsync is called in debug mode
|
|
|
|
- Add optional support for tty in SYSCALL records for ausearch/aureport
|
|
|
|
- Reinstate legacy rule operator support
|
|
|
|
- Add man pages
|
|
|
|
- Auditd ignore most signals
|
|
|
|
|
2006-02-11 01:59:34 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1.4-5.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-10 22:42:34 +00:00
|
|
|
* Fri Feb 10 2006 Steve Grubb <sgrubb@redhat.com> 1.1.4-5
|
2006-02-10 18:39:57 +00:00
|
|
|
- Change audit_log_semanage_message to check strlen as well as NULL.
|
|
|
|
|
2006-02-09 22:21:09 +00:00
|
|
|
* Thu Feb 9 2006 Steve Grubb <sgrubb@redhat.com> 1.1.4-3
|
2006-02-09 21:18:22 +00:00
|
|
|
- Change audit_log_semanage_message to take new params.
|
|
|
|
|
2006-02-08 23:08:01 +00:00
|
|
|
* Wed Feb 8 2006 Steve Grubb <sgrubb@redhat.com> 1.1.4-1
|
|
|
|
- Fix bug in autrace where it didn't run on kernels without file watch support
|
|
|
|
- Add syslog message to auditd saying what program was started for dispatcher
|
|
|
|
- Remove audit_send_user from public api
|
|
|
|
- Fix bug in USER_LOGIN messages where ausearch does not translate
|
|
|
|
msg='uid=500: into acct name (#178102).
|
|
|
|
- Change comm with dispatcher to socketpair from pipe
|
|
|
|
- Change auditd to use custom daemonize to avoid race in init scripts
|
|
|
|
- Update error message when deleting a rule that doesn't exist (#176239)
|
|
|
|
- Call shutdown_dispatcher when auditd stops
|
|
|
|
- Add new logging function audit_log_semanage_message
|
|
|
|
|
2006-02-07 11:02:55 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1.3-1.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2006-01-05 23:37:48 +00:00
|
|
|
* Thu Jan 5 2006 Steve Grubb <sgrubb@redhat.com> 1.1.3-1
|
|
|
|
- Add timestamp to daemon_config messages (#174865)
|
2006-02-08 23:08:01 +00:00
|
|
|
- Add error checking of year for aureport & ausearch
|
2006-01-05 23:37:48 +00:00
|
|
|
- Treat af_unix sockets as files for searching and reporting
|
|
|
|
- Update capp & lspp rules to combine syscalls for higher performance
|
|
|
|
- Adjusted the chkconfig line for auditd to start a little earlier
|
|
|
|
- Added skeleton program to docs for people to write their own dispatcher with
|
|
|
|
- Apply patch from Ulrich Drepper that optimizes resource utilization
|
|
|
|
- Change ausearch and aureport to unlocked IO
|
2005-12-09 22:39:41 +00:00
|
|
|
|
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
|
|
|
|
|