unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] system: Make PAM use SHA-512 to encrypt passwords.
@ 2015-08-22 14:28 宋文武
  2015-08-22 15:01 ` 宋文武
  0 siblings, 1 reply; 5+ messages in thread
From: 宋文武 @ 2015-08-22 14:28 UTC (permalink / raw)
  To: guix-devel

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-23 21:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-22 14:28 [PATCH] system: Make PAM use SHA-512 to encrypt passwords 宋文武
2015-08-22 15:01 ` 宋文武
2015-08-22 17:33   ` Mark H Weaver
2015-08-22 22:44     ` 宋文武
2015-08-23 21:36       ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).