Merge pull request #4304 from ferringb/fixes/cron-permissions

Enforce umask for cron module, so cron_file generated files are 0644.
This commit is contained in:
jctanner 2013-11-11 14:23:39 -08:00
commit fc51fb8853

View file

@ -428,6 +428,8 @@ def main():
changed = False
res_args = dict()
# Ensure all files generated are only writable by the owning user. Primarily relevant for the cron_file option.
os.umask(022)
crontab = CronTab(module, user, cron_file)
if crontab.syslogging: