Fix for rpmlint reporting crypto-policy-non-compliance-openssl

This fix allows removing rpmlint issue reported for
crypto-policy-non-compliance-openssl, so that librdkafka component
is compliant with the crypto policy set on the system

Resolves: rhbz#2032923

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
This commit is contained in:
Sergio Arroutbi 2022-02-03 13:35:10 +01:00
parent 6952b6ef54
commit f0a6a0ce03
2 changed files with 18 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: librdkafka
Version: 1.6.1
Release: 4%{?dist}
Release: 100%{?dist}
Summary: The Apache Kafka C library
License: BSD
@ -18,6 +18,8 @@ BuildRequires: cyrus-sasl-devel
BuildRequires: zlib-devel
BuildRequires: rapidjson-devel
Patch0: rsyslog-1.6.1-rhbz2032923-crypto-compliance.patch
%description
Librdkafka is a C/C++ library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
@ -85,6 +87,10 @@ find %{buildroot} -name '*-static.pc' -delete -print
%changelog
* Fri Feb 04 2022 Sergio Arroutbi <sarroutb@redhat.com> - 1.6.1-100
- Fix for rpmlint reporting crypto-policy-non-compliance-openssl
resolves: rhbz#2032923
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.6.1-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688

View File

@ -0,0 +1,11 @@
diff -up librdkafka-1.6.1/src/rdkafka_conf.c.orig librdkafka-1.6.1/src/rdkafka_conf.c
--- librdkafka-1.6.1/src/rdkafka_conf.c.orig 2022-02-03 12:07:59.066520253 +0100
+++ librdkafka-1.6.1/src/rdkafka_conf.c 2022-02-03 12:18:06.477192751 +0100
@@ -707,6 +707,7 @@ static const struct rd_kafka_property rd
"security settings for a network connection using TLS or SSL network "
"protocol. See manual page for `ciphers(1)` and "
"`SSL_CTX_set_cipher_list(3).",
+ .sdef = "PROFILE=SYSTEM",
_UNSUPPORTED_SSL
},
{ _RK_GLOBAL, "ssl.curves.list", _RK_C_STR,