forked from pool/cloud-init
Robert Schweikert
b8c37f9e0f
+ 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
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 = {}
|