Steve Grubb 654a5c
Summary: User space tools for 2.6 kernel auditing.
cvsdist 2c6ba5
Name: audit
Steve Grubb 518797
Version: 0.6.9
Steve Grubb ffb490
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 57646a
BuildRequires: libtool
Steve Grubb 21c8b7
BuildRequires: glibc-kernheaders >= 2.4-9.1.90
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
cvsdist 2c6ba5
cvsdist 2c6ba5
%build
Steve Grubb 654a5c
autoreconf -fv --install
Steve Grubb 56b158
export CFLAGS="$RPM_OPT_FLAGS"
Steve Grubb 57646a
./configure --sbindir=/sbin --mandir=%{_mandir} --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 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 21c8b7
curdir=`pwd`
Steve Grubb 21c8b7
cd $RPM_BUILD_ROOT/%{_libdir}
Steve Grubb 21c8b7
ln -s ../../%{_lib}/libaudit.so libaudit.so
Steve Grubb 21c8b7
cd $curdir
Steve Grubb 21c8b7
Steve Grubb 0ff90d
# Not ready to distribute - nuke 'em
Steve Grubb 21c8b7
rm -f $RPM_BUILD_ROOT/sbin/ausearch
Steve Grubb 0ff90d
rm -f $RPM_BUILD_ROOT/sbin/autrace
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 21c8b7
%{_libdir}/libaudit.a
Steve Grubb 21c8b7
%{_libdir}/libaudit.so
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 21c8b7
#%attr(750,root,root) /sbin/ausearch
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 ffb490
* Thu Mar 24 2005 Steve Grubb <sgrubb@redhat.com> 0.6.9-2
Steve Grubb ffb490
- Rebuilt
Steve Grubb ffb490
Steve Grubb 518797
* Thu Mar 17 2005 Steve Grubb <sgrubb@redhat.com> 0.6.9-1
Steve Grubb 518797
- Added patch for filesystem watch
Steve Grubb 518797
- Added version information to audit start message
Steve Grubb 518797
- Change netlink code to use ack in order to get error notification
Steve Grubb 518797
Steve Grubb 57646a
* Wed Mar 10 2005 Steve Grubb <sgrubb@redhat.com> 0.6.8-1
Steve Grubb 57646a
- removed the pam_loginuid library - its going to pam
Steve Grubb 57646a
Steve Grubb ac6468
* Wed Mar 9 2005 Steve Grubb <sgrubb@redhat.com> 0.6.7-1
Steve Grubb ac6468
- Fixed bug setting loginuid
Steve Grubb ac6468
- Added num_logs to configure number of logs when rotating
Steve Grubb ac6468
- Added code for rotating logs
Steve Grubb ac6468
Steve Grubb 0ff90d
* Tue Mar 8 2005 Steve Grubb <sgrubb@redhat.com> 0.6.6-1
Steve Grubb 0ff90d
- Fix audit_set_pid to try to read a reply, but its non-fatal if no reply.
Steve Grubb 0ff90d
- Remove the read status during init
Steve Grubb 0ff90d
- Change to using pthreads sync mechanism for stopping system
Steve Grubb 0ff90d
- Worker thread should ignore all signals
Steve Grubb 0ff90d
- Change main loop to use select for inbound event handling
Steve Grubb 0ff90d
- Gave pam_loginuid a "failok" option for testing
Steve Grubb 0ff90d
Steve Grubb 21c8b7
* Thu Mar 3 2005 Steve Grubb <sgrubb@redhat.com> 0.6.5-1
Steve Grubb 21c8b7
- Lots of code cleanups
Steve Grubb 21c8b7
- Added write_pid function to auditd
Steve Grubb 21c8b7
- Added audit_log to libaudit
Steve Grubb 21c8b7
- Don't check file length in foreground mode of auditd
Steve Grubb 21c8b7
- Added *if_enabled functions to send messages only if audit system is enabled
Steve Grubb 21c8b7
- If syscall name is unknown when printing rules, use the syscall number
Steve Grubb 21c8b7
- Rework the build system to produce singly threaded public libraries
Steve Grubb 21c8b7
- Create a multithreaded version of libaudit for the audit daemon's use
Steve Grubb 21c8b7
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