search for: default_crypto

Displaying 15 results from an estimated 15 matches for "default_crypto".

2015 Sep 08
1
[PATCH] customize: password: use SHA-512 on openSUSE >= 11.0
...A-512 method. Fallback to an explicit MD5 for older versions. --- customize/password.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customize/password.ml b/customize/password.ml index 27ced67..258d726 100644 --- a/customize/password.ml +++ b/customize/password.ml @@ -162,6 +162,9 @@ and default_crypto g root = | "ubuntu", v when v >= 10 -> `SHA512 | "ubuntu", _ -> `MD5 + | "opensuse", v when v >= 11 -> `SHA512 + | "opensuse", _ -> `MD5 + | _, _ -> let minor = g#inspect_get_minor_version root in warning (f_"p...
2016 Jul 21
1
[PATCH] customize: password: use SHA-512 on Void Linux and Arch Linux
...me they have a glibc version greater than 2.7 (cca Oct 2007). --- customize/password.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customize/password.ml b/customize/password.ml index 94b2f27..8a9fed3 100644 --- a/customize/password.ml +++ b/customize/password.ml @@ -165,6 +165,9 @@ and default_crypto g root = | ("opensuse"|"sles"), v when v >= 11 -> `SHA512 | ("opensuse"|"sles"), _ -> `MD5 + (* Rolling distributions, which hopefully should be updated enough. *) + | ("archlinux"|"voidlinux"), _ -> `SHA512 + | _,...
2015 Jul 24
1
Re: [PATCH] customize: password: improve unknown default crypto message
...> customize/password.ml | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > > diff --git a/customize/password.ml b/customize/password.ml > index 111240e..7a050d6 100644 > --- a/customize/password.ml > +++ b/customize/password.ml > @@ -163,6 +163,13 @@ and default_crypto g root = > | "ubuntu", _ -> `MD5 > > | _, _ -> > - warning (f_"password: using insecure md5 password encryption for > -guest of type %s version %d.\nIf this is incorrect, use --password-crypto option and file a bug.") distro major; > + let v...
2015 Jul 24
3
[PATCH] customize: random_seed: add CirrOS location
CirrOS has its random-seed file in /etc. --- customize/random_seed.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customize/random_seed.ml b/customize/random_seed.ml index 34a7af7..5a15ad9 100644 --- a/customize/random_seed.ml +++ b/customize/random_seed.ml @@ -30,6 +30,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root = "/var/lib/systemd/random-seed"; (* Fedora
2014 Sep 29
2
[PATCH 1/2] builder, customize: disable SELinux
Having SELinux enabled (even if not enforcing) in the appliance causes troubles to applications/libraries that read/write SELinux attributes. --- builder/builder.ml | 6 +++++- customize/customize_main.ml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/builder/builder.ml b/builder/builder.ml index a407924..5195cfd 100644 --- a/builder/builder.ml +++
2015 Sep 08
5
[PATCH 0/2] virt-builder OpenSUSE images
Hi guys, Here are two patches to get opensuse images in virt-builder. Cédric Bosdonnat (2): Allow curl to follow redirects. builder: add opensuse images sources builder/Makefile.am | 3 ++- builder/downloader.ml | 4 ++-- builder/opensuse.conf.in | 3 +++ builder/opensuse.gpg | 21 +++++++++++++++++++++ configure.ac | 1 + 5 files changed, 29 insertions(+), 3
2018 Feb 12
2
[PATCH] inspect: recognize the Kali Linux distribution (RHBZ#1544227)
Read the information from os-release, and make it behave like a Debian distribution (i.e. using dpkg, and apt). --- daemon/inspect_fs.ml | 2 ++ daemon/inspect_fs_unix.ml | 1 + daemon/inspect_types.ml | 2 ++ daemon/inspect_types.mli | 1 + generator/actions_inspection.ml | 4 ++++ 5 files changed, 10 insertions(+) diff --git a/daemon/inspect_fs.ml
2015 Jul 24
0
[PATCH] customize: password: improve unknown default crypto message
...g (and indentation) of the message. --- customize/password.ml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/customize/password.ml b/customize/password.ml index 111240e..7a050d6 100644 --- a/customize/password.ml +++ b/customize/password.ml @@ -163,6 +163,13 @@ and default_crypto g root = | "ubuntu", _ -> `MD5 | _, _ -> - warning (f_"password: using insecure md5 password encryption for -guest of type %s version %d.\nIf this is incorrect, use --password-crypto option and file a bug.") distro major; + let verstr = + let minor = g#i...
2015 Sep 08
0
Re: [PATCH 0/2] virt-builder OpenSUSE images
...gpg Really nice work! Both patches LGTM. The only problem is that patch #2 does not apply cleanly after my SimpleStreams work for virt-builder, so can you please rebase it? I just pushed patch #1, which applies fine. I gave the images a try, and a couple of notes so far are: - mllib/passwords.ml:default_crypto does not know about opensuse, so assumes md5 for shadow (there's a warning when setting up passwords); should be easy to fix - none of the images then boot, reporting that /sbin/init cannot be executed, with error -28. Thanks, -- Pino Toscano
2015 Oct 01
0
[PATCH] customize: sles password defaults.
--- customize/password.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customize/password.ml b/customize/password.ml index 258d726..1f9b8fe 100644 --- a/customize/password.ml +++ b/customize/password.ml @@ -165,6 +165,9 @@ and default_crypto g root = | "opensuse", v when v >= 11 -> `SHA512 | "opensuse", _ -> `MD5 + | "sles", v when v >= 11 -> `SHA512 + | "sles", _ -> `MD5 + | _, _ -> let minor = g#inspect_get_minor_version root in warning (f_"passw...
2014 Sep 29
0
[PATCH 2/2] customize: fix attributes of /etc/shadow (RHBZ#1146275)
...BCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789./" -let rec set_linux_passwords ~prog ?password_crypto g root passwords = +let rec set_linux_passwords ~prog ?password_crypto (g : Guestfs.guestfs) root passwords = let crypto = match password_crypto with | None -> default_crypto ~prog g root | Some c -> c in + (* Create a (almost) empty temporary file with the attributes of + * /etc/shadow, so we can restore them later. + *) + let tempfile = g#mktemp "/etc/shadow.guestfsXXXXXX" in + g#write tempfile "*"; + g#copy_attributes ~all:true &...
2018 Feb 12
0
[PATCH] customize, sysprep, v2v: handle Kali Linux as Debian
...hostname = read_etc_hostname g in update_etc_hostname g hostname; replace_host_in_etc_hosts g old_hostname hostname; diff --git a/customize/password.ml b/customize/password.ml index 2d737bf08..489096aeb 100644 --- a/customize/password.ml +++ b/customize/password.ml @@ -165,7 +165,7 @@ and default_crypto g root = | ("opensuse"|"sles"), _ -> `MD5 (* Rolling distributions, which hopefully should be updated enough. *) - | ("archlinux"|"voidlinux"), _ -> `SHA512 + | ("archlinux"|"voidlinux"|"kalilinux"), _ -> `SHA5...
2014 Sep 04
10
[PATCH 0/5] use augeas for /etc/shadow
Hi, currently /etc/shadow is edited manually when needed (i.e. when setting the password for an user), and it is not changed when removing users. Import the upstream shadow.aug (currently in their development serie, but not part of any released version yet), and use it only when the augeas version is less than a potential 1.2.1 (covering also the case when the new version is just 1.3.0). Pino
2014 Mar 18
2
[PATCH] customize: Move virt-customize-related code to a separate
There's not going to be an easy way to present this patch. It's huge and interconnected. Anyway, what it does is lay the groundwork for a new tool which I'm calling 'virt-customize'. virt-customize is virt-builder, but without the part where it downloads a template from a respository. Just the part where it customizes the template, that is, installing packages, editing
2017 Aug 01
2
[PATCH] Add missing oraclelinux cases.
...uot;), _ -> replace_line_in_file g "/etc/sysconfig/network" "HOSTNAME" hostname; true diff --git a/customize/password.ml b/customize/password.ml index d26b9486590e..dc69b8eb718d 100644 --- a/customize/password.ml +++ b/customize/password.ml @@ -144,9 +144,9 @@ and default_crypto g root = let distro = g#inspect_get_distro root in let major = g#inspect_get_major_version root in match distro, major with - | ("rhel"|"centos"|"scientificlinux"|"redhat-based"), v when v >= 6 -> + | ("rhel"|"centos"|&quo...