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 1967579 - rpminspect complains about use of inet_aton() and inet_ntoa()
Summary: rpminspect complains about use of inet_aton() and inet_ntoa()
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: wpa_supplicant
Version: 9.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: beta
: ---
Assignee: Davide Caratti
QA Contact: Ken Benoit
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-03 12:23 UTC by Davide Caratti
Modified: 2022-01-12 11:42 UTC (History)
1 user (show)

Fixed In Version: wpa_supplicant-2.9-14.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-12 11:26:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Davide Caratti 2021-06-03 12:23:32 UTC
Comparing wpa_supplicant-2.9-13.el9 with the older wpa_supplicant-2.9-12.el9 found in the "rhel-9.0.0-beta-candidate" brew tag.

Test description:
    badfuncs
Check for forbidden functions in ELF files.  Forbidden functions are defined in the runtime configuration files.  Usually this inspection is used to catch built packages that make use of deprecated API functions if you wish built packages to conform to replacement APIs.

======================================== Test Output ========================================
rpminspect:
-----------
1) version

Result: INFO
Waiver Authorization: Not Waivable

Details:
rpminspect version 1.5



2) command line

Result: INFO
Waiver Authorization: Not Waivable

Details:
rpminspect -c /usr/share/rpminspect/redhat.yaml --format=text --arches x86_64,noarch,src --release=el9 --profile=rhel-9-devel --tests=badfuncs /workdir/36218978-wpa_supplicant-2.9-12.el9/wpa_supplicant-2.9-12.el9 /workdir/36218978-wpa_supplicant-2.9-12.el9/wpa_supplicant-2.9-13.el9



bad-functions:
--------------
1) /usr/sbin/eapol_test may use forbidden functions on x86_64

Result: VERIFY
Waiver Authorization: Anyone

Details:
Forbidden function symbols found:
	inet_aton
	inet_ntoa


Suggested Remedy:
Forbidden symbols were found in an ELF file in the package.  The configuration settings for rpminspect indicate the named symbols are forbidden in packages.  If this is deliberate, you may want to disable the badfuncs inspection.  If it is not deliberate, check the man pages for the named symbols to see what API functions have replaced the forbidden symbols.  Usually a function is marked as deprecated but still provided in order to allow for backwards compatibility.  Whenever possible the deprecated functions should not be used.

2) /usr/sbin/wpa_supplicant may use forbidden functions on x86_64

Result: VERIFY
Waiver Authorization: Anyone

Details:
Forbidden function symbols found:
	inet_aton
	inet_ntoa


Suggested Remedy:
Forbidden symbols were found in an ELF file in the package.  The configuration settings for rpminspect indicate the named symbols are forbidden in packages.  If this is deliberate, you may want to disable the badfuncs inspection.  If it is not deliberate, check the man pages for the named symbols to see what API functions have replaced the forbidden symbols.  Usually a function is marked as deprecated but still provided in order to allow for backwards compatibility.  Whenever possible the deprecated functions should not be used.
Error: exec session exited with non-zero exit code 1: OCI runtime error

I think that for wpa_supplicant the problem is: some of the functionalities implemented (like the "UDP control interface" or the WPS "external registrar") don't seem to support IPv6 at all. I think it doesn't make sense to do a replacement with inet_pton() / inet_ntop() at this point: I'm for disabling the check for "badfuncs" on wpa_supplicant.

Comment 2 Ken Benoit 2021-07-14 13:17:26 UTC
Ran automated and manual wireless regression testing against RHEL-9.0.0-20210707.2 (wpa_supplicant-2.9-15). Testing came out clean. Verifying as SanityOnly.


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