mirror of https://github.com/fail2ban/fail2ban
BF: realpath for /var/run/fail2ban Closes #1142
parent
c37009aec7
commit
776322cea3
|
@ -45,6 +45,8 @@ ver. 0.9.3 (2015/XX/XXX) - wanna-be-released
|
||||||
* kill the entire process group of the child process upon timeout (gh-1129).
|
* kill the entire process group of the child process upon timeout (gh-1129).
|
||||||
Otherwise could lead to resource exhaustion due to hanging whois
|
Otherwise could lead to resource exhaustion due to hanging whois
|
||||||
processes.
|
processes.
|
||||||
|
* resolve /var/run/fail2ban path in setup.py to help installation
|
||||||
|
on platforms with /var/run -> /run symlink (gh-1142)
|
||||||
|
|
||||||
- New Features:
|
- New Features:
|
||||||
* RETURN iptables target is now a variable: <returntype>
|
* RETURN iptables target is now a variable: <returntype>
|
||||||
|
|
7
setup.py
7
setup.py
|
@ -39,7 +39,7 @@ except ImportError:
|
||||||
from distutils.command.build_py import build_py
|
from distutils.command.build_py import build_py
|
||||||
from distutils.command.build_scripts import build_scripts
|
from distutils.command.build_scripts import build_scripts
|
||||||
import os
|
import os
|
||||||
from os.path import isfile, join, isdir
|
from os.path import isfile, join, isdir, realpath
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
@ -81,8 +81,9 @@ else:
|
||||||
data_files_extra = []
|
data_files_extra = []
|
||||||
if os.path.exists('/var/run'):
|
if os.path.exists('/var/run'):
|
||||||
# if we are on the system with /var/run -- we are to use it for having fail2ban/
|
# if we are on the system with /var/run -- we are to use it for having fail2ban/
|
||||||
# directory there for socket file etc
|
# directory there for socket file etc.
|
||||||
data_files_extra += [('/var/run/fail2ban', '')]
|
# realpath is used to possibly resolve /var/run -> /run symlink
|
||||||
|
data_files_extra += [(realpath('/var/run/fail2ban'), '')]
|
||||||
|
|
||||||
# Get version number, avoiding importing fail2ban.
|
# Get version number, avoiding importing fail2ban.
|
||||||
# This is due to tests not functioning for python3 as 2to3 takes place later
|
# This is due to tests not functioning for python3 as 2to3 takes place later
|
||||||
|
|
Loading…
Reference in New Issue