[Libguestfs] [PATCH] customize: password: use SHA-512 on Void Linux and Arch Linux

Pino Toscano ptoscano at redhat.com
Thu Jul 21 09:45:08 UTC 2016


They are rolling distributions, so we can assume 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
+
   | _, _ ->
     let minor = g#inspect_get_minor_version root in
     warning (f_"password: using insecure md5 password encryption for guest of type %s version %d.%d.
-- 
2.7.4




More information about the Libguestfs mailing list