forked from pool/openssl-1_1
Accepting request 766919 from home:vitezslav_cizek:branches:security:tls
layered FIPS initialization (bsc#1161789) OBS-URL: https://build.opensuse.org/request/show/766919 OBS-URL: https://build.opensuse.org/package/show/security:tls/openssl-1_1?expand=0&rev=52
This commit is contained in:
parent
c29de1fbdc
commit
d4b57dac41
@ -2,7 +2,7 @@
|
|||||||
Thu Jan 23 14:32:28 UTC 2020 - Vítězslav Čížek <vcizek@suse.com>
|
Thu Jan 23 14:32:28 UTC 2020 - Vítězslav Čížek <vcizek@suse.com>
|
||||||
|
|
||||||
- Temporarily ignore broken OPENSSL_INIT_NO_ATEXIT due to our
|
- Temporarily ignore broken OPENSSL_INIT_NO_ATEXIT due to our
|
||||||
layered FIPS initialization
|
layered FIPS initialization (bsc#1161789)
|
||||||
* openssl-fips-ignore_broken_atexit_test.patch
|
* openssl-fips-ignore_broken_atexit_test.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
@ -50,10 +50,37 @@ Patch10: 0003-crypto-poly1305-asm-poly1305-s390x.pl-add-vx-code-pa.patch
|
|||||||
Patch11: 0004-s390x-assembly-pack-fix-formal-interface-bug-in-chac.patch
|
Patch11: 0004-s390x-assembly-pack-fix-formal-interface-bug-in-chac.patch
|
||||||
Patch12: 0005-s390x-assembly-pack-import-chacha-from-cryptogams-re.patch
|
Patch12: 0005-s390x-assembly-pack-import-chacha-from-cryptogams-re.patch
|
||||||
Patch13: 0006-s390x-assembly-pack-import-poly-from-cryptogams-repo.patch
|
Patch13: 0006-s390x-assembly-pack-import-poly-from-cryptogams-repo.patch
|
||||||
Patch14: openssl-jsc-SLE-8789-backport_KDF.patch
|
|
||||||
# OpenSSL Security Advisory [6 December 2019] bsc#1158809 CVE-2019-1551
|
# OpenSSL Security Advisory [6 December 2019] bsc#1158809 CVE-2019-1551
|
||||||
# PATCH-FIX-UPSTREAM Integer overflow in RSAZ modular exponentiation on x86_64
|
# PATCH-FIX-UPSTREAM Integer overflow in RSAZ modular exponentiation on x86_64
|
||||||
Patch15: openssl-1_1-CVE-2019-1551.patch
|
Patch15: openssl-1_1-CVE-2019-1551.patch
|
||||||
|
# PATCH-FIX-UPSTREAM bsc#1152695 jsc#SLE-7861 Support for CPACF enhancements - part 1 (crypto)
|
||||||
|
Patch16: openssl-s390x-assembly-pack-add-OPENSSL_s390xcap-environment.patch
|
||||||
|
Patch17: openssl-s390x-assembly-pack-add-support-for-pcc-and-kma-inst.patch
|
||||||
|
Patch18: openssl-s390x-assembly-pack-add-OPENSSL_s390xcap-man-page.patch
|
||||||
|
Patch19: openssl-s390x-assembly-pack-update-OPENSSL_s390xcap-3.patch
|
||||||
|
Patch20: openssl-s390xcpuid.pl-fix-comment.patch
|
||||||
|
Patch21: openssl-assembly-pack-accelerate-scalar-multiplication.patch
|
||||||
|
Patch22: openssl-Enable-curve-spefific-ECDSA-implementations-via-EC_M.patch
|
||||||
|
Patch23: openssl-s390x-assembly-pack-accelerate-ECDSA.patch
|
||||||
|
Patch24: openssl-OPENSSL_s390xcap.pod-list-msa9-facility-bit-155.patch
|
||||||
|
Patch25: openssl-s390x-assembly-pack-cleanse-only-sensitive-fields.patch
|
||||||
|
Patch26: openssl-s390x-assembly-pack-fix-OPENSSL_s390xcap-z15-cpu-mas.patch
|
||||||
|
Patch27: openssl-s390x-assembly-pack-fix-msa3-stfle-bit-detection.patch
|
||||||
|
Patch28: openssl-Fix-9bf682f-which-broke-nistp224_method.patch
|
||||||
|
# FIPS patches
|
||||||
|
Patch30: openssl-1.1.1-fips.patch
|
||||||
|
Patch31: openssl-1.1.1-fips-post-rand.patch
|
||||||
|
Patch32: openssl-1.1.1-fips-crng-test.patch
|
||||||
|
Patch33: openssl-1.1.0-issuer-hash.patch
|
||||||
|
Patch34: openssl-fips-run_selftests_only_when_module_is_complete.patch
|
||||||
|
Patch35: openssl-ship_fips_standalone_hmac.patch
|
||||||
|
Patch36: openssl-fips_mode.patch
|
||||||
|
Patch37: openssl-1.1.1-evp-kdf.patch
|
||||||
|
Patch38: openssl-1.1.1-ssh-kdf.patch
|
||||||
|
Patch39: openssl-fips-dont_run_FIPS_module_installed.patch
|
||||||
|
Patch40: openssl-fips-selftests_in_nonfips_mode.patch
|
||||||
|
Patch41: openssl-fips-clearerror.patch
|
||||||
|
Patch42: openssl-fips-ignore_broken_atexit_test.patch
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
Conflicts: ssl
|
Conflicts: ssl
|
||||||
Provides: ssl
|
Provides: ssl
|
||||||
@ -71,8 +98,11 @@ OpenSSL contains an implementation of the SSL and TLS protocols.
|
|||||||
|
|
||||||
%package -n libopenssl1_1
|
%package -n libopenssl1_1
|
||||||
Summary: Secure Sockets and Transport Layer Security
|
Summary: Secure Sockets and Transport Layer Security
|
||||||
|
License: OpenSSL
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
Recommends: ca-certificates-mozilla
|
Recommends: ca-certificates-mozilla
|
||||||
|
# install libopenssl and libopenssl-hmac close together (bsc#1090765)
|
||||||
|
Suggests: libopenssl1_1-hmac = %{version}-%{release}
|
||||||
# Needed for clean upgrade from former openssl-1_1_0, boo#1081335
|
# Needed for clean upgrade from former openssl-1_1_0, boo#1081335
|
||||||
Obsoletes: libopenssl1_1_0
|
Obsoletes: libopenssl1_1_0
|
||||||
|
|
||||||
@ -84,6 +114,7 @@ OpenSSL contains an implementation of the SSL and TLS protocols.
|
|||||||
|
|
||||||
%package -n libopenssl-1_1-devel
|
%package -n libopenssl-1_1-devel
|
||||||
Summary: Development files for OpenSSL
|
Summary: Development files for OpenSSL
|
||||||
|
License: OpenSSL
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libopenssl1_1 = %{version}
|
Requires: libopenssl1_1 = %{version}
|
||||||
Recommends: %{name} = %{version}
|
Recommends: %{name} = %{version}
|
||||||
@ -101,8 +132,23 @@ Obsoletes: libopenssl-1_0_0-devel
|
|||||||
This subpackage contains header files for developing applications
|
This subpackage contains header files for developing applications
|
||||||
that want to make use of the OpenSSL C API.
|
that want to make use of the OpenSSL C API.
|
||||||
|
|
||||||
|
%package -n libopenssl1_1-hmac
|
||||||
|
Summary: HMAC files for FIPS-140-2 integrity checking of the openssl shared libraries
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Productivity/Networking/Security
|
||||||
|
Requires: libopenssl1_1 = %{version}-%{release}
|
||||||
|
# Needed for clean upgrade from former openssl-1_1_0, boo#1081335
|
||||||
|
Obsoletes: libopenssl1_1_0-hmac
|
||||||
|
# Needed for clean upgrade from SLE-12 openssl-1_0_0, bsc#1158499
|
||||||
|
Obsoletes: libopenssl-1_0_0-hmac
|
||||||
|
|
||||||
|
%description -n libopenssl1_1-hmac
|
||||||
|
The FIPS compliant operation of the openssl shared libraries is NOT
|
||||||
|
possible without the HMAC hashes contained in this package!
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Additional Package Documentation
|
Summary: Additional Package Documentation
|
||||||
|
License: OpenSSL
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
Conflicts: openssl-doc
|
Conflicts: openssl-doc
|
||||||
Provides: openssl-doc = %{version}
|
Provides: openssl-doc = %{version}
|
||||||
@ -175,7 +221,6 @@ mv %{buildroot}/%{ssletcdir}/misc %{buildroot}/%{_datadir}/ssl/
|
|||||||
|
|
||||||
# avoid file conflicts with man pages from other packages
|
# avoid file conflicts with man pages from other packages
|
||||||
#
|
#
|
||||||
set +x
|
|
||||||
pushd %{buildroot}/%{_mandir}
|
pushd %{buildroot}/%{_mandir}
|
||||||
# some man pages now contain spaces. This makes several scripts go havoc, among them /usr/sbin/Check.
|
# some man pages now contain spaces. This makes several scripts go havoc, among them /usr/sbin/Check.
|
||||||
# replace spaces by underscores
|
# replace spaces by underscores
|
||||||
@ -199,7 +244,6 @@ for i in man?/*; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
set -x
|
|
||||||
|
|
||||||
# Do not install demo scripts executable under /usr/share/doc
|
# Do not install demo scripts executable under /usr/share/doc
|
||||||
find demos -type f -perm /111 -exec chmod 644 {} \;
|
find demos -type f -perm /111 -exec chmod 644 {} \;
|
||||||
@ -207,6 +251,29 @@ find demos -type f -perm /111 -exec chmod 644 {} \;
|
|||||||
# Place showciphers.c for %%doc macro
|
# Place showciphers.c for %%doc macro
|
||||||
cp %{SOURCE5} .
|
cp %{SOURCE5} .
|
||||||
|
|
||||||
|
# the hmac hashes:
|
||||||
|
#
|
||||||
|
# this is a hack that re-defines the __os_install_post macro
|
||||||
|
# for a simple reason: the macro strips the binaries and thereby
|
||||||
|
# invalidates a HMAC that may have been created earlier.
|
||||||
|
# solution: create the hashes _after_ the macro runs.
|
||||||
|
#
|
||||||
|
# this shows up earlier because otherwise the %expand of
|
||||||
|
# the macro is too late.
|
||||||
|
# remark: This is the same as running
|
||||||
|
# openssl dgst -sha256 -hmac 'ppaksykemnsecgtsttplmamstKMEs'
|
||||||
|
%{expand:%%global __os_install_post {%__os_install_post
|
||||||
|
|
||||||
|
%{buildroot}%{_bindir}/fips_standalone_hmac \
|
||||||
|
%{buildroot}%{_libdir}/libssl.so.%{maj_min} > \
|
||||||
|
%{buildroot}%{_libdir}/.libssl.so.%{maj_min}.hmac
|
||||||
|
|
||||||
|
%{buildroot}%{_bindir}/fips_standalone_hmac \
|
||||||
|
%{buildroot}%{_libdir}/libcrypto.so.%{maj_min} > \
|
||||||
|
%{buildroot}%{_libdir}/.libcrypto.so.%{maj_min}.hmac
|
||||||
|
|
||||||
|
}}
|
||||||
|
|
||||||
%post -n libopenssl1_1 -p /sbin/ldconfig
|
%post -n libopenssl1_1 -p /sbin/ldconfig
|
||||||
%postun -n libopenssl1_1 -p /sbin/ldconfig
|
%postun -n libopenssl1_1 -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -216,6 +283,10 @@ cp %{SOURCE5} .
|
|||||||
%{_libdir}/libcrypto.so.%{maj_min}
|
%{_libdir}/libcrypto.so.%{maj_min}
|
||||||
%{_libdir}/engines-%{maj_min}
|
%{_libdir}/engines-%{maj_min}
|
||||||
|
|
||||||
|
%files -n libopenssl1_1-hmac
|
||||||
|
%{_libdir}/.libssl.so.%{maj_min}.hmac
|
||||||
|
%{_libdir}/.libcrypto.so.%{maj_min}.hmac
|
||||||
|
|
||||||
%files -n libopenssl-1_1-devel
|
%files -n libopenssl-1_1-devel
|
||||||
%{_includedir}/%{_rname}/
|
%{_includedir}/%{_rname}/
|
||||||
%{_includedir}/ssl
|
%{_includedir}/ssl
|
||||||
@ -240,6 +311,7 @@ cp %{SOURCE5} .
|
|||||||
%dir %{_datadir}/ssl
|
%dir %{_datadir}/ssl
|
||||||
%{_datadir}/ssl/misc
|
%{_datadir}/ssl/misc
|
||||||
%{_bindir}/c_rehash
|
%{_bindir}/c_rehash
|
||||||
|
%{_bindir}/fips_standalone_hmac
|
||||||
%{_bindir}/%{_rname}
|
%{_bindir}/%{_rname}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user