use system-wide umask value otherwise all directories under /dev/cgroup and /vservers...
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Wed, 14 Jul 2010 17:16:24 +0000 (13:16 -0400)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Wed, 14 Jul 2010 17:16:24 +0000 (13:16 -0400)
python/vserver.py

index 96ebcdd..0fe7dd6 100644 (file)
@@ -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"])