import CS logwatch-7.5.5-7.el9
This commit is contained in:
parent
9f0ce8dfdc
commit
2f999cbda4
22
SOURCES/sshd-sort-by-count.patch
Normal file
22
SOURCES/sshd-sort-by-count.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- a/scripts/services/sshd 2021-01-22 21:59:40.000000000 +0100
|
||||
+++ b/scripts/services/sshd 2024-11-28 10:33:31.199069612 +0100
|
||||
@@ -515,7 +515,8 @@
|
||||
|
||||
if (keys %BadLogins) {
|
||||
print "\nFailed logins from:\n";
|
||||
- foreach my $ip (sort SortIP keys %BadLogins) {
|
||||
+ my $totalSort = TotalCountOrder(%BadLogins, \&SortIP);
|
||||
+ foreach my $ip (sort $totalSort keys %BadLogins) {
|
||||
my $name = LookupIP($ip);
|
||||
my $totcount = 0;
|
||||
foreach my $user (keys %{$BadLogins{$ip}}) {
|
||||
@@ -538,7 +539,8 @@
|
||||
print " (with threshold >= $IllegalUsersThreshold)";
|
||||
}
|
||||
print ":\n";
|
||||
- foreach my $ip (sort SortIP keys %IllegalUsers) {
|
||||
+ my $totalSort = TotalCountOrder(%IllegalUsers, \&SortIP);
|
||||
+ foreach my $ip (sort $totalSort keys %IllegalUsers) {
|
||||
my $name = LookupIP($ip);
|
||||
my $totcount = 0;
|
||||
foreach my $user (keys %{$IllegalUsers{$ip}}) {
|
||||
@ -2,12 +2,13 @@
|
||||
Summary: A log file analysis program
|
||||
Name: logwatch
|
||||
Version: 7.5.5
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
License: MIT
|
||||
URL: https://sourceforge.net/projects/logwatch
|
||||
Source0: logwatch-%{version}.tar.gz
|
||||
Patch0: cron.patch
|
||||
Patch1: systemd-deactivated.patch
|
||||
Patch2: sshd-sort-by-count.patch
|
||||
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: perl-generators
|
||||
Requires: grep
|
||||
@ -35,6 +36,7 @@ of the package on many systems.
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
|
||||
@ -129,6 +131,10 @@ echo "# Configuration overrides for specific logfiles/services may be placed her
|
||||
%{_unitdir}/logwatch.timer
|
||||
|
||||
%changelog
|
||||
* Thu Nov 28 2024 Pavel Simovec <psimovec@redhat.com> - 7.5.5-7
|
||||
- sshd: sort IP addresses reported by count
|
||||
- Resolves: RHEL-69277
|
||||
|
||||
* Fri Apr 14 2023 Pavel Šimovec <psimovec@redhat.com> - 7.5.5-6
|
||||
- Add patch to fix systemd messages containing "Deactivated"
|
||||
- Resolves: rhbz:2160770
|
||||
|
||||
Loading…
Reference in New Issue
Block a user