From 7e8bcd4e24ea0d94462e5935b75b40afaea1b6a0 Mon Sep 17 00:00:00 2001 From: ebasov Date: Thu, 21 Nov 2024 15:55:05 +0300 Subject: [PATCH 1/3] Fix Service File for fingerprint core module --- SOURCES/fix-service-file.patch | 20 ++++++++++++++++++++ SPECS/fprintd.spec | 9 ++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 SOURCES/fix-service-file.patch diff --git a/SOURCES/fix-service-file.patch b/SOURCES/fix-service-file.patch new file mode 100644 index 0000000..208cf37 --- /dev/null +++ b/SOURCES/fix-service-file.patch @@ -0,0 +1,20 @@ +diff --git a/data/fprintd.service.in b/data/fprintd.service.in +index a4816f9..b96f155 100644 +--- a/data/fprintd.service.in ++++ b/data/fprintd.service.in +@@ -21,7 +21,6 @@ PrivateTmp=true + SystemCallFilter=@system-service + + # Network +-PrivateNetwork=true + RestrictAddressFamilies=AF_UNIX AF_LOCAL AF_NETLINK + + # Execute Mappings +@@ -41,6 +40,7 @@ ProtectClock=yes + DeviceAllow=char-usb_device rw + DeviceAllow=char-spi rw + DeviceAllow=char-hidraw rw ++DeviceAllow=/dev/focal_moh_spi rw + + # Allow tuning USB parameters (wakeup and persist) + ReadWritePaths=/sys/devices diff --git a/SPECS/fprintd.spec b/SPECS/fprintd.spec index d270572..f4f1f45 100644 --- a/SPECS/fprintd.spec +++ b/SPECS/fprintd.spec @@ -1,6 +1,6 @@ Name: fprintd Version: 1.94.0 -Release: 3%{?dist} +Release: 4%{?dist}.inferit Summary: D-Bus service for Fingerprint reader access License: GPLv2+ @@ -25,6 +25,7 @@ BuildRequires: python3-libpamtest # Test fixes Patch0000: https://gitlab.freedesktop.org/libfprint/fprintd/-/merge_requests/157.patch Patch0001: https://gitlab.freedesktop.org/libfprint/fprintd/-/merge_requests/158.patch +Patch002: fix-service-file.patch %description D-Bus service to access fingerprint readers. @@ -97,6 +98,12 @@ fi %{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml %changelog +* Tue Nov 21 2024 Eduard Basov - 1.94.0-4.inferit +- Fix Service File for fingerprint core module + +* Wed Mar 15 2023 MSVSphere Packaging Team - 1.94.0-3 +- Rebuilt for MSVSphere 9.1. + * Thu Aug 26 2021 Benjamin Berg - 1.94.0-3 - Use GFDL abbreviation as GFDLv1.1+ is not listed - Install PAM module into /usr -- 2.36.5 From bb39e624878769c20eb90e39022a2851e4d4dd20 Mon Sep 17 00:00:00 2001 From: ebasov Date: Fri, 22 Nov 2024 10:28:40 +0300 Subject: [PATCH 2/3] Correction .spec --- .../{fix-service-file.patch => Allow-focal_moh_spi-device.patch} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename SOURCES/{fix-service-file.patch => Allow-focal_moh_spi-device.patch} (100%) diff --git a/SOURCES/fix-service-file.patch b/SOURCES/Allow-focal_moh_spi-device.patch similarity index 100% rename from SOURCES/fix-service-file.patch rename to SOURCES/Allow-focal_moh_spi-device.patch -- 2.36.5 From d26ea60a31d57693ee2afc68437bae046f1ce7ee Mon Sep 17 00:00:00 2001 From: ebasov Date: Fri, 22 Nov 2024 10:33:07 +0300 Subject: [PATCH 3/3] Add Correction .spec --- SPECS/fprintd.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SPECS/fprintd.spec b/SPECS/fprintd.spec index f4f1f45..25d273c 100644 --- a/SPECS/fprintd.spec +++ b/SPECS/fprintd.spec @@ -1,6 +1,6 @@ Name: fprintd Version: 1.94.0 -Release: 4%{?dist}.inferit +Release: 3%{?dist}.inferit Summary: D-Bus service for Fingerprint reader access License: GPLv2+ @@ -25,7 +25,7 @@ BuildRequires: python3-libpamtest # Test fixes Patch0000: https://gitlab.freedesktop.org/libfprint/fprintd/-/merge_requests/157.patch Patch0001: https://gitlab.freedesktop.org/libfprint/fprintd/-/merge_requests/158.patch -Patch002: fix-service-file.patch +Patch0002: Allow-focal_moh_spi-device.patch %description D-Bus service to access fingerprint readers. @@ -98,8 +98,10 @@ fi %{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml %changelog -* Tue Nov 21 2024 Eduard Basov - 1.94.0-4.inferit -- Fix Service File for fingerprint core module +* Tue Nov 21 2024 Eduard Basov - 1.94.0-3.inferit +- Fix Service File for fingerprint core module + Deleting the "PrivateNetwork" file from the service + Adding to "DeviceAllow" /dev/focal_moh_spi * Wed Mar 15 2023 MSVSphere Packaging Team - 1.94.0-3 - Rebuilt for MSVSphere 9.1. -- 2.36.5