From: 宋文武 <iyzsong@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] system: Make PAM use SHA-512 to encrypt passwords.
Date: Sat, 22 Aug 2015 22:28:48 +0800 [thread overview]
Message-ID: <1440253728-27346-1-git-send-email-iyzsong@gmail.com> (raw)
Fixes <https://bugs.gnu.org/21318>.
* 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
next reply other threads:[~2015-08-22 14:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-22 14:28 宋文武 [this message]
2015-08-22 15:01 ` [PATCH] system: Make PAM use SHA-512 to encrypt passwords 宋文武
2015-08-22 17:33 ` Mark H Weaver
2015-08-22 22:44 ` 宋文武
2015-08-23 21:36 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1440253728-27346-1-git-send-email-iyzsong@gmail.com \
--to=iyzsong@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.