SOURCES: partimaged.init - safe umask before creating keys

qboosh qboosh at pld-linux.org
Thu Apr 10 18:12:30 CEST 2008


Author: qboosh                       Date: Thu Apr 10 16:12:30 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- safe umask before creating keys

---- Files affected:
SOURCES:
   partimaged.init (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SOURCES/partimaged.init
diff -u SOURCES/partimaged.init:1.11 SOURCES/partimaged.init:1.12
--- SOURCES/partimaged.init:1.11	Thu Apr 10 13:36:29 2008
+++ SOURCES/partimaged.init	Thu Apr 10 18:12:25 2008
@@ -34,6 +34,7 @@
 # See how we were called.
 case "$1" in
   init)
+	umask 077
         echo "Generating private key: /etc/partimaged/partimaged.key"
         openssl genrsa -out /etc/partimaged/partimaged.key 1024 \
 		&& chown partimag:root /etc/partimaged/partimaged.key \
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/partimaged.init?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list