Blame SOURCES/0012-RHEL-Create-etc-crypto-policies-back-ends-opensslcnf.config.patch

d03fcc
From c50bb81e40b36a74c15f9bc515a2f04a1eb00673 Mon Sep 17 00:00:00 2001
d64dff
From: "Richard W.M. Jones" <rjones@redhat.com>
d64dff
Date: Tue, 29 Jun 2021 15:29:11 +0100
d64dff
Subject: [PATCH] RHEL: Create /etc/crypto-policies/back-ends/opensslcnf.config
d64dff
d64dff
https://bugzilla.redhat.com/show_bug.cgi?id=1977214#c13
d64dff
---
d64dff
 appliance/init | 8 ++++++++
d64dff
 1 file changed, 8 insertions(+)
d64dff
d64dff
diff --git a/appliance/init b/appliance/init
fa73fa
index 7076821d2..fe6497b4d 100755
d64dff
--- a/appliance/init
d64dff
+++ b/appliance/init
fa73fa
@@ -76,6 +76,14 @@ if ! test -e /etc/mtab; then
d64dff
   ln -s /proc/mounts /etc/mtab
d64dff
 fi
d64dff
 
d64dff
+# openssl 3 requires /etc/crypto-policies/back-ends/opensslcnf.config
d64dff
+# to exist, but it is created in a %post script in crypto-policies
d64dff
+# https://bugzilla.redhat.com/show_bug.cgi?id=1977214#c13
d64dff
+if ! test -r /etc/crypto-policies/back-ends/opensslcnf.config &&
d64dff
+     test -f /usr/share/crypto-policies/DEFAULT/opensslcnf.txt; then
d64dff
+  ln -s /usr/share/crypto-policies/DEFAULT/opensslcnf.txt /etc/crypto-policies/back-ends/opensslcnf.config
d64dff
+fi
d64dff
+
fa73fa
 # Static nodes must happen before udev is started.
fa73fa
 
fa73fa
 # Set up kmod static-nodes (RHBZ#1011907).
d64dff
-- 
d03fcc
2.19.1.3.g30247aa5d201
d64dff