Add secure-userhelper patch: Fix misparsing userhelper log entries (rhbz#867290)

This commit is contained in:
Jan Synacek 2012-10-22 08:13:43 +02:00
parent d8a18a9f5b
commit 5317f53f4c
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,17 @@
--- logwatch-svn110/scripts/services/secure.orig 2012-10-18 11:13:33.000000000 +0200
+++ logwatch-svn110/scripts/services/secure 2012-10-18 11:31:08.987571713 +0200
@@ -843,8 +843,13 @@ if (keys %Executed_app) {
print "\nUserhelper executed applications:\n";
foreach (keys %Executed_app) {
($longapp,$asuser,$user) = split ",";
+ $longapp_orig = $longapp;
+ $i = index($longapp, " ");
+ if ($i > 0) {
+ $longapp = substr($longapp, 0, $i);
+ }
$app = substr($longapp,rindex($longapp,"/")+1);
- print " $user -> $app as $asuser: ".$Executed_app{"$longapp,$asuser,$user"}." Time(s)\n";
+ print " $user -> $app as $asuser: ".$Executed_app{"$longapp_orig,$asuser,$user"}." Time(s)\n";
}
}

View File

@ -1,7 +1,7 @@
Summary: A log file analysis program
Name: logwatch
Version: 7.4.0
Release: 17.20120619svn110%{?dist}
Release: 18.20120619svn110%{?dist}
License: MIT
Group: Applications/System
URL: http://www.logwatch.org/
@ -32,6 +32,7 @@ Patch12: logwatch-pluto.patch
Patch13: logwatch-xvc.patch
Patch14: logwatch-secure.patch
Patch15: logwatch-pam_unix.patch
Patch16: logwatch-secure-userhelper.patch
Requires: textutils sh-utils grep mailx
Requires: perl(Date::Manip)
Requires: perl(Sys::CPU)
@ -61,6 +62,7 @@ of the package on many systems.
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
rm -f scripts/services/*.orig
%build
@ -151,6 +153,10 @@ echo "# Configuration overrides for specific logfiles/services may be placed her
%{_mandir}/man*/*
%changelog
* Mon Oct 22 2012 Jan Synáček <jsynacek@redhat.com> - 7.4.0-18.20120619svn110
- Add secure-userhelper patch: Fix misparsing userhelper log entries
(rhbz#867290)
* Thu Sep 27 2012 Jan Synáček <jsynacek@redhat.com> - 7.4.0-17.20120619svn110
- Add secure patch (rhbz#836189)
- Add pam_unix patch (rhbz#836183, rhbz#846725)