Add Environment="PYTHONNOUSERSITE=yes" to the service file to avoid fail2ban to read /root/.local/. Thanks to Russell Coker for the investigation (Closes: #956177)

debian
Sylvestre Ledru 2020-04-16 09:23:28 +02:00
parent d68fb00628
commit a98e6cdd4d
3 changed files with 16 additions and 0 deletions

3
debian/changelog vendored
View File

@ -2,6 +2,9 @@ fail2ban (0.11.1-2) UNRELEASED; urgency=medium
* Do not rotate log if empty. Thanks to Ron Varburg for the patch
(Closes: #956681)
* Add Environment="PYTHONNOUSERSITE=yes" to the service file to avoid
fail2ban to read /root/.local/. Thanks to Russell Coker for the
investigation (Closes: #956177)
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 14 Apr 2020 11:44:23 +0200

12
debian/patches/no-python-user.diff vendored Normal file
View File

@ -0,0 +1,12 @@
Index: fail2ban/files/fail2ban.service.in
===================================================================
--- fail2ban.orig/files/fail2ban.service.in
+++ fail2ban/files/fail2ban.service.in
@@ -15,6 +15,7 @@ ExecReload=@BINDIR@/fail2ban-client relo
PIDFile=/run/fail2ban/fail2ban.pid
Restart=on-failure
RestartPreventExitStatus=0 255
+Environment="PYTHONNOUSERSITE=yes"
[Install]
WantedBy=multi-user.target

View File

@ -4,3 +4,4 @@ deb_manpages_reportbug
0002-ENH-verify-that-use_stock_cfg-was-not-provided-while.patch
deb_no_iptables_service
python3-test-suite.diff
no-python-user.diff