saltstack/salt — pull request #369 by iamb (2011-12-20 00:54:43+00:00)
Title: File open race

There is a small window of likely insecurity when writing out private keys until they are chmod'd. This change forces temporary restrictive umask in crypto.py and master.py where they are written to disk.