Package init
This commit is contained in:
parent
f0fcde5894
commit
fe22133410
29
CVE-2019-6502.patch
Normal file
29
CVE-2019-6502.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 0d7967549751b7032f22b437106b41444aff0ba9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Scott Gayou <sgayou@redhat.com>
|
||||||
|
Date: Fri, 1 Mar 2019 13:11:06 -0600
|
||||||
|
Subject: [PATCH] Small memory leak fix (CVE-2019-6502 in #1586)
|
||||||
|
|
||||||
|
CVE-2019-6502 was assigned to what appears to be a very minor
|
||||||
|
memory leak that only occurs on an error-case in a CLI tool.
|
||||||
|
If util_connect_card fails, we still need to release the sc
|
||||||
|
context previously allocated by sc_context_create else memory
|
||||||
|
will leak.
|
||||||
|
---
|
||||||
|
src/tools/eidenv.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/tools/eidenv.c b/src/tools/eidenv.c
|
||||||
|
index d8a7be6..d96ad4e 100644
|
||||||
|
--- a/src/tools/eidenv.c
|
||||||
|
+++ b/src/tools/eidenv.c
|
||||||
|
@@ -403,6 +403,7 @@ int main(int argc, char **argv)
|
||||||
|
r = util_connect_card(ctx, &card, opt_reader, opt_wait, 0);
|
||||||
|
if (r) {
|
||||||
|
fprintf(stderr, "Failed to connect to card: %s\n", sc_strerror(r));
|
||||||
|
+ sc_release_context(ctx);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
1.7.12.4
|
||||||
|
|
||||||
46
opensc.spec
46
opensc.spec
@ -1,25 +1,23 @@
|
|||||||
%define opensc_module "OpenSC PKCS #11 Module"
|
%define opensc_module "OpenSC PKCS #11 Module"
|
||||||
%define nssdb %{_sysconfdir}/pki/nssdb
|
%define nssdb %{_sysconfdir}/pki/nssdb
|
||||||
|
|
||||||
Name: opensc
|
Name: opensc
|
||||||
Version: 0.19.0
|
Version: 0.19.0
|
||||||
Release: 3
|
Release: 4
|
||||||
License: LGPLv2.1+
|
License: LGPLv2.1+
|
||||||
URL: https://github.com/OpenSC/OpenSC/wiki
|
Summary: Smart card library and applications
|
||||||
Source0: https://github.com/OpenSC/OpenSC/releases/download/%{version}/%{name}-%{version}.tar.gz
|
URL: https://github.com/OpenSC/OpenSC/wiki
|
||||||
Source1: opensc.module
|
Source0: https://github.com/OpenSC/OpenSC/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
Patch0: opensc-0.19.0-rsa-pss.patch
|
Source1: opensc.module
|
||||||
Summary: Smart card library and applications
|
Patch0: opensc-0.19.0-rsa-pss.patch
|
||||||
|
Patch6000: CVE-2019-6502.patch
|
||||||
|
|
||||||
BuildRequires: openssl-devel pcsc-lite-devel bash-completion
|
BuildRequires: openssl-devel pcsc-lite-devel bash-completion docbook-style-xsl readline-devel
|
||||||
BuildRequires: docbook-style-xsl readline-devel
|
BuildRequires: desktop-file-utils /usr/bin/xsltproc autoconf automake libtool gcc
|
||||||
BuildRequires: desktop-file-utils
|
Requires: pcsc-lite
|
||||||
BuildRequires: /usr/bin/xsltproc
|
Obsoletes: coolkey <= 1.1.0-36
|
||||||
BuildRequires: autoconf automake libtool gcc
|
Obsoletes: mozilla-opensc-signer < 0.12.0
|
||||||
Requires: pcsc-lite
|
Obsoletes: opensc-devel < 0.12.0
|
||||||
Obsoletes: coolkey <= 1.1.0-36
|
|
||||||
Obsoletes: mozilla-opensc-signer < 0.12.0
|
|
||||||
Obsoletes: opensc-devel < 0.12.0
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenSC provides a set of libraries and utilities to work with smart cards.
|
OpenSC provides a set of libraries and utilities to work with smart cards.
|
||||||
@ -29,15 +27,10 @@ mail encryption and digital signatures. OpenSC implements the standard
|
|||||||
APIs to smart cards, e.g. PKCS#11 API, Windows’ Smart Card Minidriver
|
APIs to smart cards, e.g. PKCS#11 API, Windows’ Smart Card Minidriver
|
||||||
and macOS Tokend.
|
and macOS Tokend.
|
||||||
|
|
||||||
%package help
|
%package_help
|
||||||
Summary: Include man page in help package.
|
|
||||||
|
|
||||||
%description help
|
|
||||||
This package provides INFO, HTML and user manual for opensc.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -n %{name}-%{version} -p1
|
||||||
%patch0 -p1 -b .pss
|
|
||||||
|
|
||||||
sed -i -e 's|/usr/local/towitoko/lib/|/usr/lib/ctapi/|' etc/opensc.conf.example.in
|
sed -i -e 's|/usr/local/towitoko/lib/|/usr/lib/ctapi/|' etc/opensc.conf.example.in
|
||||||
cp -p src/pkcs15init/README ./README.pkcs15init
|
cp -p src/pkcs15init/README ./README.pkcs15init
|
||||||
@ -137,6 +130,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/org.opensc.notify.de
|
|||||||
%{_datadir}/p11-kit/modules/opensc.module
|
%{_datadir}/p11-kit/modules/opensc.module
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.19.0-4
|
||||||
|
- Fix CVE-2019-6502
|
||||||
|
|
||||||
* Fri Sep 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.19.0-3
|
* Fri Sep 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.19.0-3
|
||||||
- Adjust requires
|
- Adjust requires
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user