From 019b66e6e2d1739b8fe129d91a976b4967aee154 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 14 Aug 2019 13:34:59 +0200 Subject: [PATCH] + fprintd-0.9.0-1 Update to 0.9.0 Add patch to fix length check of rhost --- .gitignore | 1 + 0001-pam-Fix-rhost-string-length-check.patch | 25 ++++++++++++++++++++ fprintd.spec | 13 +++++++--- sources | 2 +- 4 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 0001-pam-Fix-rhost-string-length-check.patch diff --git a/.gitignore b/.gitignore index 71dcfb8..f13d419 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ fprintd-0.1-04fd09cfa.tar.bz2 /fprintd-0.7.0.tar.xz /fprintd-0.8.0.tar.xz /fprintd-0.8.1.tar.xz +/fprintd-0.9.0.tar.xz diff --git a/0001-pam-Fix-rhost-string-length-check.patch b/0001-pam-Fix-rhost-string-length-check.patch new file mode 100644 index 0000000..b349bad --- /dev/null +++ b/0001-pam-Fix-rhost-string-length-check.patch @@ -0,0 +1,25 @@ +From 96444b4156cbc5d0364ac45a7b3288ae28dfbb58 Mon Sep 17 00:00:00 2001 +From: Benjamin Berg +Date: Tue, 13 Aug 2019 14:16:11 +0200 +Subject: [PATCH] pam: Fix rhost string length check + +--- + pam/pam_fprintd.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pam/pam_fprintd.c b/pam/pam_fprintd.c +index 408b74c..b2eee4d 100644 +--- a/pam/pam_fprintd.c ++++ b/pam/pam_fprintd.c +@@ -481,7 +481,7 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, + * "localhost" if the host is local. + * We want to not run for known remote hosts */ + if (rhost != NULL && +- rhost != '\0' && ++ *rhost != '\0' && + strcmp (rhost, "localhost") != 0) { + return PAM_AUTHINFO_UNAVAIL; + } +-- +2.21.0 + diff --git a/fprintd.spec b/fprintd.spec index 1ca506c..d1842b5 100644 --- a/fprintd.spec +++ b/fprintd.spec @@ -1,6 +1,6 @@ Name: fprintd -Version: 0.8.1 -Release: 5%{?dist} +Version: 0.9.0 +Release: 1%{?dist} Summary: D-Bus service for Fingerprint reader access License: GPLv2+ @@ -18,6 +18,8 @@ BuildRequires: autoconf automake libtool BuildRequires: perl-podlators BuildRequires: pkgconfig(systemd) +Patch0: 0001-pam-Fix-rhost-string-length-check.patch + %description D-Bus service to access fingerprint readers. @@ -47,7 +49,7 @@ Development documentation for fprintd, the D-Bus service for fingerprint readers access. %prep -%setup -q -n %{name}-%{version} +%autosetup -p1 -n %{name}-%{version} %build %configure --libdir=/%{_lib}/ --enable-gtk-doc --enable-pam @@ -91,6 +93,11 @@ fi %{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml %changelog +* Wed Aug 14 2019 Benjamin Berg - 0.9.0-1 ++ fprintd-0.9.0-1 +- Update to 0.9.0 +- Add patch to fix length check of rhost + * Thu Jul 25 2019 Fedora Release Engineering - 0.8.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 915dadc..b5233fe 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (fprintd-0.8.1.tar.xz) = 1662cb58c0c1cabef2fb05d79249c1985053fd810d4ac9fdb7461adcb8b7c7f680490800bfba357f1ad23684492a3fd60546301d81dcd96e0f09c52ed2082200 +SHA512 (fprintd-0.9.0.tar.xz) = c8e5ff2c8134e23c6ed83c6c96587dfbc14e4503ca13fcdfd4103b9d2c00332456fdef2e16ea11b0dfde7642ad762f219c38cc5f1a4d875c6ed1970144de9514