#1 Fix the default path for opensc-pkcs11.so
Opened 2 months ago by kwizart. Modified 2 months ago
rpms/ kwizart/rng-tools pkcs11_path  into  master

file modified
+5 -1

@@ -4,7 +4,7 @@ 

  Summary:        Random number generator related utilities

  Name:           rng-tools

  Version:        6.7

- Release:        2%{?dist}

+ Release:        3%{?dist}

  License:        GPLv2+

  URL:            https://github.com/nhorman/rng-tools

  Source0:        https://github.com/nhorman/rng-tools/archive/rng-tools-%{version}.tar.gz

@@ -38,6 +38,7 @@ 

  

  %prep 

  %autosetup 

+ sed -i -e 's|/usr/lib64/|%{_libdir}/|' rngd.c

  

  %build

  ./autogen.sh

@@ -70,6 +71,9 @@ 

  %attr(0644,root,root)   %{_unitdir}/rngd.service

  

  %changelog

+ * Mon Jun 24 2019 Nicolas Chauvet <kwizart@gmail.com> - 6.7-3

+ - Set the default pkcs11 engine path

+ 

  * Fri May 24 2019 Neil Horman <nhorman@redhat.com> -6.7-2

  - Fix race in shutdown leading to hang (bz 1690364)

  - bump version number

This fix the default path chosen to find the opensc-pkcs11.so library
Fedora 30 scratch build with the change:
https://koji.fedoraproject.org/koji/taskinfo?taskID=35785927

from rngd.c
#ifndef DEFAULT_PKCS11_ENGINE
#define DEFAULT_PKCS11_ENGINE "/usr/lib64/opensc-pkcs11.so"
#endif