| |
@@ -3,7 +3,7 @@
|
| |
|
| |
Name: authselect
|
| |
Version: 1.2.3
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: Configures authentication and identity sources from supported profiles
|
| |
URL: https://github.com/authselect/authselect
|
| |
|
| |
@@ -288,6 +288,16 @@
|
| |
fi
|
| |
fi
|
| |
|
| |
+ # For people upgrading from older Fedora versions, authselect might not be
|
| |
+ # enabled or unable to do anything due to e.g. a modified nsswitch.conf.
|
| |
+ # The following snippets apply important fixes in those cases.
|
| |
+
|
| |
+ # Change pam_fprintd.so in fingerprint-auth from sufficient to [success=done default=bad]
|
| |
+ # in order for PAM_AUTHINFO_UNAVAIL error codes to be propagated.
|
| |
+ FILE="$(readlink -f %{_sysconfdir}/pam.d/fingerprint-auth || echo %{_sysconfdir}/pam.d/fingerprint-auth)"
|
| |
+ %__grep -q '^auth[[:space:]]\+sufficient[[:space:]]\+pam_fprintd.so' $FILE && \
|
| |
+ %__sed -i.bak -e 's/^auth[[:space:]]\+sufficient[[:space:]]\+pam_fprintd.so\(.*\)/auth [success=done default=bad] pam_fprintd.so\1/g' $FILE
|
| |
+
|
| |
exit 0
|
| |
|
| |
%posttrans compat
|
| |
@@ -299,6 +309,10 @@
|
| |
exit 0
|
| |
|
| |
%changelog
|
| |
+ * Fri Apr 09 2021 Benjamin Berg <bberg@redhat.com> - 1.2.3-2
|
| |
+ - Add script to update fingerprint-auth in case authselect is not in use
|
| |
+ Resolves: #1942443
|
| |
+
|
| |
* Wed Mar 31 2021 Pavel Březina <pbrezina@redhat.com> - 1.2.3-1
|
| |
- Rebase to 1.2.3
|
| |
|
| |
Resolves: #1942443