From: "Mikle Kolyada" <zlogene@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pambase:master commit in: /
Date: Wed, 10 Jun 2020 11:50:12 +0000 (UTC) [thread overview]
Message-ID: <1591788766.7348fa57c7ada42820773f8c8b6f06f7181169ee.zlogene@gentoo> (raw)
commit: 7348fa57c7ada42820773f8c8b6f06f7181169ee
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 10 11:32:46 2020 +0000
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Wed Jun 10 11:32:46 2020 +0000
URL: https://gitweb.gentoo.org/proj/pambase.git/commit/?id=7348fa57
New release
- disable cracklib in favor of passwdqc
- disable tally{,2} in favor of faillock
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
Makefile | 4 ----
basic-conf | 4 ++--
linux-pam-conf | 7 +------
system-auth.in | 3 ---
system-login.in | 8 ++++----
5 files changed, 7 insertions(+), 19 deletions(-)
diff --git a/Makefile b/Makefile
index 9afc842..f7e7653 100644
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,6 @@ GIT=git
PAMFLAGS = -include linux-pam-conf -include basic-conf -DLINUX_PAM_VERSION=$(LINUX_PAM_VERSION)
-ifeq "$(CRACKLIB)" "yes"
-PAMFLAGS += -DHAVE_CRACKLIB=1
-endif
-
ifeq "$(PASSWDQC)" "yes"
PAMFLAGS += -DHAVE_PASSWDQC=1
endif
diff --git a/basic-conf b/basic-conf
index 5ab72c0..7b1bf00 100644
--- a/basic-conf
+++ b/basic-conf
@@ -1,8 +1,8 @@
-// Only use_authtok (authentication token) when using cracklib or some other module
+// Only use_authtok (authentication token) when using passwdqc or some other module
// that checks for passwords, or pam_krb5
#define AUTHTOK use_authtok
-#if HAVE_CRACKLIB || HAVE_PASSWDQC
+#if HAVE_PASSWDQC
# define PASSWORD_STRENGTH 1
#endif
diff --git a/linux-pam-conf b/linux-pam-conf
index ecd5697..962b2eb 100644
--- a/linux-pam-conf
+++ b/linux-pam-conf
@@ -12,12 +12,7 @@
# define HAVE_MOTD 1
# define HAVE_MAIL 1
# define HAVE_LASTLOG 1
-
-# if LINUX_PAM_VERSION > 0x010100 /* 1.1.0 */
-# define TALLY_MODULE pam_tally2.so
-# else
-# define TALLY_MODULE pam_tally.so
-# endif
+# define HAVE_FAILLOCK 1
#endif
diff --git a/system-auth.in b/system-auth.in
index e65e4c2..dbb6971 100644
--- a/system-auth.in
+++ b/system-auth.in
@@ -18,9 +18,6 @@ account required pam_unix.so DEBUG
/* This is needed to make sure that the Kerberos skip-on-success won't cause a bad jump. */
account optional pam_permit.so
-#if HAVE_CRACKLIB
-password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3 DEBUG
-#endif
#if HAVE_PASSWDQC
password required pam_passwdqc.so min=8,8,8,8,8 retry=3
#endif
diff --git a/system-login.in b/system-login.in
index f159f10..d93d926 100644
--- a/system-login.in
+++ b/system-login.in
@@ -1,5 +1,5 @@
-#if defined(TALLY_MODULE)
-auth required TALLY_MODULE onerr=succeed
+#if HAVE_FAILLOCK
+auth required pam_faillock.so dir=/var/log deny=3
#endif
#if HAVE_SHELLS
auth required pam_shells.so DEBUG
@@ -19,8 +19,8 @@ account required pam_login_access.so
account required pam_nologin.so DEBUG_NOLOGIN
#endif
account include system-auth
-#if defined(TALLY_MODULE)
-account required TALLY_MODULE onerr=succeed DEBUG
+#if HAVE_FAILLOCK
+account required pam_faillock.so dir=/var/log deny=3
#endif
password include system-auth
next reply other threads:[~2020-06-10 11:50 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-10 11:50 Mikle Kolyada [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-23 23:46 [gentoo-commits] proj/pambase:master commit in: / Sam James
2023-11-13 6:20 Sam James
2021-11-14 11:55 Mikle Kolyada
2020-10-12 15:28 Sam James
2020-08-05 6:13 Sam James
2020-08-05 6:04 Sam James
2020-06-18 10:11 Mikle Kolyada
2020-06-17 18:30 Mikle Kolyada
2020-06-16 16:26 Mikle Kolyada
2020-06-10 11:50 Mikle Kolyada
2020-04-29 21:37 Mikle Kolyada
2020-03-04 17:32 David Seifert
2019-11-28 18:21 Mikle Kolyada
2019-11-27 9:27 Mikle Kolyada
2019-11-24 14:37 Mikle Kolyada
2019-11-15 18:09 Mikle Kolyada
2019-04-02 13:11 Mikle Kolyada
2015-05-17 5:22 Mike Frysinger
2015-02-15 4:48 Mike Frysinger
2015-02-15 4:48 Mike Frysinger
2015-02-15 4:48 Mike Frysinger
2015-02-15 4:48 Mike Frysinger
2014-03-13 14:40 Samuli Suominen
2014-03-13 14:17 Samuli Suominen
2014-03-13 14:12 Samuli Suominen
2012-04-17 7:10 Paweł Hajdan
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=1591788766.7348fa57c7ada42820773f8c8b6f06f7181169ee.zlogene@gentoo \
--to=zlogene@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox