RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1842802 - rpmlint reports crypto-policy-non-compliance-openssl
Summary: rpmlint reports crypto-policy-non-compliance-openssl
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: freeradius
Version: 8.2
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Alex Scheel
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 1842847
TreeView+ depends on / blocked
 
Reported: 2020-06-02 07:17 UTC by Ondrej Moriš
Modified: 2022-04-04 23:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-08 14:22:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-8126 0 None None None 2022-04-04 23:43:24 UTC
Red Hat Issue Tracker RHELPLAN-45246 0 None Closed need assistance with extracting a el9 rpm on el8 (for kickstart) 2022-05-08 19:00:32 UTC

Description Ondrej Moriš 2020-06-02 07:17:08 UTC
Description of problem:

Crypto-policy non-compliance is reported by rpmlint.

Since RHEL-8.0 we have system-wide crypto policies - usage of cryptographic protocols such as TLS that are enforced system-wide. In general we want all applications in RHEL to be compliant with the crypto policy set on the system (see policy [1] inherited from Fedora).

Rpmlint detected that freeradius-utils uses SSL_CTX_set_cipher_list from OpenSSL library without  PROFILE=SYSTEM. This indicates that a custom setting is used rather than system-wide crypto-policies setting. It is not a problem as long as it is intentional (e.g. specific algorithm is requested by user or configuration). However, unintentional usage might be a potential bug.

Could you please inspect relevant parts of the code, check that this is not rpmlint false positive and verify that custom setting is used intentionally?

 * If yes, feel free to close this BZ as NOT-A-BUG.
 * If not, could you please consider using system-wide crypto policy setting (PROFILE=SYSTEM) instead of custom setting?

[1] https://docs.fedoraproject.org/en-US/packaging-guidelines/CryptoPolicies

Version-Release number of selected component (if applicable):

freeradius-3.0.17-7.module+el8.2.0+4847+336970e8

How reproducible:

100%

Steps to Reproduce:

1. rpmlint freeradius-utils-3.0.17-7.module+el8.2.0+4847+336970e8.x86_64.rpm


Expected results:

No crypto-policy-non-compliance warning.

Actual results:

freeradius-utils.x86_64: W: crypto-policy-non-compliance-openssl /usr/bin/radeapclient SSL_CTX_set_cipher_list

Comment 1 Alex Scheel 2020-06-08 14:22:32 UTC
Hi Ondrej,

freeradius has a configuration format for specifying ciphers used by the server. This is what calls SSL_CTX_set_cipher_list():

https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/src/main/tls.c#L1313
https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/src/main/tls.c#L3403-L3411


We've had a patch since 8.0.0 to utilize the PROFILE=SYSTEM directly from the configuration option:

https://src.osci.redhat.com/rpms/freeradius/blob/stream-3.0-rhel-8.0.0/f/freeradius-Use-system-crypto-policy-by-default.patch



I thus believe this to be fine. By default we use crypto-policies, but we allow users to replace this as necessary in their particular case.

Comment 2 Ondrej Moriš 2020-06-08 14:24:29 UTC
Alex, thank you very much for clarification.


Note You need to log in before you can comment on or make changes to this bug.