Add upstream fix for sshd filter (rhbz#2332945)
This commit is contained in:
parent
ffd8fd89f4
commit
f82f757243
2 changed files with 30 additions and 1 deletions
23
54c0effceb998b73545073ac59c479d9d9bf19a4.patch
Normal file
23
54c0effceb998b73545073ac59c479d9d9bf19a4.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
From 54c0effceb998b73545073ac59c479d9d9bf19a4 Mon Sep 17 00:00:00 2001
|
||||
From: sebres <info@sebres.de>
|
||||
Date: Sun, 11 Aug 2024 12:10:12 +0200
|
||||
Subject: [PATCH] filter.d/sshd.conf: amend to #3747/#3812 (new ssh version
|
||||
would log with `_COMM=sshd-session`)
|
||||
|
||||
---
|
||||
config/filter.d/sshd.conf | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/config/filter.d/sshd.conf b/config/filter.d/sshd.conf
|
||||
index 206b913a78..595e957f0b 100644
|
||||
--- a/config/filter.d/sshd.conf
|
||||
+++ b/config/filter.d/sshd.conf
|
||||
@@ -126,7 +126,7 @@ ignoreregex =
|
||||
|
||||
maxlines = 1
|
||||
|
||||
-journalmatch = _SYSTEMD_UNIT=sshd.service + _COMM=sshd
|
||||
+journalmatch = _SYSTEMD_UNIT=sshd.service + _COMM=sshd + _COMM=sshd-session
|
||||
|
||||
# DEV Notes:
|
||||
#
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
Name: fail2ban
|
||||
Version: 1.1.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Daemon to ban hosts that cause multiple authentication errors
|
||||
|
||||
License: GPL-2.0-or-later
|
||||
|
|
@ -50,6 +50,9 @@ Patch2: https://github.com/fail2ban/fail2ban/commit/ab9d41e5309b417a3c7a84fa8f03
|
|||
Patch3: https://patch-diff.githubusercontent.com/raw/fail2ban/fail2ban/pull/3782.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2295265
|
||||
Patch4: https://patch-diff.githubusercontent.com/raw/fail2ban/fail2ban/pull/3728.patch
|
||||
# Upstream fix to also catch sshd-session logs
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2332945
|
||||
Patch5: https://github.com/fail2ban/fail2ban/commit/54c0effceb998b73545073ac59c479d9d9bf19a4.patch
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
|
|
@ -472,6 +475,9 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Dec 19 2024 Orion Poplawski <orion@nwra.com> - 1.1.0-6
|
||||
- Add upstream fix for sshd filter (rhbz#2332945)
|
||||
|
||||
* Wed Oct 16 2024 Richard Shaw <hobbes1069@gmail.com> - 1.1.0-5
|
||||
- Add upstream patch for python distutils removal.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue