|
Steve Grubb |
654a5c |
Summary: User space tools for 2.6 kernel auditing.
|
|
cvsdist |
2c6ba5 |
Name: audit
|
|
Steve Grubb |
948327 |
Version: 1.2.1
|
|
David Woodhouse |
1fe1de |
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 |
22affe |
Patch1: audit-1.1.3-initscript-disabled.patch
|
|
David Woodhouse |
994c36 |
Patch2: audit-1.2.1-include.patch
|
|
David Woodhouse |
994c36 |
Patch3: audit-1.2-1-headerabuse.patch
|
|
Steve Grubb |
654a5c |
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
Steve Grubb |
42d612 |
BuildRequires: libtool swig python-devel
|
|
David Woodhouse |
1fe1de |
BuildRequires: kernel-headers >= 2.4-9.1.95
|
|
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
|
|
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}
|
|
David Woodhouse |
994c36 |
Requires: kernel-headers >= 2.6.16
|
|
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}
|
|
David Woodhouse |
994c36 |
Requires: kernel-headers >= 2.6.16
|
|
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
|
|
Steve Grubb |
22affe |
# When in production, uncomment this so the patch is applied
|
|
Steve Grubb |
22affe |
#%patch1 -p1
|
|
David Woodhouse |
994c36 |
%patch2 -p1
|
|
David Woodhouse |
994c36 |
%patch3 -p1
|
|
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}
|
|
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/%{_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 |
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 |
22affe |
# Temp remove this file
|
|
Steve Grubb |
22affe |
rm -f $RPM_BUILD_ROOT/sbin/audispd
|
|
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 |
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 |
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)
|
|
Steve Grubb |
9fb940 |
%{_libdir}/python2.4/site-packages/_audit.so
|
|
Steve Grubb |
9fb940 |
/usr/lib/python2.4/site-packages/audit.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 |
22affe |
#%attr(750,root,root) /sbin/audispd
|
|
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 |
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
|
|
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 |
|
|
Jesse Keating |
e8cdd4 |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1.4-5.1
|
|
Jesse Keating |
e8cdd4 |
- bump again for double-long bug on ppc(64)
|
|
Jesse Keating |
e8cdd4 |
|
|
Steve Grubb |
e37b11 |
* Fri Feb 10 2006 Steve Grubb <sgrubb@redhat.com> 1.1.4-5
|
|
Steve Grubb |
b26a2c |
- Change audit_log_semanage_message to check strlen as well as NULL.
|
|
Steve Grubb |
b26a2c |
|
|
Steve Grubb |
6a7f68 |
* Thu Feb 9 2006 Steve Grubb <sgrubb@redhat.com> 1.1.4-3
|
|
Steve Grubb |
cab487 |
- Change audit_log_semanage_message to take new params.
|
|
Steve Grubb |
cab487 |
|
|
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 |
|
|
Jesse Keating |
162646 |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1.3-1.1
|
|
Jesse Keating |
162646 |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
Jesse Keating |
162646 |
|
|
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 |
|