- New upstream release

This commit is contained in:
Steve Grubb 2009-01-10 21:10:21 +00:00
parent c28fd1e4b9
commit ea367a7cf2
4 changed files with 8 additions and 41 deletions

View File

@ -96,3 +96,4 @@ audit-1.7.7.tar.gz
audit-1.7.8.tar.gz audit-1.7.8.tar.gz
audit-1.7.9.tar.gz audit-1.7.9.tar.gz
audit-1.7.10.tar.gz audit-1.7.10.tar.gz
audit-1.7.11.tar.gz

View File

@ -1,35 +0,0 @@
Index: /trunk/src/auditd.c
===================================================================
--- /trunk/src/auditd.c (revision 160)
+++ /trunk/src/auditd.c (revision 213)
@@ -305,12 +305,14 @@
/* Open stdin,out,err to /dev/null */
fd = open("/dev/null", O_RDWR);
- if (fd < 0)
+ if (fd < 0) {
+ audit_msg(LOG_ERR, "Cannot open /dev/null");
return -1;
- if (dup2(fd, 0) < 0)
+ }
+ if ((dup2(fd, 0) < 0) || (dup2(fd, 1) < 0) ||
+ (dup2(fd, 2) < 0)) {
+ audit_msg(LOG_ERR,
+ "Cannot reassign descriptors to /dev/null");
return -1;
- if (dup2(fd, 1) < 0)
- return -1;
- if (dup2(fd, 2) < 0)
- return -1;
+ }
close(fd);
@@ -318,7 +320,6 @@
chdir("/");
- /* Change session */
- if (setsid() < 0)
- return -1;
+ /* Become session/process group leader */
+ setsid();
break;
case -1:

View File

@ -1,7 +1,7 @@
%define audit_version 1.7.10 %define audit_version 1.7.11
%define audit_release 2%{?dist} %define audit_release 1%{?dist}
%define sca_version 0.4.8 %define sca_version 0.4.8
%define sca_release 13 %define sca_release 14
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Summary: User space tools for 2.6 kernel auditing Summary: User space tools for 2.6 kernel auditing
@ -12,7 +12,6 @@ License: GPLv2+
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://people.redhat.com/sgrubb/audit/ URL: http://people.redhat.com/sgrubb/audit/
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
Patch1: audit-1.7.11-session.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext-devel intltool libtool swig python-devel BuildRequires: gettext-devel intltool libtool swig python-devel
BuildRequires: tcp_wrappers-devel BuildRequires: tcp_wrappers-devel
@ -90,7 +89,6 @@ A graphical utility for editing audit configuration.
%prep %prep
%setup -q %setup -q
%patch1 -p2
%build %build
%configure --sbindir=/sbin --libdir=/%{_lib} --with-prelude --with-libwrap --enable-gssapi-krb5=no %configure --sbindir=/sbin --libdir=/%{_lib} --with-prelude --with-libwrap --enable-gssapi-krb5=no
@ -261,6 +259,9 @@ fi
%config(noreplace) %{_sysconfdir}/security/console.apps/system-config-audit-server %config(noreplace) %{_sysconfdir}/security/console.apps/system-config-audit-server
%changelog %changelog
* Sat Jan 10 2009 Steve Grubb <sgrubb@redhat.com> 1.7.11-1
- New upstream release
* Wed Dec 17 2008 Steve Grubb <sgrubb@redhat.com> 1.7.10-2 * Wed Dec 17 2008 Steve Grubb <sgrubb@redhat.com> 1.7.10-2
- Fix bz 476798 - "auditd -n" does not work - Fix bz 476798 - "auditd -n" does not work

View File

@ -1 +1 @@
ba44e750b19e6db075d5071b039e6147 audit-1.7.10.tar.gz 63c7f935e390d874142ed6095f699958 audit-1.7.11.tar.gz