Bug 2375778 - When running '$ run0 dnf update': SELinux is preventing (dnf) from 'entrypoint' accesses on the file /usr/bin/dnf5.
Summary: When running '$ run0 dnf update': SELinux is preventing (dnf) from 'entrypoin...
Keywords:
Status: CLOSED DUPLICATE of bug 2359828
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 42
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:023b666d63a82c2f531bcce882e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-01 17:41 UTC by Edmund Lodewijks
Modified: 2025-09-03 10:13 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-09-03 10:13:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.10 KB, text/plain)
2025-07-01 17:41 UTC, Edmund Lodewijks
no flags Details
File: os_info (767 bytes, text/plain)
2025-07-01 17:41 UTC, Edmund Lodewijks
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2346950 0 unspecified CLOSED run0 dnf --help fails: SELinux is preventing (dnf) from entrypoint access on the file /usr/bin/dnf5. 2025-09-03 10:14:03 UTC

Description Edmund Lodewijks 2025-07-01 17:41:13 UTC
Description of problem:
On Fedora 42 KDE, I simply entered the following into Konsole:

    $ run0 dnf update

A GUI box popped up to ask for a password, which I entered. Then the Konsole prompt re-appeared, and an SELinux Alert popped up.
This bug was triggered by running the following in Konsole on current F42 KDE:

    $ run0 dnf update


===============================


SELinux is preventing (dnf) from 'entrypoint' accesses on the file /usr/bin/dnf5.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that (dnf) should be allowed entrypoint access on the dnf5 file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c '(dnf)' --raw | audit2allow -M my-dnf
# semodule -X 300 -i my-dnf.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-
                              s0:c0.c1023
Target Context                system_u:object_r:rpm_exec_t:s0
Target Objects                /usr/bin/dnf5 [ file ]
Source                        (dnf)
Source Path                   (dnf)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           dnf5-5.2.13.1-1.fc42.x86_64
SELinux Policy RPM            selinux-policy-targeted-41.43-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-41.43-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.14.11-300.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Tue Jun 10 16:24:16 UTC 2025
                              x86_64
Alert Count                   1
First Seen                    2025-07-01 19:31:58 SAST
Last Seen                     2025-07-01 19:31:58 SAST
Local ID                      1df9e1f6-58a2-4a1e-af59-09e0f2019727

Raw Audit Messages
type=AVC msg=audit(1751391118.137:285): avc:  denied  { entrypoint } for  pid=4247 comm="(dnf)" path="/usr/bin/dnf5" dev="dm-0" ino=352159 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rpm_exec_t:s0 tclass=file permissive=0


Hash: (dnf),unconfined_t,rpm_exec_t,file,entrypoint

Version-Release number of selected component:
selinux-policy-targeted-41.43-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
package:        selinux-policy-targeted-41.43-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.14.11-300.fc42.x86_64
component:      selinux-policy

Comment 1 Edmund Lodewijks 2025-07-01 17:41:16 UTC
Created attachment 2095847 [details]
File: description

Comment 2 Edmund Lodewijks 2025-07-01 17:41:17 UTC
Created attachment 2095848 [details]
File: os_info

Comment 3 Edmund Lodewijks 2025-07-01 17:47:25 UTC
systemd version: 257.6

Comment 4 Marcus Müller 2025-09-03 10:11:42 UTC
likely duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2346950 , though that is from F41.

Comment 5 Marcus Müller 2025-09-03 10:13:22 UTC

*** This bug has been marked as a duplicate of bug 2359828 ***


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