SHA256
1
0
forked from pool/cloud-init
cloud-init/cloud-init-log-file-mode.patch
Robert Schweikert b8c37f9e0f - Add cloud-init-log-file-mode.patch (bsc#1183939)
+ Change log file creation mode to 640
- Add cloud-init-no-pwd-in-log.patch (bsc#1184758)
  + Do not write the generated password to the log file
- Add cloud-init-purge-cahce-py-ver-change.patch

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=184
2021-06-02 21:15:40 +00:00

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