From 9e4fb6c8dc5879c213ce8d311ca556b952ba1c21 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Wed, 14 Jul 2010 13:16:24 -0400 Subject: [PATCH] use system-wide umask value otherwise all directories under /dev/cgroup and /vservers become world writable --- python/vserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/vserver.py b/python/vserver.py index 96ebcdd..0fe7dd6 100644 --- a/python/vserver.py +++ b/python/vserver.py @@ -390,7 +390,7 @@ class VServer: os._exit(0) # Exit parent (the first child) of the second child. # the grandson is the working one os.chdir('/') - os.umask(0) + os.umask(0022) try: # start the vserver subprocess.call(["/usr/sbin/vserver",self.name,"start"]) -- 2.43.0