Accepting request 1198657 from security

- fail2ban-fix-openssh98.patch: fix to work with openssh 9.8 (bsc#1230101) (forwarded request 1198656 from msmeissn)

OBS-URL: https://build.opensuse.org/request/show/1198657
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fail2ban?expand=0&rev=69
This commit is contained in:
Dominique Leuenberger 2024-09-04 11:27:32 +00:00 committed by Git OBS Bridge
commit b292e6fd31
3 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,13 @@
Index: fail2ban-1.0.2/config/filter.d/sshd.conf
===================================================================
--- fail2ban-1.0.2.orig/config/filter.d/sshd.conf
+++ fail2ban-1.0.2/config/filter.d/sshd.conf
@@ -16,7 +16,7 @@ before = common.conf
[DEFAULT]
-_daemon = sshd
+_daemon = sshd(?:-session)?
# optional prefix (logged from several ssh versions) like "error: ", "error: PAM: " or "fatal: "
__pref = (?:(?:error|fatal): (?:PAM: )?)?

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 4 07:54:06 UTC 2024 - Marcus Meissner <meissner@suse.com>
- fail2ban-fix-openssh98.patch: fix to work with openssh 9.8 (bsc#1230101)
-------------------------------------------------------------------
Mon Feb 26 08:17:28 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package fail2ban
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -50,6 +50,8 @@ Patch201: %{name}-0.10.4-env-script-interpreter.patch
Patch300: fail2ban-opensuse-service-sfw.patch
# PATCH-FEATURE-OPENSUSE harden_fail2ban.service.patch jsegitz@suse.com -- Added hardening to systemd service(s) bsc#1181400
Patch301: harden_fail2ban.service.patch
# PATCH-FIX-OPENSUSE fail2ban-fix-openssh98.patch meissner@suse.com -- support openssh9.8 bsc#1230101
Patch302: fail2ban-fix-openssh98.patch
BuildRequires: fdupes
BuildRequires: logrotate
BuildRequires: python-rpm-macros
@ -140,6 +142,7 @@ sed -i -e 's/^before = paths-.*/before = paths-opensuse.conf/' config/jail.conf
%patch -P 300 -p1
%endif
%patch -P 301 -p1
%patch -P 302 -p1
rm config/paths-arch.conf \
config/paths-debian.conf \