From 3b154baae52589be16372f7efe83d6c71141f84b Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Fri, 15 Jul 2005 14:08:17 +0000 Subject: [PATCH] - Removed os.umask(0) as it is a potential security issue. Thanks to Yaroslav Halchenko git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@140 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- utils/process.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/process.py b/utils/process.py index 9cfaf789..4739303e 100644 --- a/utils/process.py +++ b/utils/process.py @@ -76,8 +76,6 @@ def createDaemon(): # Ensure that the daemon doesn't keep any directory in use. Failure # to do this could make a filesystem unmountable. os.chdir("/") - # Give the child complete control over permissions. - os.umask(0) else: os._exit(0) # Exit parent (the first child) of the second child. else: