Commit ec552687 by jctanner

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

Enforce umask for cron module, so cron_file generated files are 0644.
parents e2b75abb f88fed20
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment