From fc4fdf4ed6384263db894fb950b17ecd79b69807 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Sep 17 2019 13:01:46 +0000 Subject: Update to release 1.4.1 Disable python2 bindings in Fedora 31 and above Add conditionals for Python2 and Python3 pam_pwquality: Abort the retry loop if user requests it Allow setting retry, enforce_for_root, and local_users_only options in the pwquality.conf config file --- diff --git a/.gitignore b/.gitignore index 71aef24..434294f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /libpwquality-1.2.4.tar.bz2 /libpwquality-1.3.0.tar.bz2 /libpwquality-1.4.0.tar.bz2 +/libpwquality-1.4.1.tar.bz2 diff --git a/libpwquality-1.4.0-covscan.patch b/libpwquality-1.4.0-covscan.patch deleted file mode 100644 index 2b3fd5f..0000000 --- a/libpwquality-1.4.0-covscan.patch +++ /dev/null @@ -1,32 +0,0 @@ -From fbf963dde2cbe34dba1df269b9506f4a55c39357 Mon Sep 17 00:00:00 2001 -From: Tomas Mraz -Date: Mon, 22 Oct 2018 16:29:31 +0200 -Subject: [PATCH] Use calloc() instead of malloc() in distcalculate to - initialize the memory. - ---- - src/check.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/check.c b/src/check.c -index ac7cbd5..61218a7 100644 ---- a/src/check.c -+++ b/src/check.c -@@ -96,12 +96,12 @@ distance(const char *old, const char *new) - - m = strlen(old); - n = strlen(new); -- distances = malloc(sizeof(int*) * (m + 1)); -+ distances = calloc(m + 1, sizeof(int*)); - if (distances == NULL) - return -1; - - for (i = 0; i <= m; i++) { -- distances[i] = malloc(sizeof(int) * (n + 1)); -+ distances[i] = calloc(n + 1, sizeof(int)); - if (distances[i] == NULL) - goto allocfail; - --- -2.14.5 - diff --git a/libpwquality.spec b/libpwquality.spec index 107936b..06967e6 100644 --- a/libpwquality.spec +++ b/libpwquality.spec @@ -14,13 +14,12 @@ Summary: A library for password generation and password quality checking Name: libpwquality -Version: 1.4.0 -Release: 15%{?dist} +Version: 1.4.1 +Release: 1%{?dist} # The package is BSD licensed with option to relicense as GPLv2+ # - this option is redundant as the BSD license allows that anyway. License: BSD or GPLv2+ Source0: https://github.com/libpwquality/libpwquality/releases/download/libpwquality-%{version}/libpwquality-%{version}.tar.bz2 -Patch1: libpwquality-1.4.0-covscan.patch %global _pwqlibdir %{_libdir} %global _moduledir %{_libdir}/security @@ -87,7 +86,6 @@ pronounceable passwords from Python applications. %prep %setup -q -%patch1 -p1 -b .covscan %if %{with python3} && %{with python2} rm -rf %{py3dir} @@ -180,35 +178,12 @@ mkdir $RPM_BUILD_ROOT%{_secconfdir}/pwquality.conf.d %endif %changelog -* Fri Aug 16 2019 Miro Hrončok - 1.4.0-15 -- Rebuilt for Python 3.8 - -* Mon Aug 12 2019 Tomáš Mráz 1.4.0-14 +* Tue Sep 17 2019 Tomáš Mráz 1.4.1-1 - Disable python2 bindings in Fedora 31 and above - -* Thu Jul 25 2019 Fedora Release Engineering - 1.4.0-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 1.4.0-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Mon Oct 22 2018 Tomáš Mráz 1.4.0-11 -- Fix an issue found in Coverity scan - -* Tue Jul 31 2018 Florian Weimer - 1.4.0-10 -- Rebuild with fixed binutils - -* Fri Jul 13 2018 Fedora Release Engineering - 1.4.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Fri Jun 15 2018 Miro Hrončok - 1.4.0-8 -- Rebuilt for Python 3.7 - -* Thu Mar 22 2018 Tomáš Mráz 1.4.0-7 - Add conditionals for Python2 and Python3 - -* Wed Feb 07 2018 Fedora Release Engineering - 1.4.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild +- pam_pwquality: Abort the retry loop if user requests it +- Allow setting retry, enforce_for_root, and local_users_only options + in the pwquality.conf config file * Sat Feb 03 2018 Igor Gnatenko - 1.4.0-5 - Switch to %%ldconfig_scriptlets @@ -217,12 +192,6 @@ mkdir $RPM_BUILD_ROOT%{_secconfdir}/pwquality.conf.d - Python 2 binary package renamed to python2-pwquality See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 -* Thu Aug 03 2017 Fedora Release Engineering - 1.4.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 1.4.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - * Fri May 26 2017 Tomáš Mráz 1.4.0-1 - Do not try to check presence of too short username in password - Make the user name check optional (via usercheck option) diff --git a/sources b/sources index 7d20078..fad579f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libpwquality-1.4.0.tar.bz2) = b8049f8b71bbfd4d345dbd4c4cffd29e9029b0fca4c95527af54d11a3b06e4708236b630df6c66738368298679c96cb3bf26b1b5d95cb3c5f7e1073cab8a98d9 +SHA512 (libpwquality-1.4.1.tar.bz2) = 0bbec7e79a4db56c2cbda65c36003758a1044eee2ac8c678447d96d3cddf034a3196a7d8cd7972e9f50701391b8b81e2c3769fd81c4e4605fed96efd120ff257