From 3f14798d46e163a1955cedc7a833619cf717d4fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Wed, 14 Jul 2010 13:15:39 -0400 Subject: [PATCH] use system-wide umask value otherwise all directories under /dev/cgroup and /vservers become world writable --- tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.py b/tools.py index 9590b57..199d799 100644 --- a/tools.py +++ b/tools.py @@ -54,7 +54,7 @@ def daemon(): os.setsid() if os.fork() != 0: os._exit(0) os.chdir('/') - os.umask(0) + os.umask(0022) devnull = os.open(os.devnull, os.O_RDWR) os.dup2(devnull, 0) # xxx fixme - this is just to make sure that nothing gets stupidly lost - should use devnull -- 2.43.0