mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Avoid creating world writable files
This commit is contained in:
parent
ae14150cad
commit
1b047a7e7b
@ -416,7 +416,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