Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1416566

Summary: Permission denied error seen during RPM upgrade
Product: Red Hat Enterprise Linux 7 Reporter: Sarang Radke <sarang.radke>
Component: kmodAssignee: Yauheni Kaliuta <ykaliuta>
Status: CLOSED ERRATA QA Contact: Ziqian SUN (Zamir) <zsun>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.2CC: abeausol, cdupuis, cye, hasuzuki, pmatilai, ykaliuta
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: 20-12.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 15:03:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1394638, 1404314, 1446211    
Attachments:
Description Flags
OLD RPM
none
NEW RPM
none
SRC RPM
none
SPEC file none

Description Sarang Radke 2017-01-25 20:20:12 UTC
Description of problem:
1. General RPM installation goes fine.

2. If we try to upgrade the RPM to newer version, following error is thrown on screen.
/sbin/weak-modules: line 174: /tmp/weak-modules.r3srrj/old_initramfs/./usr/lib/modules/3.10.0-327.el7.x86_64/extra/netxtreme2/bnx2.ko: Permission denied

3. However, installation is successful.


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


How reproducible:
Always

Steps to Reproduce:
1. Install RPM with old version
2. Upgrade RPM to newer version
3. Observe the error

Actual results:
Error seen on screen.

Expected results:
Error should not be seen.


Additional info:
Attached: old RPM, new RPM, SRC RPM, SPEC file

Comment 1 Sarang Radke 2017-01-25 20:20:43 UTC
Created attachment 1244398 [details]
OLD RPM

Comment 2 Sarang Radke 2017-01-25 20:21:23 UTC
Created attachment 1244400 [details]
NEW RPM

Comment 3 Sarang Radke 2017-01-25 20:21:58 UTC
Created attachment 1244401 [details]
SRC RPM

Comment 4 Sarang Radke 2017-01-25 20:22:19 UTC
Created attachment 1244402 [details]
SPEC file

Comment 6 Panu Matilainen 2017-02-09 13:55:49 UTC
The error does not come from rpm but /sbin/weak-modules script. Whether it's a bug in there I have no idea, but reassigning to kmod which should be closer to the mark at least.

Comment 10 Chad Dupuis (Cavium) 2017-04-03 19:07:49 UTC
Was a fix for this made?  If so, what version?

Comment 12 errata-xmlrpc 2017-08-01 15:03:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1848