Bug 788528

Summary: wrong path to libibmca.so in openssl.cnf.sample-s390x
Product: Red Hat Enterprise Linux 6 Reporter: Karel Srot <ksrot>
Component: openssl-ibmcaAssignee: Dan Horák <dhorak>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2CC: bugproxy, dhorak, hannsj_uhl, jkachuck, szidek
Target Milestone: rcKeywords: FastFix, Patch
Target Release: 6.9   
Hardware: s390x   
OS: Linux   
URL: https://sourceforge.net/tracker/?func=detail&aid=3485691&group_id=128009&atid=710344
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-24 17:46:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1414846, 1425546    

Description Karel Srot 2012-02-08 11:31:19 UTC
Description of problem:

/usr/share/doc/openssl-ibmca-1.2.0/openssl.cnf.sample-s390x
contains

[imbca_section]
dynamic_path = /usr/lib64/libibmca.so 

but the actual path is 
/usr/lib64/openssl/engines/libibmca.so 


Version-Release number of selected component (if applicable):
openssl-ibmca-1.2.0-2.el6

Comment 1 RHEL Program Management 2012-09-07 05:05:25 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 2 IBM Bug Proxy 2014-07-15 16:13:36 UTC
------- Comment From hellerda.com 2014-07-15 16:05 EDT-------
Hi Red Hat,

After reviewing this internally we think this may be a rpmbuild problem in your environment.  Note that the "openssl.cnf.sample.in" contains the following:

dynamic_path = @libdir@/libibmca.so

I took a look at your src rpm from RHEL6.5 GA, "openssl-ibmca-1.2.0-2.el6_2.1.src.rpm", and I see you are using the upstream "tarball openssl-ibmca-1.2.0.tar.gz" as a foundation.  And the "openssl.cnf.sample.in" file does contain the above line, so that looks good.

However, looking at your .spec file I do see a few differences from the sample .spec contained in the tarball.  Please compare your file to the one in the ./rpm/ directory of the tarball.  One difference that jumps out: the upstream spec has the following under the "%build" directive:

%build
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS"
export CPPFLAGS="$RPM_OPT_FLAGS"
./configure --with-engines-dir=%_libdir/engines
make

whereas your file has:

%build
%configure
make %{?_smp_mflags}

I'm guessing that the missing cmdline option for the "configure" is the culprit.  If not it is probably some similar problem in the rpmbuild.

Can you please review your .spec file to determine why your "openssl.cnf.sample" is getting built with the wrong path?

Comment 3 Dan Horák 2014-07-18 08:07:35 UTC
unfortunatelly the --with-engines-dir option is not understood by the configure script and also the Makefile.am template, it probably worked in the past

from build log:
...
+ ./configure --build=s390x-ibm-linux-gnu --host=s390x-ibm-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-engines-dir=/usr/lib64/openssl/engines
configure: WARNING: unrecognized options: --with-engines-dir
...

as a result %{_libdir} is used instead and the correct location must be fixed manually in the spec file

Comment 4 IBM Bug Proxy 2014-07-18 10:40:39 UTC
------- Comment From hannsj_uhl.com 2014-07-18 10:34 EDT-------
Comment from  Joy M. Latten :

Created commit dd408045bae1 on
http://sourceforge.net/p/opencryptoki/ibmca/ci/master/tree/.
This commit updates README and adds a comment in the openssl.cnf.sample that dynamic_path parameter must be set accordingly.

Comment 5 Hanns-Joachim Uhl 2015-02-17 13:12:54 UTC
Hello Red Hat / Dan,
... will this bugzilla also be resolved with the coming RHEL6.7 ..?
Please advise ..
Thanks for your support.

Comment 9 Hanns-Joachim Uhl 2015-04-14 09:38:04 UTC
Hello Red Hat / Dan,
... will this bugzilla still be resolved with RHEL6.7 ...?
Please confirm or advise ..
Thanks for your support.

Comment 10 Dan Horák 2015-04-15 08:23:27 UTC
(In reply to Hanns-Joachim Uhl from comment #9)
> Hello Red Hat / Dan,
> ... will this bugzilla still be resolved with RHEL6.7 ...?
> Please confirm or advise ..
> Thanks for your support.

no, only very limited set of changes was allowed for the fastrack erratum

Comment 12 Joseph Kachuck 2016-04-28 19:24:30 UTC
Hello,
This was not able to be fixed in RHEL 6.8. This is now requested for RHEL 6.9.

Thank You
Joe Kachuck

Comment 13 Joseph Kachuck 2017-02-16 20:03:56 UTC
Hello,
Due to where we are in the RHEL 6.9 release. This will not make RHEL 6.9. This is now requested for RHEL 6.10.

Thank You
Joe Kachuck

Comment 14 Joseph Kachuck 2017-03-24 17:46:41 UTC
Hello,
RHEL 6 has entered Phase 3. In phase 3 only Critical impact Security Advisories and selected Urgent Priority Bug Fix Advisories will be accepted.
https://access.redhat.com/support/policy/updates/errata

At current this BZ does not meet these requirements. I am closing this BZ as WONTFIX.

Please reopen if this fix is required for RHEL 6. If so please also provide a justification for this fix.

Thank You
Joe Kachuck