Bug 2118252
Summary: | dnf can't load foreman-protector.py as a regular user | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Evgeni Golov <egolov> |
Component: | Packaging | Assignee: | Evgeni Golov <egolov> |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.11.0 | CC: | ahumbe, osousa, pcreech |
Target Milestone: | 6.12.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-foreman_maintain-1.1.5-1.el8sat | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-16 13:35:16 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: |
Description
Evgeni Golov
2022-08-15 08:24:53 UTC
Created redmine issue https://projects.theforeman.org/issues/35366 from this bug Upstream bug assigned to egolov Upstream bug assigned to egolov Does this mean that foreman-protector isn't actually working for that user? Granted they likely can't install anything, but if foreman-protector isn't stopping actions it should (because it isn't running for a user), that would change my opinion of this bug. Thanks! (In reply to jcallaha from comment #4) > Does this mean that foreman-protector isn't actually working for that user? > Granted they likely can't install anything, but if foreman-protector isn't > stopping actions it should (because it isn't running for a user), that would > change my opinion of this bug. Thanks! Correct, it is not working at all (as dnf can't load the code), but I don't think this is a big issue as the operations it prohibits are install/upgrade, which the user can't execute anyways. So, it's more of a cosmetical issue, but still. Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35366 has been resolved. VERIFIED.
@Satellite 6.12.0 Snap11
rubygem-foreman_maintain-1.1.5-1.el8sat.noarch
by this simple manual reproducer:
# useradd user
# su - user
$ dnf search lol
Not root, Subscription Management repositories not updated
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 51 MB/s | 52 MB 00:01
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 50 MB/s | 46 MB 00:00
Last metadata expiration check: 0:00:13 ago on Thu 22 Sep 2022 05:05:57 AM EDT.
Reading Foreman protector configuration
*** Excluded total: 34610
WARNING: Excluding 34610 packages due to foreman-protector.
Use foreman-maintain packages install/update <package>
to safely install packages without restrictions.
Use foreman-maintain upgrade run for full upgrade.
No matches found.
>>> there are no warnings/errors when running dnf as non-root user
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 (Important: Satellite 6.12 Release), 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/RHSA-2022:8506 |