From 55a0d27c319aea2d06bbec7869145e7684979c5a Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 16 Mar 2015 16:26:08 -0600 Subject: [PATCH] Do not load user paths for fail2ban-{client,server} (bug #1202151) --- fail2ban.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fail2ban.spec b/fail2ban.spec index 6cd8920..a3149c3 100644 --- a/fail2ban.spec +++ b/fail2ban.spec @@ -1,7 +1,7 @@ Summary: Daemon to ban hosts that cause multiple authentication errors Name: fail2ban Version: 0.9.1 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ URL: http://fail2ban.sourceforge.net/ Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -150,6 +150,11 @@ python setup.py build %install python setup.py install -O1 --root %{buildroot} + +# Do not load user paths +# https://bugzilla.redhat.com/show_bug.cgi?id=1202151 +sed -i -e '1s/python$/python -Es/' %{buildroot}%{_bindir}/fail2ban-{client,server} + %if 0%{?fedora} >= 19 || 0%{?rhel} >= 7 mkdir -p %{buildroot}%{_unitdir} cp -p files/fail2ban.service %{buildroot}%{_unitdir}/ @@ -266,6 +271,9 @@ fi %changelog +* Mon Mar 16 2015 Orion Poplawski - 0.9.1-4 +- Do not load user paths for fail2ban-{client,server} (bug #1202151) + * Sun Feb 22 2015 Orion Poplawski - 0.9.1-3 - Do not use systemd by default