Project

General

Profile

Bug #35366

dnf can't load foreman-protector.py as a regular user

Added by Evgeni Golov 4 months ago. Updated 6 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
RPMs
Target version:
-
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2118252

Description of problem:
$ dnf search lol
Failed loading plugin "foreman-protector": [Errno 13] Permission denied: '/usr/lib/python3.6/site-packages/dnf-plugins/foreman-protector.py'

(the rest of the execution works fine, but the warning is rather useless)

Fixing this, you get:
$ dnf search lol
Last metadata expiration check: 0:07:59 ago on Mon 15 Aug 2022 08:14:13 AM UTC.
Error: Incorrect plugin configuration!

and only after fixing the config perms, you get:

$ dnf search lol
Last metadata expiration check: 0:09:20 ago on Mon 15 Aug 2022 08:14:13 AM UTC.
No matches found.

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

How reproducible:
100%

Steps to Reproduce:
1. dnf search foreman
2.
3.

Actual results:
warnings

Expected results:
no warnings

Additional info:

Associated revisions

Revision 35b077c5 (diff)
Added by Evgeni Golov 4 months ago

Fixes #35366 - make foreman-protector work as non-root

deploy code and config as readable by mere mortals, there are no secrets
in there

History

#1 Updated by The Foreman Bot 4 months ago

  • Assignee set to Evgeni Golov
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/8349 added

#2 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.5.0 added

#3 Updated by Evgeni Golov 4 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Ewoud Kohl van Wijngaarden 21 days ago

  • Triaged changed from No to Yes
  • Category set to RPMs
  • Subject changed from dnf can't load foreman-protector.py as a regular user to dnf can't load foreman-protector.py as a regular user

#5 Updated by The Foreman Bot 6 days ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/8799 added

Also available in: Atom PDF