mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #770 from dwagon/731-umask
731 - Avoid creating world writable files
This commit is contained in:
commit
fcba1a6c1c
@ -414,7 +414,7 @@ def daemonize(enable_stdio_inheritance=False):
|
|||||||
if os.fork():
|
if os.fork():
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
|
|
||||||
os.umask(0)
|
os.umask(0o22)
|
||||||
|
|
||||||
# In both the following any file descriptors above stdin
|
# In both the following any file descriptors above stdin
|
||||||
# stdout and stderr are left untouched. The inheritence
|
# stdout and stderr are left untouched. The inheritence
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user