SHA256
1
0
forked from pool/cloud-init

- Add cloud-init-long-pass.patch (bsc#1162936, CVE-2020-8632)

+ Increase the default length of generated passwords

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=163
This commit is contained in:
Robert Schweikert 2020-02-13 14:08:57 +00:00 committed by Git OBS Bridge
parent d3536e70a5
commit 1b2a3c0e23
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- cloudinit/config/cc_set_passwords.py.orig
+++ cloudinit/config/cc_set_passwords.py
@@ -236,7 +236,7 @@ def handle(_name, cfg, cloud, log, args)
raise errors[-1]
-def rand_user_password(pwlen=9):
+def rand_user_password(pwlen=20):
return util.rand_str(pwlen, select_from=PW_SET)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 13 14:07:50 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
- Add cloud-init-long-pass.patch (bsc#1162936, CVE-2020-8632)
+ Increase the default length of generated passwords
-------------------------------------------------------------------
Wed Feb 12 22:37:57 UTC 2020 - Robert Schweikert <rjschwei@suse.com>

View File

@ -46,6 +46,7 @@ Patch56: cloud-init-sysconf-path.patch
# FIXME (lp#1860164)
Patch57: cloud-init-no-tempnet-oci.patch
Patch58: cloud-init-use-different-random-src.diff
Patch59: cloud-init-long-pass.patch
BuildRequires: fdupes
BuildRequires: filesystem
@ -192,6 +193,7 @@ Documentation and examples for cloud-init tools
%patch56
%patch57
%patch58 -p1
%patch59
%build
%if 0%{?suse_version} && 0%{?suse_version} <= 1315