Set default umask to 077 intead of 0. Before files could be created
authorAdrian Likins <alikins@redhat.com>
Fri, 24 Apr 2009 17:02:49 +0000 (13:02 -0400)
committerAdrian Likins <alikins@redhat.com>
Fri, 24 Apr 2009 17:17:11 +0000 (13:17 -0400)
as world writeable.

certmaster/utils.py

index 773b0eb..58bf0db 100644 (file)
@@ -57,7 +57,7 @@ def daemonize(pidfile=None):
         sys.exit(0)
     os.chdir("/")
     os.setsid()
-    os.umask(0)
+    os.umask(077)
     pid = os.fork()
 
     os.close(0)