parent
6ad77309cc
commit
5d430b6742
25
opencryptoki-3.17.0-init.patch
Normal file
25
opencryptoki-3.17.0-init.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 3fea29baa97be9c132a8189eb00c7a782900d472 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ingo Franzki <ifranzki@linux.ibm.com>
|
||||||
|
Date: Thu, 18 Nov 2021 10:15:53 +0100
|
||||||
|
Subject: [PATCH] API: Unlock GlobMutex if user and group check fails
|
||||||
|
|
||||||
|
Closes: https://github.com/opencryptoki/opencryptoki/issues/493
|
||||||
|
|
||||||
|
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
|
||||||
|
---
|
||||||
|
usr/lib/api/api_interface.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/usr/lib/api/api_interface.c b/usr/lib/api/api_interface.c
|
||||||
|
index 6fac7e0bf..20f605c3a 100644
|
||||||
|
--- a/usr/lib/api/api_interface.c
|
||||||
|
+++ b/usr/lib/api/api_interface.c
|
||||||
|
@@ -2872,7 +2872,7 @@ CK_RV C_Initialize(CK_VOID_PTR pVoid)
|
||||||
|
|
||||||
|
rc = check_user_and_group();
|
||||||
|
if (rc != CKR_OK)
|
||||||
|
- return rc;
|
||||||
|
+ goto done;
|
||||||
|
|
||||||
|
if (!Anchor) {
|
||||||
|
Anchor = (API_Proc_Struct_t *) malloc(sizeof(API_Proc_Struct_t));
|
@ -1,7 +1,7 @@
|
|||||||
Name: opencryptoki
|
Name: opencryptoki
|
||||||
Summary: Implementation of the PKCS#11 (Cryptoki) specification v3.0
|
Summary: Implementation of the PKCS#11 (Cryptoki) specification v3.0
|
||||||
Version: 3.17.0
|
Version: 3.17.0
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: CPL
|
License: CPL
|
||||||
URL: https://github.com/opencryptoki/opencryptoki
|
URL: https://github.com/opencryptoki/opencryptoki
|
||||||
Source0: https://github.com/opencryptoki/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/opencryptoki/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
@ -22,6 +22,7 @@ Patch300: opencryptoki-pkcsslotd-pidfile.patch
|
|||||||
Patch301: opencryptoki-3.17-avoid-deadlock-when-stopping-event-thread.patch
|
Patch301: opencryptoki-3.17-avoid-deadlock-when-stopping-event-thread.patch
|
||||||
Patch302: opencryptoki-3.17.0-openssl-cleanup-for-opencryptoki.patch
|
Patch302: opencryptoki-3.17.0-openssl-cleanup-for-opencryptoki.patch
|
||||||
Patch303: opencryptoki-3.17-tokversion.patch
|
Patch303: opencryptoki-3.17-tokversion.patch
|
||||||
|
Patch304: opencryptoki-3.17.0-init.patch
|
||||||
|
|
||||||
Requires(pre): coreutils
|
Requires(pre): coreutils
|
||||||
Requires: (selinux-policy >= 34.9-1 if selinux-policy-targeted)
|
Requires: (selinux-policy >= 34.9-1 if selinux-policy-targeted)
|
||||||
@ -331,6 +332,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 20 2022 Dan Horák <dan[at]danny.cz> - 3.17.0-7
|
||||||
|
- fix initialization (#2075851, #2074587)
|
||||||
|
|
||||||
* Wed Apr 06 2022 Than Ngo <than@redhat.com> - 3.17.0-6
|
* Wed Apr 06 2022 Than Ngo <than@redhat.com> - 3.17.0-6
|
||||||
- add tokversion
|
- add tokversion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user