From 1b047a7e7bdedd377151e518c453982fa9d2bd95 Mon Sep 17 00:00:00 2001 From: Dougal Scott Date: Mon, 2 Jun 2014 08:07:43 +1000 Subject: [PATCH] Avoid creating world writable files --- gunicorn/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/util.py b/gunicorn/util.py index 9f6b79c9..a850016b 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -416,7 +416,7 @@ def daemonize(enable_stdio_inheritance=False): if os.fork(): os._exit(0) - os.umask(0) + os.umask(0o22) # In both the following any file descriptors above stdin # stdout and stderr are left untouched. The inheritence