forked from pool/cloud-init
12 lines
437 B
Diff
12 lines
437 B
Diff
|
--- cloudinit/stages.py.orig
|
||
|
+++ cloudinit/stages.py
|
||
|
@@ -148,7 +148,7 @@ class Init(object):
|
||
|
util.ensure_dirs(self._initial_subdirs())
|
||
|
log_file = util.get_cfg_option_str(self.cfg, 'def_log_file')
|
||
|
if log_file:
|
||
|
- util.ensure_file(log_file)
|
||
|
+ util.ensure_file(log_file, mode=0o640)
|
||
|
perms = self.cfg.get('syslog_fix_perms')
|
||
|
if not perms:
|
||
|
perms = {}
|