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 812920 - yum does not need --nogpgcheck for installing unsigned package.
Summary: yum does not need --nogpgcheck for installing unsigned package.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-16 14:55 UTC by Dimitar Yordanov
Modified: 2014-01-21 06:25 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-16 15:45:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Unsigned RPM (2.50 KB, application/octet-stream)
2012-04-16 14:56 UTC, Dimitar Yordanov
no flags Details

Description Dimitar Yordanov 2012-04-16 14:55:30 UTC
Description of problem:
yum does not need --nogpgcheck for installing unsigned package.

Version-Release number of selected component (if applicable):
RHEL6.2
yum-3.2.29-22.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1.Copy the RPM attached to this BZ to an RHEL6.2 machine.
2. "cd" to the download folder.
3. Make sure gpgcheck is enabled

    # grep gpgcheck  /etc/yum.conf 
    gpgcheck=1

4. yum install -y test-regular-test_sw_system_snapshot_fri06apr2012_07_28_52_24962-0.1-1.x86_64.rpm
  
Actual results:
The package is installed.

Expected results:
Package test-regular-test_sw_system_snapshot_fri06apr2012_07_28_52_24962-0.1-1.x86_64.rpm is not signed


Additional info:

Comment 1 Dimitar Yordanov 2012-04-16 14:56:43 UTC
Created attachment 577737 [details]
Unsigned RPM

Comment 3 James Antill 2012-04-16 15:45:53 UTC
That's a local package, so it's controlled by:

              localpkg_gpgcheck  Either  `1' or `0'. This tells yum whether or
              not it should perform a GPG signature check  on  local  packages
              (packages in a file, not in a repositoy).  The default is `0'.

Comment 4 Dimitar Yordanov 2012-04-17 07:07:28 UTC
Hi James, 

  The problem is that RHEL5 (yum-3.2.22-39.el5) does not respect "localpkg_gpgcheck" and default behaviour for local packages is to check for gpg.
  This makes scripts that works just fine on RHEL5 to fail on RHEL6.

Dimi


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