File cloud-init-log-file-mode.patch of Package cloud-init

--- 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 = {}
openSUSE Build Service is sponsored by