- fchmod of log file was on wrong variable (#426934)

- Allow use of errno strings for exit codes in audit rules
This commit is contained in:
Steve Grubb 2007-12-29 15:51:09 +00:00
parent 53106a0572
commit e8486e1e33
4 changed files with 9 additions and 18 deletions

View File

@ -80,3 +80,4 @@ audit-1.5.6.tar.gz
audit-1.6.tar.gz
audit-1.6.1.tar.gz
audit-1.6.2.tar.gz
audit-1.6.4.tar.gz

View File

@ -1,12 +0,0 @@
diff -urN audit/src/auditd-event.c audit-1.6.3/src/auditd-event.c
--- audit/src/auditd-event.c 2007-12-26 21:13:24.000000000 +0100
+++ audit-1.6.3/src/auditd-event.c 2007-12-29 01:13:31.000000000 +0100
@@ -742,8 +742,6 @@
return 1;
}
}
- fchmod(data->log_fd,
- data->config->log_group ? S_IRUSR|S_IRGRP : S_IRUSR);
fchown(lfd, 0, data->config->log_group);
data->log_fd = lfd;

View File

@ -1,17 +1,16 @@
%define sca_version 0.4.5
%define sca_release 2
%define sca_release 3
%define selinux_variants mls strict targeted
%define selinux_policyver %(rpm -q selinux-policy | sed -e 's,^selinux-policy-\\([^/]*\\)$,\\1,')
Summary: User space tools for 2.6 kernel auditing
Name: audit
Version: 1.6.3
Release: 2%{?dist}
Version: 1.6.4
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://people.redhat.com/sgrubb/audit/
Source0: %{name}-%{version}.tar.gz
Patch0: audit-1.6.3-no-chmod.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext-devel intltool libtool swig python-devel
BuildRequires: kernel-headers >= 2.6.18
@ -91,7 +90,6 @@ A graphical utility for editing audit configuration.
%prep
%setup -q
%patch0 -p1 -b .no-chmod
mkdir zos-remote-policy
cp -p audisp/plugins/zos-remote/policy/audispd-zos-remote.* zos-remote-policy
@ -290,6 +288,10 @@ fi
%config(noreplace) %{_sysconfdir}/security/console.apps/system-config-audit-server
%changelog
* Sat Dec 29 2007 Steve Grubb <sgrubb@redhat.com> 1.6.4-1
- fchmod of log file was on wrong variable (#426934)
- Allow use of errno strings for exit codes in audit rules
* Sat Dec 29 2007 Miloslav Trmač <mitr@redhat.com> - 1.6.3-2
- Don't fchmod() /dev/null to mode 0400 (#426934)

View File

@ -1 +1 @@
11f7c682093cea6aa6b2e6be93f9d0e3 audit-1.6.3.tar.gz
3845dc6b8fbca062984b4968a15c208f audit-1.6.4.tar.gz