Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
87c1920063
!24 [sync] PR-22: backport patch to fix data race problem
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-10-24 01:06:26 +00:00
liusirui
0941d64d54 backport patch to fix data race
(cherry picked from commit 76c1b16e7a0818565c63815c05110276507c3600)
2022-10-21 17:38:50 +08:00
openeuler-ci-bot
3b6ca4ca81 !21 [sync] PR-20: update to 1.9.4
From: @openeuler-sync-bot
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-11-30 03:34:03 +00:00
markeryang
2020fb5f5e update to 1.9.4
(cherry picked from commit eb63ad2b0d9175967e35c082561a19fa98b9229a)
2021-11-29 09:44:52 +08:00
openeuler-ci-bot
2ad84888db !14 pcsc-lite delete -S git from %autosetup, and delete BuildRequires git
From: @chenyanpanHW
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-07-31 07:21:12 +00:00
chenyanpanHW
173877cd65
delete -S git from %autosetup, and delete BuildRequires git 2021-07-30 23:13:35 +08:00
openeuler-ci-bot
044a024046 !13 pcsc-lite: backport some patches to solve some upstream problems
From: @liuzhiqiang26
Reviewed-by: @lixiaokeng,@wubo009
Signed-off-by: @wubo009
2020-11-02 10:38:09 +08:00
Zhiqiang Liu
14048123a2 pcsc-lite: backport some patches to solve some upstream problems
backport some patches to solve some upstream problems

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2020-10-29 22:10:36 +08:00
openeuler-ci-bot
400fdaf23b !11 update package to 1.9.0
Merge pull request !11 from 季新杰/master
2020-07-21 16:28:00 +08:00
ji_xinjie
874ab82613 update package to 1.9.0 2020-07-21 11:37:55 +08:00
5 changed files with 70 additions and 33 deletions

View File

@ -1,26 +0,0 @@
From 5a0c5fcd6371f1e1b5b18b2888d9e3304e402177 Mon Sep 17 00:00:00 2001
From: Shijie Luo <luoshijie1@huawei.com>
Date: Tue, 18 Feb 2020 09:43:11 +0800
Subject: [PATCH] pcsc-lite:change to use python3 for pcsc-spy
pcsc-spy is needed when we compile pcsc-lite, change to
use python3 instead of python2.
Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
---
src/spy/pcsc-spy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spy/pcsc-spy b/src/spy/pcsc-spy
index bf49482..7b9c5f3 100755
--- a/src/spy/pcsc-spy
+++ b/src/spy/pcsc-spy
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python3
"""
# Display PC/SC functions arguments
--
1.8.3.1

View File

@ -0,0 +1,48 @@
From e46aad0c3571bd5f9da4cd4544fa3d6201dc3890 Mon Sep 17 00:00:00 2001
From: Ludovic Rousseau <ludovic.rousseau@free.fr>
Date: Sun, 12 Dec 2021 15:25:32 +0100
Subject: [PATCH] pcscdaemon.c: Fix data race for AraKiri variable
Issue reported by clang ThreadSanitizer
WARNING: ThreadSanitizer: data race (pid=14419)
Read of size 1 at 0x000000f3a9c8 by main thread:
#0 SVCServiceRunLoop <null> (pcscd+0x4c0da9)
#1 main <null> (pcscd+0x4c0694)
Previous write of size 1 at 0x000000f3a9c8 by thread T1:
#0 signal_thread <null> (pcscd+0x4c0aca)
As if synchronized via sleep:
#0 nanosleep <null> (pcscd+0x4297dd)
#1 SYS_USleep <null> (pcscd+0x4c6c36)
#2 SVCServiceRunLoop <null> (pcscd+0x4c0cef)
#3 main <null> (pcscd+0x4c0694)
Location is global 'AraKiri' of size 1 at 0x000000f3a9c8 (pcscd+0x000000f3a9c8)
Thread T1 (tid=14421, running) created by main thread at:
#0 pthread_create <null> (pcscd+0x42be9b)
#1 main <null> (pcscd+0x4c01c8)
SUMMARY: ThreadSanitizer: data race (/home/rousseau/sc/costa/PCSC/src/pcscd+0x4c0da9) in SVCServiceRunLoop
---
src/pcscdaemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pcscdaemon.c b/src/pcscdaemon.c
index 2cc3fc0..2c4e305 100644
--- a/src/pcscdaemon.c
+++ b/src/pcscdaemon.c
@@ -75,7 +75,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define FALSE 0
#endif
-char AraKiri = FALSE;
+_Atomic char AraKiri = FALSE;
static char Init = TRUE;
char AutoExit = FALSE;
char SocketActivated = FALSE;
--
2.33.0

Binary file not shown.

BIN
pcsc-lite-1.9.4.tar.bz2 Normal file

Binary file not shown.

View File

@ -1,13 +1,15 @@
Name: pcsc-lite
Version: 1.8.23
Release: 9
Version: 1.9.4
Release: 2
Summary: Middleware to access a smart card using SCard API (PC/SC)
License: BSD
URL: https://pcsclite.apdu.fr/
Source0: https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
Patch0: 0001-pcscdaemon.c-Fix-data-race-for-AraKiri-variable.patch
BuildRequires: systemd-devel polkit-devel gettext-devel
BuildRequires: perl-podlators doxygen gnupg2 gcc git python3
BuildRequires: perl-podlators doxygen gnupg2 gcc python3
Requires(post): systemd
Requires(preun): systemd
@ -18,8 +20,6 @@ Recommends: ccid
Provides: pcsc-lite-libs%{?_isa} pcsc-lite-libs
Obsoletes: pcsc-lite-libs
Patch0: 0000-pcsc-lite-change-to-use-python3-for-pcsc-spy.patch
%description
PC/SC Lite is a middleware to access a smart card using SCard API (PC/SC).
This package contains PC/SC Lite server and other utilities.
@ -44,7 +44,7 @@ Obsoletes: %{name}-doc
This package includes documentation for PC/SC Lite.
%prep
%autosetup -n %{name}-%{version} -p1 -S git
%autosetup -n %{name}-%{version} -p1
for file in ChangeLog; do
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
@ -82,7 +82,7 @@ mkdir -p %{buildroot}/%{_localstatedir}/run/pcscd
%ldconfig_scriptlets
%files
%doc AUTHORS ChangeLog DRIVERS HELP README SECURITY TODO
%doc AUTHORS ChangeLog HELP README SECURITY TODO
%doc doc/README.polkit
%license COPYING
%dir %{_sysconfdir}/reader.conf.d/
@ -112,6 +112,21 @@ mkdir -p %{buildroot}/%{_localstatedir}/run/pcscd
%changelog
* Thu Oct 20 2022 liusirui <liusirui@huawei.com> - 1.9.4-2
- backport patch to fix data race
* Tue Nov 23 2021 yanglongkang <yanglongkang@huawei.com> - 1.9.4-1
- update to 1.9.4
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.9.0-3
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Thu Oct 29 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.9.0-2
- backport some patches to solve some upstream problems
* Tue Jul 21 2020 jixinjie <jixinjie@huawei.com> - 1.9.0-1
- update package to 1.9.0
* Tue Feb 18 2020 Shijie Luo <buildteam@openeuler.org> - 1.8.23-9
- change to use python3 for pcsc-spy python script.