From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: [PATCH] system: Make PAM use SHA-512 to encrypt passwords. Date: Sat, 22 Aug 2015 22:28:48 +0800 Message-ID: <1440253728-27346-1-git-send-email-iyzsong@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZT9lw-0002lL-WD for guix-devel@gnu.org; Sat, 22 Aug 2015 10:27:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZT9ls-0001B8-1c for guix-devel@gnu.org; Sat, 22 Aug 2015 10:27:52 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:33866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZT9lr-0001Aq-Qi for guix-devel@gnu.org; Sat, 22 Aug 2015 10:27:47 -0400 Received: by padfo6 with SMTP id fo6so27121518pad.1 for ; Sat, 22 Aug 2015 07:27:46 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Fixes . * gnu/system/linux.scm (unix-pam-service)[password]: Add 'sha512' to arguments. --- gnu/system/linux.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/system/linux.scm b/gnu/system/linux.scm index aaaa8c6..cc2eabe 100644 --- a/gnu/system/linux.scm +++ b/gnu/system/linux.scm @@ -148,7 +148,10 @@ should be the name of a file used as the message-of-the-day." (module "pam_unix.so") (arguments '("nullok"))) unix))) - (password (list unix)) + (password (list (pam-entry + (control "required") + (module "pam_unix.so") + (arguments '("sha512"))))) (session (if motd (list unix (pam-entry -- 2.4.3