Allow watch on more logfiles

epel9 imports/epel9/fail2ban-1.0.2-12.el9
Orion Poplawski 10 months ago
parent bdb628d410
commit f04bf03cea

@ -6,7 +6,7 @@
Name: fail2ban Name: fail2ban
Version: 1.0.2 Version: 1.0.2
Release: 11%{?dist} Release: 12%{?dist}
Summary: Daemon to ban hosts that cause multiple authentication errors Summary: Daemon to ban hosts that cause multiple authentication errors
License: GPLv2+ License: GPLv2+
@ -67,7 +67,11 @@ BuildRequires: sqlite
BuildRequires: systemd BuildRequires: systemd
BuildRequires: selinux-policy-devel BuildRequires: selinux-policy-devel
BuildRequires: make BuildRequires: make
%if 0%{?fedora} >= 41
BuildRequires: bash-completion-devel
%else
BuildRequires: bash-completion BuildRequires: bash-completion
%endif
BuildRequires: gnupg2 BuildRequires: gnupg2
# Default components # Default components
@ -121,7 +125,7 @@ Requires: (%{name}-selinux if selinux-policy-%{selinuxtype})
Requires: %{name}-selinux Requires: %{name}-selinux
%endif %endif
# see note above in BuildRequires section # see note above in BuildRequires section
%if v"0%{?python3_version}" >= v"3.12" %if 0%{?fedora} > 38
Requires: python3-pyasyncore Requires: python3-pyasyncore
Requires: python3-pyasynchat Requires: python3-pyasynchat
%endif %endif
@ -241,7 +245,7 @@ by default.
%autosetup -p1 %autosetup -p1
# this test uses smtpd which is removed in Python 3.12, rewriting it # this test uses smtpd which is removed in Python 3.12, rewriting it
# isn't trivial # isn't trivial
%if v"0%{?python3_version}" >= v"3.12" %if 0%{?fedora} > 38
rm -f fail2ban/tests/action_d/test_smtp.py rm -f fail2ban/tests/action_d/test_smtp.py
%endif %endif
@ -456,6 +460,9 @@ fi
%changelog %changelog
* Thu Feb 22 2024 Orion Poplawski <orion@nwra.com> - 1.0.2-12
- Allow watch on more logfiles
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-11 * Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

@ -100,6 +100,11 @@ logging_dontaudit_search_audit_logs(fail2ban_t)
logging_mmap_generic_logs(fail2ban_t) logging_mmap_generic_logs(fail2ban_t)
logging_mmap_journal(fail2ban_t) logging_mmap_journal(fail2ban_t)
allow fail2ban_t fail2ban_log_t:file watch; allow fail2ban_t fail2ban_log_t:file watch;
gen_require(`
attribute logfile;
')
allow fail2ban_t logfile:dir { watch_dir_perms };
allow fail2ban_t logfile:file { watch_file_perms };
# Not in EL9 yet # Not in EL9 yet
#logging_watch_audit_log_files(fail2ban_t) #logging_watch_audit_log_files(fail2ban_t)
gen_require(` gen_require(`

Loading…
Cancel
Save