saltstack/salt — pull request #10442 by SaveTheRbtz (2014-02-14 09:31:37+00:00)
Title: security: avoid race between file creation and chmod(2)

Also:
- salt.utils.check_ipc_path_max_len() on master pull socket
- change mode from 0700 to 0600
- added debug logging

TODO: move file creation with specified mode to separate utils function.