SHA256
1
0
forked from pool/cloud-init
cloud-init/cloud-init-log-file-mode.patch

12 lines
437 B
Diff
Raw Normal View History

--- 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 = {}