mirror of https://github.com/fail2ban/fail2ban
I"m not paranoid but fixed umask also in utils/process.py although it seems that fail2ban.py corrects it properly later on
parent
b8240499b1
commit
ce98955f34
|
@ -77,7 +77,8 @@ def createDaemon():
|
||||||
# to do this could make a filesystem unmountable.
|
# to do this could make a filesystem unmountable.
|
||||||
os.chdir("/")
|
os.chdir("/")
|
||||||
# Give the child complete control over permissions.
|
# Give the child complete control over permissions.
|
||||||
os.umask(0)
|
# yoh: evil evil evil!
|
||||||
|
# os.umask(0)
|
||||||
else:
|
else:
|
||||||
os._exit(0) # Exit parent (the first child) of the second child.
|
os._exit(0) # Exit parent (the first child) of the second child.
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue