public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fail2ban] rawhide: Update to 1.1.1, for changes see:
@ 2026-11-10 23:13 Richard Shaw
0 siblings, 0 replies; only message in thread
From: Richard Shaw @ 2026-11-10 23:13 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fail2ban
Branch : rawhide
Commit : 3ab71cea6a751c80f3bd90463e30a0c5dbd54725
Author : Richard Shaw <hobbes1069@gmail.com>
Date : 2026-11-10T17:13:04-06:00
Stats : +134/-580 in 12 file(s)
URL : https://src.fedoraproject.org/rpms/fail2ban/c/3ab71cea6a751c80f3bd90463e30a0c5dbd54725?branch=rawhide
Log:
Update to 1.1.1, for changes see:
https://raw.githubusercontent.com/fail2ban/fail2ban/refs/tags/1.1.1/ChangeLog
---
diff --git a/.gitignore b/.gitignore
index 082f70a..f1003c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/fail2ban-*/
+/fail2ban-1.1.1.tar.gz
diff --git a/04ff4c060cdc233af9a6deeb85a6523da0416f31.patch b/04ff4c060cdc233af9a6deeb85a6523da0416f31.patch
deleted file mode 100644
index cb6d5c2..0000000
--- a/04ff4c060cdc233af9a6deeb85a6523da0416f31.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From 04ff4c060cdc233af9a6deeb85a6523da0416f31 Mon Sep 17 00:00:00 2001
-From: Nic Boet <nic@boet.cc>
-Date: Fri, 13 Jun 2025 16:44:57 -0500
-Subject: [PATCH] Dovecot 2.4 filter support
-
-Dovecot 2.4 release is a major upgrade
-Logger event structure has changed, all messages are now
-prefixed with:
-
- "Login aborted: " <reason> "auth failed"
-
-Maintain 2.3 support as many folks have yet to migrate,
-community edition is still receiving cretial security patches
-
-Dovecot 2.4.1
-Python 3.12.10
-
-Signed-off-by: Nic Boet <nic@boet.cc>
----
- config/filter.d/dovecot.conf | 2 ++
- fail2ban/tests/files/logs/dovecot | 6 ++++++
- 2 files changed, 8 insertions(+)
-
-diff --git a/config/filter.d/dovecot.conf b/config/filter.d/dovecot.conf
-index dc3ebbcd42..f49eebe726 100644
---- a/config/filter.d/dovecot.conf
-+++ b/config/filter.d/dovecot.conf
-@@ -17,6 +17,7 @@ prefregex = ^%(__prefix_line)s(?:%(_auth_worker)s(?:\([^\)]+\))?: )?(?:%(__pam_a
-
- failregex = ^authentication failure; logname=<F-ALT_USER1>\S*</F-ALT_USER1> uid=\S* euid=\S* tty=dovecot ruser=<F-USER>\S*</F-USER> rhost=<HOST>(?:\s+user=<F-ALT_USER>\S*</F-ALT_USER>)?\s*$
- ^(?:Aborted login|Disconnected|Remote closed connection|Client has quit the connection)%(_bypass_reject_reason)s \((?:auth failed, \d+ attempts(?: in \d+ secs)?|tried to use (?:disabled|disallowed) \S+ auth|proxy dest auth failed)\):(?: user=<<F-USER>[^>]*</F-USER>>,)?(?: method=\S+,)? rip=<HOST>(?:[^>]*(?:, session=<\S+>)?)\s*$
-+ ^(?:Login aborted):\s*%(_bypass_reject_reason)s.*?\((?:auth failed, \d+ attempts(?: in \d+ secs)?|tried to use (?:disabled|disallowed) \S+ auth|proxy dest auth failed)\)(?:\s*\([^)]+\))?:\s*(?:user=<<F-USER>[^>]*</F-USER>>,?\s*)?(?:,?\s*method=\S+,\s*)?rip=<HOST>(?:[^>]*(?:, session=<\S+>)?)\s*$
- ^pam\(\S+,<HOST>(?:,\S*)?\): pam_authenticate\(\) failed: (?:User not known to the underlying authentication module: \d+ Time\(s\)|Authentication failure \([Pp]assword mismatch\?\)|Permission denied)\s*$
- ^[a-z\-]{3,15}\(\S*,<HOST>(?:,\S*)?\): (?:[Uu]nknown user|[Ii]nvalid credentials|[Pp]assword mismatch)
- <mdre-<mode>>
-@@ -43,6 +44,7 @@ datepattern = {^LN-BEG}TAI64N
- # DEV Notes:
- # * the first regex is essentially a copy of pam-generic.conf
- # * Probably doesn't do dovecot sql/ldap backends properly (resolved in edit 21/03/2016)
-+# * Dovecot version 2.4 changed event log structure, line prior needed to maintain 2.3 support
- #
- # Author: Martin Waschbuesch
- # Daniel Black (rewrote with begin and end anchors)
-diff --git a/fail2ban/tests/files/logs/dovecot b/fail2ban/tests/files/logs/dovecot
-index 0e33296129..4f5a0b7867 100644
---- a/fail2ban/tests/files/logs/dovecot
-+++ b/fail2ban/tests/files/logs/dovecot
-@@ -22,6 +22,12 @@ Jun 14 00:48:21 platypus dovecot: imap-login: Disconnected (auth failed, 1 attem
- # failJSON: { "time": "2005-06-23T00:52:43", "match": true , "host": "193.95.245.163" }
- Jun 23 00:52:43 vhost1-ua dovecot: pop3-login: Disconnected: Inactivity (auth failed, 1 attempts): user=<info>, method=PLAIN, rip=193.95.245.163, lip=176.214.13.210
-
-+# Dovecot version 2.4
-+# failJSON: { "time": "2005-06-12T19:07:29", "match": true , "host": "192.0.2.241" }
-+Jun 12 19:07:29 hostname dovecot[241]: imap-login: Login aborted: Connection closed (auth failed, 3 attempts in 16 secs) (auth_failed): user=<test>, method=PLAIN, rip=192.0.2.241, lip=203.0.113.104, TLS, session=<9ZHq02g3J8S60fan>
-+# failJSON: { "time": "2005-06-13T16:35:56", "match": true , "host": "192.0.2.241" }
-+Jun 13 16:35:56 mx dovecot[241]: managesieve-login: Login aborted: Logged out (auth failed, 1 attempts in 10 secs) (auth_failed): user=<user@domain>, method=PLAIN, rip=192.0.2.241, lip=203.0.113.104, TLS, session=<Dp8j1Ho3suQYdo+k>
-+
- # failJSON: { "time": "2005-07-02T13:49:31", "match": true , "host": "192.51.100.13" }
- Jul 02 13:49:31 hostname dovecot[442]: pop3-login: Aborted login (auth failed, 1 attempts in 17 secs): user=<test>, method=PLAIN, rip=192.51.100.13, lip=203.0.113.17, session=<YADINsQCDs5BH8Pg>
-
diff --git a/1.1.1.tar.gz.asc b/1.1.1.tar.gz.asc
new file mode 100644
index 0000000..cc21ee7
--- /dev/null
+++ b/1.1.1.tar.gz.asc
@@ -0,0 +1,11 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQEzBAABCgAdFiEEhzhVnib2cd+eLG2eaDvxvr0KiCwFAmqAX8EACgkQaDvxvr0K
+iCxeTggAhVaYn/jWNKMXkxyRgMCR2gKdqsQU8mK7/dNerwKjT3QnKLPg8TUS6/aI
+Vt0VLiz1VTGQ2c6dIualu7jIWQoftnrOcmwKBWRU9I3Km//SNULdDpyG4l+zGTC0
+MIZkgXs8eCrh5BQQ/VohzsnamFUeyDRl89GpmcWqndKwQKWHFhi0pH+MnPhS3IYJ
+CaiKPIS6IeO2ExcGKNYJVS6/9+rvedocfW5R/KPQex23hECpq2prmPH6tb4jMoc2
+681utAZFVOQIWQvmPYQmfFEvYwW4exSJ6/ESLkxK1+1ejjiLACWe2MtCYXlL/rC+
+xWex4LhfZHOmKb6XAvyXEfAiaEXXww==
+=fVIW
+-----END PGP SIGNATURE-----
diff --git a/3728.patch b/3728.patch
deleted file mode 100644
index b25c4a9..0000000
--- a/3728.patch
+++ /dev/null
@@ -1,160 +0,0 @@
-From a763fbbdfd6486e372965b4009eb3fe5db346718 Mon Sep 17 00:00:00 2001
-From: Branch Vincent <branchevincent@gmail.com>
-Date: Sat, 27 Apr 2024 10:24:01 -0700
-Subject: [PATCH 1/3] replace distutils for python 3.12
-
----
- doc/conf.py | 5 +----
- fail2ban/server/filterpyinotify.py | 3 +--
- fail2ban/server/filtersystemd.py | 3 +--
- 3 files changed, 3 insertions(+), 8 deletions(-)
-
-diff --git a/doc/conf.py b/doc/conf.py
-index 20845a5a0e..48d27f7062 100644
---- a/doc/conf.py
-+++ b/doc/conf.py
-@@ -47,12 +47,9 @@
- #
-
- from fail2ban.version import version as fail2ban_version
--from distutils.version import LooseVersion
--
--fail2ban_loose_version = LooseVersion(fail2ban_version)
-
- # The short X.Y version.
--version = ".".join(str(_) for _ in fail2ban_loose_version.version[:2])
-+version = ".".join(str(_) for _ in fail2ban_version.split(".")[:2])
- # The full version, including alpha/beta/rc tags.
- release = fail2ban_version
-
-diff --git a/fail2ban/server/filterpyinotify.py b/fail2ban/server/filterpyinotify.py
-index 81bc7de393..c6972ced3f 100644
---- a/fail2ban/server/filterpyinotify.py
-+++ b/fail2ban/server/filterpyinotify.py
-@@ -24,7 +24,6 @@
- __license__ = "GPL"
-
- import logging
--from distutils.version import LooseVersion
- import os
- from os.path import dirname, sep as pathsep
-
-@@ -38,7 +37,7 @@
-
-
- if not hasattr(pyinotify, '__version__') \
-- or LooseVersion(pyinotify.__version__) < '0.8.3': # pragma: no cover
-+ or pyinotify.__version__.split(".") < '0.8.3'.split("."): # pragma: no cover
- raise ImportError("Fail2Ban requires pyinotify >= 0.8.3")
-
- # Verify that pyinotify is functional on this system
-diff --git a/fail2ban/server/filtersystemd.py b/fail2ban/server/filtersystemd.py
-index 5aea9fdadc..2d4f862b97 100644
---- a/fail2ban/server/filtersystemd.py
-+++ b/fail2ban/server/filtersystemd.py
-@@ -24,10 +24,9 @@
-
- import os
- import time
--from distutils.version import LooseVersion
-
- from systemd import journal
--if LooseVersion(getattr(journal, '__version__', "0")) < '204':
-+if getattr(journal, "__version__", "0").split(".") < "204".split("."):
- raise ImportError("Fail2Ban requires systemd >= 204")
-
- from .failmanager import FailManagerEmpty
-
-From ed20a9a5b9039319dd8913dfecf640e6eafee28b Mon Sep 17 00:00:00 2001
-From: sebres <info@sebres.de>
-Date: Tue, 7 May 2024 12:51:14 +0200
-Subject: [PATCH 2/3] there is no systemd < 204 and pyinotify < 0.8.3 for
- supported python3 versions anymore
-
----
- fail2ban/server/filterpyinotify.py | 4 ----
- fail2ban/server/filtersystemd.py | 2 --
- 2 files changed, 6 deletions(-)
-
-diff --git a/fail2ban/server/filterpyinotify.py b/fail2ban/server/filterpyinotify.py
-index c6972ced3f..f2f31e6fb5 100644
---- a/fail2ban/server/filterpyinotify.py
-+++ b/fail2ban/server/filterpyinotify.py
-@@ -36,10 +36,6 @@
- from ..helpers import getLogger
-
-
--if not hasattr(pyinotify, '__version__') \
-- or pyinotify.__version__.split(".") < '0.8.3'.split("."): # pragma: no cover
-- raise ImportError("Fail2Ban requires pyinotify >= 0.8.3")
--
- # Verify that pyinotify is functional on this system
- # Even though imports -- might be dysfunctional, e.g. as on kfreebsd
- try:
-diff --git a/fail2ban/server/filtersystemd.py b/fail2ban/server/filtersystemd.py
-index 2d4f862b97..abd66e1f76 100644
---- a/fail2ban/server/filtersystemd.py
-+++ b/fail2ban/server/filtersystemd.py
-@@ -26,8 +26,6 @@
- import time
-
- from systemd import journal
--if getattr(journal, "__version__", "0").split(".") < "204".split("."):
-- raise ImportError("Fail2Ban requires systemd >= 204")
-
- from .failmanager import FailManagerEmpty
- from .filter import JournalFilter, Filter
-
-From 0185e1c7d5e6534ab212462dd2aeab6f89e2fb50 Mon Sep 17 00:00:00 2001
-From: sebres <info@sebres.de>
-Date: Tue, 7 May 2024 13:06:50 +0200
-Subject: [PATCH 3/3] setup.py: no distutils anymore
-
----
- setup.py | 25 ++++++-------------------
- 1 file changed, 6 insertions(+), 19 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index 9f7bd8fb59..ee9ea4df82 100755
---- a/setup.py
-+++ b/setup.py
-@@ -24,23 +24,10 @@
-
- import platform
-
--try:
-- import setuptools
-- from setuptools import setup
-- from setuptools.command.install import install
-- from setuptools.command.install_scripts import install_scripts
-- from setuptools.command.build_py import build_py
-- build_scripts = None
--except ImportError:
-- setuptools = None
-- from distutils.core import setup
--
--# older versions
--if setuptools is None:
-- from distutils.command.build_py import build_py
-- from distutils.command.build_scripts import build_scripts
-- from distutils.command.install import install
-- from distutils.command.install_scripts import install_scripts
-+import setuptools
-+from setuptools import setup
-+from setuptools.command.install import install
-+from setuptools.command.install_scripts import install_scripts
-
- import os
- from os.path import isfile, join, isdir, realpath
-@@ -207,9 +194,9 @@ def run(self):
- url = "http://www.fail2ban.org",
- license = "GPL",
- platforms = "Posix",
-- cmdclass = dict({'build_py': build_py, 'build_scripts': build_scripts} if build_scripts else {}, **{
-+ cmdclass = {
- 'install_scripts': install_scripts_f2b, 'install': install_command_f2b
-- }),
-+ },
- scripts = [
- 'bin/fail2ban-client',
- 'bin/fail2ban-server',
diff --git a/3782.patch b/3782.patch
deleted file mode 100644
index 764db01..0000000
--- a/3782.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-From 2fed408c05ac5206b490368d94599869bd6a056d Mon Sep 17 00:00:00 2001
-From: Fabian Dellwing <fabian.dellwing@mbconnectline.de>
-Date: Tue, 2 Jul 2024 07:54:15 +0200
-Subject: [PATCH 1/5] Adjust sshd filter for OpenSSH 9.8 new daemon name
-
----
- 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 1c8a02deb5..a1fd749aed 100644
---- a/config/filter.d/sshd.conf
-+++ b/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: )?)?
-
-From 7b335f47ea112e2a36e59287582e613aef2fa0a3 Mon Sep 17 00:00:00 2001
-From: "Sergey G. Brester" <serg.brester@sebres.de>
-Date: Wed, 3 Jul 2024 19:09:28 +0200
-Subject: [PATCH 2/5] sshd: add test coverage for new format, gh-3782
-
----
- fail2ban/tests/files/logs/sshd | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/fail2ban/tests/files/logs/sshd b/fail2ban/tests/files/logs/sshd
-index ed54ded4d4..7d3948ed80 100644
---- a/fail2ban/tests/files/logs/sshd
-+++ b/fail2ban/tests/files/logs/sshd
-@@ -20,6 +20,9 @@ Feb 25 14:34:10 belka sshd[31603]: Failed password for invalid user ROOT from aa
- # failJSON: { "time": "2005-02-25T14:34:11", "match": true , "host": "aaaa:bbbb:cccc:1234::1:1" }
- Feb 25 14:34:11 belka sshd[31603]: Failed password for invalid user ROOT from aaaa:bbbb:cccc:1234::1:1
-
-+# failJSON: { "time": "2005-07-03T14:59:17", "match": true , "host": "192.0.2.1", "desc": "new log with session in daemon prefix, gh-3782" }
-+Jul 3 14:59:17 host sshd-session[1571]: Failed password for root from 192.0.2.1 port 56502 ssh2
-+
- #3
- # failJSON: { "time": "2005-01-05T01:31:41", "match": true , "host": "1.2.3.4" }
- Jan 5 01:31:41 www sshd[1643]: ROOT LOGIN REFUSED FROM 1.2.3.4
-
-From 8360776ce1b119d519a842069c73bec7f5e24fad Mon Sep 17 00:00:00 2001
-From: "Sergey G. Brester" <serg.brester@sebres.de>
-Date: Wed, 3 Jul 2024 19:33:39 +0200
-Subject: [PATCH 3/5] zzz-sshd-obsolete-multiline.conf: adjusted to new
- sshd-session log format
-
----
- fail2ban/tests/config/filter.d/zzz-sshd-obsolete-multiline.conf | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/fail2ban/tests/config/filter.d/zzz-sshd-obsolete-multiline.conf b/fail2ban/tests/config/filter.d/zzz-sshd-obsolete-multiline.conf
-index ad8adeb69f..14256ba68c 100644
---- a/fail2ban/tests/config/filter.d/zzz-sshd-obsolete-multiline.conf
-+++ b/fail2ban/tests/config/filter.d/zzz-sshd-obsolete-multiline.conf
-@@ -9,7 +9,7 @@ before = ../../../../config/filter.d/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: )?)?
-
-From 50ff131a0fd8f54fdeb14b48353f842ee8ae8c1a Mon Sep 17 00:00:00 2001
-From: "Sergey G. Brester" <serg.brester@sebres.de>
-Date: Wed, 3 Jul 2024 19:35:28 +0200
-Subject: [PATCH 4/5] filter.d/sshd.conf: ungroup (unneeded for _daemon)
-
----
- 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 a1fd749aed..3a84b1ba52 100644
---- a/config/filter.d/sshd.conf
-+++ b/config/filter.d/sshd.conf
-@@ -16,7 +16,7 @@ before = common.conf
-
- [DEFAULT]
-
--_daemon = (?:sshd(?:-session)?)
-+_daemon = sshd(?:-session)?
-
- # optional prefix (logged from several ssh versions) like "error: ", "error: PAM: " or "fatal: "
- __pref = (?:(?:error|fatal): (?:PAM: )?)?
-
diff --git a/54c0effceb998b73545073ac59c479d9d9bf19a4.patch b/54c0effceb998b73545073ac59c479d9d9bf19a4.patch
deleted file mode 100644
index e606591..0000000
--- a/54c0effceb998b73545073ac59c479d9d9bf19a4.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-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:
- #
diff --git a/63c0a4682654bdcfe94f707c5f166f62696c0dc0.patch b/63c0a4682654bdcfe94f707c5f166f62696c0dc0.patch
new file mode 100644
index 0000000..55a7ee1
--- /dev/null
+++ b/63c0a4682654bdcfe94f707c5f166f62696c0dc0.patch
@@ -0,0 +1,69 @@
+From 63c0a4682654bdcfe94f707c5f166f62696c0dc0 Mon Sep 17 00:00:00 2001
+From: sebres <info@sebres.de>
+Date: Sat, 22 Aug 2026 13:26:02 +0200
+Subject: [PATCH] add default banactions for several `paths-*.conf` depending
+ on default net-filter for distribution; closes gh-4224, gh-4229
+
+---
+ config/paths-arch.conf | 3 +++
+ config/paths-fedora.conf | 3 +++
+ config/paths-freebsd.conf | 3 +++
+ config/paths-osx.conf | 3 +++
+ 4 files changed, 12 insertions(+)
+
+diff --git a/config/paths-arch.conf b/config/paths-arch.conf
+index 270ce65d8c..af8c5087f9 100644
+--- a/config/paths-arch.conf
++++ b/config/paths-arch.conf
+@@ -9,6 +9,9 @@ after = paths-overrides.local
+
+ [DEFAULT]
+
++banaction = nftables
++banaction_allports = nftables[type=allports]
++
+ apache_error_log = /var/log/httpd/*error_log
+
+ apache_access_log = /var/log/httpd/*access_log
+diff --git a/config/paths-fedora.conf b/config/paths-fedora.conf
+index 3d637e1fad..d2aba8240d 100644
+--- a/config/paths-fedora.conf
++++ b/config/paths-fedora.conf
+@@ -9,6 +9,9 @@ after = paths-overrides.local
+
+ [DEFAULT]
+
++banaction = nftables
++banaction_allports = nftables[type=allports]
++
+ syslog_mail = /var/log/maillog
+
+ syslog_mail_warn = /var/log/maillog
+diff --git a/config/paths-freebsd.conf b/config/paths-freebsd.conf
+index 550ee8873c..91c6e67252 100644
+--- a/config/paths-freebsd.conf
++++ b/config/paths-freebsd.conf
+@@ -9,6 +9,9 @@ after = paths-overrides.local
+
+ [DEFAULT]
+
++banaction = pf
++banaction_allports = pf[actiontype=<allports>]
++
+ # http://www.freebsd.org/doc/handbook/configtuning-syslog.html
+ #
+ syslog_mail = /var/log/maillog
+diff --git a/config/paths-osx.conf b/config/paths-osx.conf
+index 2fffd65ae0..b36d65f5ed 100644
+--- a/config/paths-osx.conf
++++ b/config/paths-osx.conf
+@@ -10,6 +10,9 @@ after = paths-overrides.local
+
+ [DEFAULT]
+
++banaction = pf
++banaction_allports = pf[actiontype=<allports>]
++
+ syslog_mail = /var/log/mail.log
+
+ syslog_mail_warn = /var/log/mail.warn
diff --git a/7528fce11b7de0d6df6152c2365540dc1d554561.patch b/7528fce11b7de0d6df6152c2365540dc1d554561.patch
deleted file mode 100644
index d8a382b..0000000
--- a/7528fce11b7de0d6df6152c2365540dc1d554561.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 7528fce11b7de0d6df6152c2365540dc1d554561 Mon Sep 17 00:00:00 2001
-From: "Sergey G. Brester" <github@sebres.de>
-Date: Thu, 1 Jan 2026 21:43:27 +0100
-Subject: [PATCH] refactor module loading to use exec_module: load_module is
- deprecated;
-
-closes gh-4126
----
- fail2ban/server/utils.py | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/fail2ban/server/utils.py b/fail2ban/server/utils.py
-index 02a6bc6db9..133add24b9 100644
---- a/fail2ban/server/utils.py
-+++ b/fail2ban/server/utils.py
-@@ -29,6 +29,7 @@
- import sys
- from threading import Lock
- import time
-+import types
- from ..helpers import getLogger, _merge_dicts, uni_decode
- from collections import OrderedDict
-
-@@ -352,6 +353,7 @@ def pid_exists(pid):
- def load_python_module(pythonModule):
- pythonModuleName = os.path.splitext(
- os.path.basename(pythonModule))[0]
-- mod = importlib.machinery.SourceFileLoader(
-- pythonModuleName, pythonModule).load_module()
-+ ldr = importlib.machinery.SourceFileLoader(pythonModuleName, pythonModule)
-+ mod = types.ModuleType(ldr.name)
-+ ldr.exec_module(mod)
- return mod
diff --git a/ab9d41e5309b417a3c7a84fa8f03cf4f93831f1b.patch b/ab9d41e5309b417a3c7a84fa8f03cf4f93831f1b.patch
deleted file mode 100644
index 3dc9890..0000000
--- a/ab9d41e5309b417a3c7a84fa8f03cf4f93831f1b.patch
+++ /dev/null
@@ -1,148 +0,0 @@
-From ab9d41e5309b417a3c7a84fa8f03cf4f93831f1b Mon Sep 17 00:00:00 2001
-From: sebres <info@sebres.de>
-Date: Fri, 14 Jun 2024 14:31:21 +0200
-Subject: [PATCH] beautifier detect whether it can use unicode chars in stats
- table; asciified output of beautifier in test suite; closes gh-3750
-
----
- fail2ban/client/beautifier.py | 51 ++++++++++++++--------
- fail2ban/tests/clientbeautifiertestcase.py | 22 ++++++----
- 2 files changed, 45 insertions(+), 28 deletions(-)
-
-diff --git a/fail2ban/client/beautifier.py b/fail2ban/client/beautifier.py
-index 7ef173a655..21c49b9483 100644
---- a/fail2ban/client/beautifier.py
-+++ b/fail2ban/client/beautifier.py
-@@ -21,8 +21,10 @@
- __copyright__ = "Copyright (c) 2004 Cyril Jaquier, 2013- Yaroslav Halchenko"
- __license__ = "GPL"
-
-+import sys
-+
- from ..exceptions import UnknownJailException, DuplicateJailException
--from ..helpers import getLogger, logging
-+from ..helpers import getLogger, logging, PREFER_ENC
-
- # Gets the instance of the logger.
- logSys = getLogger(__name__)
-@@ -36,6 +38,11 @@
-
- class Beautifier:
-
-+ stdoutEnc = PREFER_ENC
-+ if sys.stdout and sys.stdout.encoding is not None:
-+ stdoutEnc = sys.stdout.encoding
-+ encUtf = 1 if stdoutEnc.lower() == 'utf-8' else 0
-+
- def __init__(self, cmd = None):
- self.__inputCmd = cmd
-
-@@ -104,7 +111,11 @@ def jail_stat(response, pref=""):
- jail_stat(j, " " if i == len(jstat) else " | ")
- msg = "\n".join(msg)
- elif inC[0:1] == ['stats'] or inC[0:1] == ['statistics']:
-- def _statstable(response):
-+ chrTable = [
-+ ['|', '-', '|', 'x', 'x', '-', '|', '-'], ## ascii
-+ ["\u2551", "\u2550", "\u255F", "\u256B", "\u256C", "\u2569", "\u2502", "\u2500"] ## utf-8
-+ ];
-+ def _statstable(response, ct):
- tophead = ["Jail", "Backend", "Filter", "Actions"]
- headers = ["", "", "cur", "tot", "cur", "tot"]
- minlens = [8, 8, 3, 3, 3, 3]
-@@ -120,29 +131,31 @@ def _statstable(response):
- f = "%%%ds" if ralign[i] else "%%-%ds"
- rfmt.append(f % lens[i])
- hfmt.append(f % lens[i])
-- rfmt = [rfmt[0], rfmt[1], "%s \u2502 %s" % (rfmt[2], rfmt[3]), "%s \u2502 %s" % (rfmt[4], rfmt[5])]
-- hfmt = [hfmt[0], hfmt[1], "%s \u2502 %s" % (hfmt[2], hfmt[3]), "%s \u2502 %s" % (hfmt[4], hfmt[5])]
-+ rfmt = [rfmt[0], rfmt[1], "%s %s %s" % (rfmt[2], ct[6], rfmt[3]), "%s %s %s" % (rfmt[4], ct[6], rfmt[5])]
-+ hfmt = [hfmt[0], hfmt[1], "%s %s %s" % (hfmt[2], ct[6], hfmt[3]), "%s %s %s" % (hfmt[4], ct[6], hfmt[5])]
- tlens = [lens[0], lens[1], 3 + lens[2] + lens[3], 3 + lens[4] + lens[5]]
- tfmt = [hfmt[0], hfmt[1], "%%-%ds" % (tlens[2],), "%%-%ds" % (tlens[3],)]
- tsep = tfmt[0:2]
-- rfmt = " \u2551 ".join(rfmt)
-- hfmt = " \u2551 ".join(hfmt)
-- tfmt = " \u2551 ".join(tfmt)
-- tsep = " \u2551 ".join(tsep)
-- separator = ((tsep % tuple(tophead[0:2])) + " \u255F\u2500" +
-- ("\u2500\u256B\u2500".join(['\u2500' * n for n in tlens[2:]])) + '\u2500')
-+ rfmt = (" "+ct[0]+" ").join(rfmt)
-+ hfmt = (" "+ct[0]+" ").join(hfmt)
-+ tfmt = (" "+ct[0]+" ").join(tfmt)
-+ tsep = (" "+ct[0]+" ").join(tsep)
-+ separator = ((tsep % tuple(tophead[0:2])) + " "+ct[2]+ct[7] +
-+ ((ct[7]+ct[3]+ct[7]).join([ct[7] * n for n in tlens[2:]])) + ct[7])
- ret = []
-- ret.append(tfmt % tuple(["", ""]+tophead[2:]))
-- ret.append(separator)
-- ret.append(hfmt % tuple(headers))
-- separator = "\u2550\u256C\u2550".join(['\u2550' * n for n in tlens]) + '\u2550'
-- ret.append(separator)
-+ ret.append(" "+tfmt % tuple(["", ""]+tophead[2:]))
-+ ret.append(" "+separator)
-+ ret.append(" "+hfmt % tuple(headers))
-+ separator = (ct[1]+ct[4]+ct[1]).join([ct[1] * n for n in tlens]) + ct[1]
-+ ret.append(ct[1]+separator)
- for row in rows:
-- ret.append(rfmt % tuple(row))
-- separator = "\u2550\u2569\u2550".join(['\u2550' * n for n in tlens]) + '\u2550'
-- ret.append(separator)
-+ ret.append(" "+rfmt % tuple(row))
-+ separator = (ct[1]+ct[5]+ct[1]).join([ct[1] * n for n in tlens]) + ct[1]
-+ ret.append(ct[1]+separator)
- return ret
-- msg = "\n".join(_statstable(response))
-+ if not response:
-+ return "No jails found."
-+ msg = "\n".join(_statstable(response, chrTable[self.encUtf]))
- elif len(inC) < 2:
- pass # to few cmd args for below
- elif inC[1] == "syslogsocket":
-diff --git a/fail2ban/tests/clientbeautifiertestcase.py b/fail2ban/tests/clientbeautifiertestcase.py
-index defedbe1bf..5fcb240479 100644
---- a/fail2ban/tests/clientbeautifiertestcase.py
-+++ b/fail2ban/tests/clientbeautifiertestcase.py
-@@ -34,6 +34,7 @@ def setUp(self):
- """ Call before every test case """
- super(BeautifierTest, self).setUp()
- self.b = Beautifier()
-+ self.b.encUtf = 0; ## we prefer ascii in test suite (see #3750)
-
- def tearDown(self):
- """ Call after every test case """
-@@ -170,22 +171,25 @@ def testStatus(self):
-
- def testStatusStats(self):
- self.b.setInputCmd(["stats"])
-+ ## no jails:
-+ self.assertEqual(self.b.beautify({}), "No jails found.")
-+ ## 3 jails:
- response = {
- "ssh": ["systemd", (3, 6), (12, 24)],
- "exim4": ["pyinotify", (6, 12), (20, 20)],
- "jail-with-long-name": ["polling", (0, 0), (0, 0)]
- }
- output = (""
-- + " ? ? Filter ? Actions \n"
-- + "Jail ? Backend ????????????????????????\n"
-- + " ? ? cur ? tot ? cur ? tot\n"
-- + "????????????????????????????????????????????????????????\n"
-- + "ssh ? systemd ? 3 ? 6 ? 12 ? 24\n"
-- + "exim4 ? pyinotify ? 6 ? 12 ? 20 ? 20\n"
-- + "jail-with-long-name ? polling ? 0 ? 0 ? 0 ? 0\n"
-- + "????????????????????????????????????????????????????????"
-+ + " | | Filter | Actions \n"
-+ + " Jail | Backend |-----------x-----------\n"
-+ + " | | cur | tot | cur | tot\n"
-+ + "---------------------x-----------x-----------x-----------\n"
-+ + " ssh | systemd | 3 | 6 | 12 | 24\n"
-+ + " exim4 | pyinotify | 6 | 12 | 20 | 20\n"
-+ + " jail-with-long-name | polling | 0 | 0 | 0 | 0\n"
-+ + "---------------------------------------------------------"
- )
-- response = self.b.beautify(response).encode('ascii', 'replace').decode('ascii')
-+ response = self.b.beautify(response)
- self.assertEqual(response, output)
-
-
diff --git a/fail2ban-nftables.patch b/fail2ban-nftables.patch
index 1124e85..eb78348 100644
--- a/fail2ban-nftables.patch
+++ b/fail2ban-nftables.patch
@@ -1,62 +1,62 @@
-Index: fail2ban-1.0.2/config/action.d/firewallcmd-rich-rules.conf
+Index: fail2ban-1.1.1/config/action.d/firewallcmd-rich-rules.conf
===================================================================
---- fail2ban-1.0.2.orig/config/action.d/firewallcmd-rich-rules.conf
-+++ fail2ban-1.0.2/config/action.d/firewallcmd-rich-rules.conf
+--- fail2ban-1.1.1.orig/config/action.d/firewallcmd-rich-rules.conf
++++ fail2ban-1.1.1/config/action.d/firewallcmd-rich-rules.conf
@@ -37,8 +37,8 @@ actioncheck =
- fwcmd_rich_rule = rule family='<family>' source address='<ip>' port port='$p' protocol='<protocol>' %(rich-suffix)s
+ fwcmd_rich_rule = rule family=\"<family>\" source address=\"<ip>\" port port=\"$p\" protocol=\"<protocol>\" %(rich-suffix)s
--actionban = ports="<port>"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --add-rich-rule="%(fwcmd_rich_rule)s"; done
-+actionban = ports="<port>"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --add-rich-rule="%(fwcmd_rich_rule)s"; done
+-actionban = ports="<port>"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="<zone>" --add-rich-rule="%(fwcmd_rich_rule)s"; done
++actionban = ports="<port>"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="<zone>" --add-rich-rule="%(fwcmd_rich_rule)s"; done
--actionunban = ports="<port>"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --remove-rich-rule="%(fwcmd_rich_rule)s"; done
-+actionunban = ports="<port>"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --remove-rich-rule="%(fwcmd_rich_rule)s"; done
+-actionunban = ports="<port>"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="<zone>" --remove-rich-rule="%(fwcmd_rich_rule)s"; done
++actionunban = ports="<port>"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="<zone>" --remove-rich-rule="%(fwcmd_rich_rule)s"; done
-rich-suffix = <rich-blocktype>
\ No newline at end of file
+rich-suffix = <rich-blocktype>
-Index: fail2ban-1.0.2/fail2ban/tests/servertestcase.py
+Index: fail2ban-1.1.1/fail2ban/tests/servertestcase.py
===================================================================
---- fail2ban-1.0.2.orig/fail2ban/tests/servertestcase.py
-+++ fail2ban-1.0.2/fail2ban/tests/servertestcase.py
-@@ -2051,32 +2051,32 @@ class ServerConfigReaderTests(LogCapture
+--- fail2ban-1.1.1.orig/fail2ban/tests/servertestcase.py
++++ fail2ban-1.1.1/fail2ban/tests/servertestcase.py
+@@ -2141,32 +2141,32 @@ class ServerConfigReaderTests(LogCapture
('j-fwcmd-rr', 'firewallcmd-rich-rules[port="22:24", protocol="tcp"]', {
'ip4': ("family='ipv4'", "icmp-port-unreachable",), 'ip6': ("family='ipv6'", 'icmp6-port-unreachable',),
'ip4-ban': (
-- """`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --add-rich-rule="rule family='ipv4' source address='192.0.2.1' port port='$p' protocol='tcp' reject type='icmp-port-unreachable'"; done`""",
-+ """`ports="22:24"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --add-rich-rule="rule family='ipv4' source address='192.0.2.1' port port='$p' protocol='tcp' reject type='icmp-port-unreachable'"; done`""",
+- r"""`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="public" --add-rich-rule="rule family=\"ipv4\" source address=\"192.0.2.1\" port port=\"$p\" protocol=\"tcp\" reject type='icmp-port-unreachable'"; done`""",
++ r"""`ports="22:24"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="public" --add-rich-rule="rule family=\"ipv4\" source address=\"192.0.2.1\" port port=\"$p\" protocol=\"tcp\" reject type='icmp-port-unreachable'"; done`""",
),
'ip4-unban': (
-- """`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --remove-rich-rule="rule family='ipv4' source address='192.0.2.1' port port='$p' protocol='tcp' reject type='icmp-port-unreachable'"; done`""",
-+ """`ports="22:24"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --remove-rich-rule="rule family='ipv4' source address='192.0.2.1' port port='$p' protocol='tcp' reject type='icmp-port-unreachable'"; done`""",
+- r"""`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="public" --remove-rich-rule="rule family=\"ipv4\" source address=\"192.0.2.1\" port port=\"$p\" protocol=\"tcp\" reject type='icmp-port-unreachable'"; done`""",
++ r"""`ports="22:24"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="public" --remove-rich-rule="rule family=\"ipv4\" source address=\"192.0.2.1\" port port=\"$p\" protocol=\"tcp\" reject type='icmp-port-unreachable'"; done`""",
),
'ip6-ban': (
-- """ `ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --add-rich-rule="rule family='ipv6' source address='2001:db8::' port port='$p' protocol='tcp' reject type='icmp6-port-unreachable'"; done`""",
-+ """ `ports="22:24"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --add-rich-rule="rule family='ipv6' source address='2001:db8::' port port='$p' protocol='tcp' reject type='icmp6-port-unreachable'"; done`""",
+- r""" `ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="public" --add-rich-rule="rule family=\"ipv6\" source address=\"2001:db8::\" port port=\"$p\" protocol=\"tcp\" reject type='icmp6-port-unreachable'"; done`""",
++ r""" `ports="22:24"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="public" --add-rich-rule="rule family=\"ipv6\" source address=\"2001:db8::\" port port=\"$p\" protocol=\"tcp\" reject type='icmp6-port-unreachable'"; done`""",
),
'ip6-unban': (
-- """`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --remove-rich-rule="rule family='ipv6' source address='2001:db8::' port port='$p' protocol='tcp' reject type='icmp6-port-unreachable'"; done`""",
-+ """`ports="22:24"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --remove-rich-rule="rule family='ipv6' source address='2001:db8::' port port='$p' protocol='tcp' reject type='icmp6-port-unreachable'"; done`""",
+- r"""`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="public" --remove-rich-rule="rule family=\"ipv6\" source address=\"2001:db8::\" port port=\"$p\" protocol=\"tcp\" reject type='icmp6-port-unreachable'"; done`""",
++ r"""`ports="22:24"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="public" --remove-rich-rule="rule family=\"ipv6\" source address=\"2001:db8::\" port port=\"$p\" protocol=\"tcp\" reject type='icmp6-port-unreachable'"; done`""",
),
}),
# firewallcmd-rich-logging --
('j-fwcmd-rl', 'firewallcmd-rich-logging[port="22:24", protocol="tcp"]', {
'ip4': ("family='ipv4'", "icmp-port-unreachable",), 'ip6': ("family='ipv6'", 'icmp6-port-unreachable',),
'ip4-ban': (
-- """`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --add-rich-rule="rule family='ipv4' source address='192.0.2.1' port port='$p' protocol='tcp' log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp-port-unreachable'"; done`""",
-+ """`ports="22:24"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --add-rich-rule="rule family='ipv4' source address='192.0.2.1' port port='$p' protocol='tcp' log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp-port-unreachable'"; done`""",
+- r"""`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="public" --add-rich-rule="rule family=\"ipv4\" source address=\"192.0.2.1\" port port=\"$p\" protocol=\"tcp\" log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp-port-unreachable'"; done`""",
++ r"""`ports="22:24"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="public" --add-rich-rule="rule family=\"ipv4\" source address=\"192.0.2.1\" port port=\"$p\" protocol=\"tcp\" log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp-port-unreachable'"; done`""",
),
'ip4-unban': (
-- """`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --remove-rich-rule="rule family='ipv4' source address='192.0.2.1' port port='$p' protocol='tcp' log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp-port-unreachable'"; done`""",
-+ """`ports="22:24"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --remove-rich-rule="rule family='ipv4' source address='192.0.2.1' port port='$p' protocol='tcp' log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp-port-unreachable'"; done`""",
+- r"""`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="public" --remove-rich-rule="rule family=\"ipv4\" source address=\"192.0.2.1\" port port=\"$p\" protocol=\"tcp\" log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp-port-unreachable'"; done`""",
++ r"""`ports="22:24"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="public" --remove-rich-rule="rule family=\"ipv4\" source address=\"192.0.2.1\" port port=\"$p\" protocol=\"tcp\" log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp-port-unreachable'"; done`""",
),
'ip6-ban': (
-- """ `ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --add-rich-rule="rule family='ipv6' source address='2001:db8::' port port='$p' protocol='tcp' log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp6-port-unreachable'"; done`""",
-+ """ `ports="22:24"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --add-rich-rule="rule family='ipv6' source address='2001:db8::' port port='$p' protocol='tcp' log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp6-port-unreachable'"; done`""",
+- r""" `ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="public" --add-rich-rule="rule family=\"ipv6\" source address=\"2001:db8::\" port port=\"$p\" protocol=\"tcp\" log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp6-port-unreachable'"; done`""",
++ r""" `ports="22:24"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="public" --add-rich-rule="rule family=\"ipv6\" source address=\"2001:db8::\" port port=\"$p\" protocol=\"tcp\" log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp6-port-unreachable'"; done`""",
),
'ip6-unban': (
-- """`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --remove-rich-rule="rule family='ipv6' source address='2001:db8::' port port='$p' protocol='tcp' log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp6-port-unreachable'"; done`""",
-+ """`ports="22:24"; for p in $(echo $ports | tr ":, " "- "); do firewall-cmd --remove-rich-rule="rule family='ipv6' source address='2001:db8::' port port='$p' protocol='tcp' log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp6-port-unreachable'"; done`""",
+- r"""`ports="22:24"; for p in $(echo $ports | tr ", " " "); do firewall-cmd --zone="public" --remove-rich-rule="rule family=\"ipv6\" source address=\"2001:db8::\" port port=\"$p\" protocol=\"tcp\" log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp6-port-unreachable'"; done`""",
++ r"""`ports="22:24"; for p in $(echo $ports | tr ": " " "); do firewall-cmd --zone="public" --remove-rich-rule="rule family=\"ipv6\" source address=\"2001:db8::\" port port=\"$p\" protocol=\"tcp\" log prefix='f2b-j-fwcmd-rl' level='info' limit value='1/m' reject type='icmp6-port-unreachable'"; done`""",
),
}),
)
diff --git a/fail2ban.spec b/fail2ban.spec
index fbfe23f..2a46130 100644
--- a/fail2ban.spec
+++ b/fail2ban.spec
@@ -13,14 +13,14 @@
%endif
Name: fail2ban
-Version: 1.1.0
-Release: 20%{?dist}
+Version: 1.1.1
+Release: 1%{?dist}
Summary: Daemon to ban hosts that cause multiple authentication errors
-License: GPL-2.0-or-later
-URL: https://www.fail2ban.org
-Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
-Source1: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
+License: GPL-2.0-or-later
+URL: https://www.fail2ban.org
+Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source1: https://github.com/%{name}/%{name}/releases/download/%{version}/%{version}.tar.gz.asc
# Releases are signed by Serg G. Brester (sebres) <info AT sebres.de>. The
# fingerprint can be found in a signature file:
# gpg --list-packets fail2ban-1.0.2.tar.gz.asc | grep 'issuer fpr'
@@ -30,38 +30,25 @@ Source1: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}
# fpr=8738559E26F671DF9E2C6D9E683BF1BEBD0A882C
# gpg --receive-keys $fpr
# gpg -a --export-options export-minimal --export $fpr >gpgkey-$fpr.asc
-Source2: gpgkey-8738559E26F671DF9E2C6D9E683BF1BEBD0A882C.asc
+Source2: gpgkey-8738559E26F671DF9E2C6D9E683BF1BEBD0A882C.asc
# SELinux policy
-Source3: fail2ban.fc
-Source4: fail2ban.if
-Source5: fail2ban.te
-Source6: Makefile
+Source3: fail2ban.fc
+Source4: fail2ban.if
+Source5: fail2ban.te
+Source6: Makefile
# Give up being PartOf iptables and ipset for now
# https://bugzilla.redhat.com/show_bug.cgi?id=1379141
# https://bugzilla.redhat.com/show_bug.cgi?id=1573185
-Patch0: fail2ban-partof.patch
+Patch0: fail2ban-partof.patch
# default port in jail.conf is not compatible with firewalld-cmd syntax
# https://bugzilla.redhat.com/show_bug.cgi?id=1850164
-Patch1: fail2ban-nftables.patch
-# Work around encoding issues during tests
-Patch2: https://github.com/fail2ban/fail2ban/commit/ab9d41e5309b417a3c7a84fa8f03cf4f93831f1b.patch
-# https://bugzilla.redhat.com/show_bug.cgi?id=2315252
-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
-# Needed for Dovecot change to loging format in 2.4, fixed in f2b version 1.1.1.
-# https://bugzilla.redhat.com/show_bug.cgi?id=2426440
-Patch6: https://github.com/fail2ban/fail2ban/commit/04ff4c060cdc233af9a6deeb85a6523da0416f31.patch
-# Fix compatibility with Python 3.15
-# https://bugzilla.redhat.com/show_bug.cgi?id=2423879
-Patch7: https://github.com/fail2ban/fail2ban/commit/7528fce11b7de0d6df6152c2365540dc1d554561.patch
-
-
-BuildArch: noarch
+#Patch1: fail2ban-nftables.patch
+# banaction needs to be specified here for testcases to work, 00-firewalld.conf
+# will override after package install.
+Patch1: https://github.com/fail2ban/fail2ban/commit/63c0a4682654bdcfe94f707c5f166f62696c0dc0.patch
+
+BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@@ -290,7 +277,7 @@ install -d -m 0755 %{buildroot}/run/fail2ban/
install -m 0600 /dev/null %{buildroot}/run/fail2ban/fail2ban.pid
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/fail2ban/
mkdir -p %{buildroot}%{_tmpfilesdir}
-install -p -m 0644 files/fail2ban-tmpfiles.conf %{buildroot}%{_tmpfilesdir}/fail2ban.conf
+#install -p -m 0644 files/fail2ban-tmpfiles.conf %{buildroot}%{_tmpfilesdir}/fail2ban.conf
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/jail.d
# Remove non-Linux actions
@@ -397,7 +384,7 @@ fi
%exclude %{_sysconfdir}/fail2ban/action.d/shorewall.conf
%exclude %{_sysconfdir}/fail2ban/jail.d/*.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/fail2ban
-%{_tmpfilesdir}/fail2ban.conf
+#{_tmpfilesdir}/fail2ban.conf
%dir %{_localstatedir}/lib/fail2ban/
%dir /run/%{name}/
%ghost %verify(not size mtime md5) /run/%{name}/%{name}.pid
@@ -440,6 +427,10 @@ fi
%changelog
+* Mon Nov 02 2026 Richard Shaw <hobbes1069@gmail.com> - 1.1.1-1
+- Update to 1.1.1, for changes see:
+ https://raw.githubusercontent.com/fail2ban/fail2ban/refs/tags/1.1.1/ChangeLog
+
* Sun Nov 01 2026 Sai Harsha Suryadevara <ssuryad@amazon.com> - 1.1.0-20
- Add a build conditional for the hostsdeny subpackage, default on, for builds without tcp_wrappers
diff --git a/sources b/sources
index 934b139..ba0b0f4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (fail2ban-1.1.0.tar.gz) = 9bff7b9c41e58a953901800468e5c4153c9db6af01c7eb18111ad8620b40d03a0771020472fb759b2809d250e2bb45471e6c7e8283e72ea48290ecf7bf921821
+SHA512 (fail2ban-1.1.1.tar.gz) = 1bf3c62711d5ac03a567af52dd6535e2d51d1191892de5348a617fa7be5a0b0fba4404e624af2fa5dd7d74c6b6a8c892b773b44353ec2f2c98d35be6b0909b04
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-10 23:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 23:13 [rpms/fail2ban] rawhide: Update to 1.1.1, for changes see: Richard Shaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox