!22 solve the problem that ukui-greeter-wayland can't use biometric authentication
From: @tanyulong2021 Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
e34c787e0d
@ -0,0 +1,26 @@
|
||||
From 6c45acf841e87520a5dbe6d768ee90c39ec67f02 Mon Sep 17 00:00:00 2001
|
||||
From: tanyulong2021 <tanyulong@kylinos.cn>
|
||||
Date: Tue, 2 Aug 2022 10:15:43 +0800
|
||||
Subject: [PATCH] solve the problem that ukui-greeter-wayland can't use
|
||||
biometric authentication
|
||||
|
||||
---
|
||||
pam-biometric/pam_biometric.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pam-biometric/pam_biometric.c b/pam-biometric/pam_biometric.c
|
||||
index 1d7dbbb..61f3dd6 100755
|
||||
--- a/pam-biometric/pam_biometric.c
|
||||
+++ b/pam-biometric/pam_biometric.c
|
||||
@@ -425,7 +425,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
|
||||
get_greeter_session(buf, sizeof(buf));
|
||||
logger("current greeter: %s\n", buf);
|
||||
|
||||
- if(strcmp(buf, "ukui-greeter") == 0)
|
||||
+ if(strcmp(buf, "ukui-greeter") == 0 || strcmp(buf, "ukui-greeter-wayland") == 0)
|
||||
return biometric_auth_embeded(pamh);
|
||||
// else
|
||||
// return biometric_auth_independent(pamh, "lightdm", 1);
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
Name: ukui-biometric-auth
|
||||
Summary: ukui-biometric-auth
|
||||
Version: 1.2.1
|
||||
Release: 7
|
||||
Release: 8
|
||||
|
||||
License: GPL-3+
|
||||
URL: https://github.com/ukui/ukui-biometric-auth
|
||||
@ -16,6 +16,7 @@ Requires: cmake qt5-qtbase-devel pam-devel polkit-qt5-1-devel qt5-qttools-devel
|
||||
Patch0: 0001-add-window-icon.patch
|
||||
Patch1: 0002-add-and-use-attribute-of-UseHighDpiPixmaps.patch
|
||||
Patch2: 0003-modify-pam-module.patch
|
||||
Patch3: 0004-solve-the-problem-that-ukui-greeter-wayland-can-t-use-biometric-authentication.patch
|
||||
|
||||
%description
|
||||
ukui-biometric-auth
|
||||
@ -49,6 +50,7 @@ biometric-auth package.
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
mkdir build
|
||||
@ -83,6 +85,9 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Aug 02 2022 tanyulong <tanyulong@kylinos.cn> - 1.2.1-8
|
||||
- solve the problem that ukui-greeter-wayland can't use biometric authentication
|
||||
|
||||
* Mon Aug 01 2022 tanyulong <tanyulong@kylinos.cn> - 1.2.1-7
|
||||
- modify pam module
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user