Bug 2400835

Summary: SELinux is preventing (dnf) from 'entrypoint' accesses on the Datei /usr/bin/dnf5.
Product: [Fedora] Fedora Reporter: ols3
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: dwalsh, jjanasek, lvrabec, mmalik, ols3, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:023b666d63a82c2f531bcce882e46aa5f97068ce74731d02de57fb13ff4d8a23;VARIANT_ID=sway;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-17 10:53:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: description
none
File: os_info none

Description ols3 2025-10-01 13:30:29 UTC
Description of problem:
I tried to run the package manager "dnf" with systemd's "run0" command: "run0 dnf". But it fails with exit code 203 after I authenticated via the pop-up window.
If I run "sudo dnf" it works (and dnf reports, that I have to supply more arguments, as expected).
If I run "run0" without any arguments, I get a shell and I can run "dnf" sucessfully there.
SELinux is preventing (dnf) from 'entrypoint' accesses on the Datei /usr/bin/dnf5.

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

Wenn Sie denken, dass es (dnf) standardmäßig erlaubt sein sollte, entrypoint Zugriff auf dnf5 file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# 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                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           dnf5-5.2.16.0-1.fc42.x86_64
SELinux Policy RPM            selinux-policy-targeted-42.9-1.fc42.noarch
Local Policy RPM              selinux-policy-targeted-42.9-1.fc42.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.16.8-200.fc42.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Sep 19 17:47:18 UTC 2025
                              x86_64
Alert Count                   9
First Seen                    2025-09-01 21:09:52 CEST
Last Seen                     2025-10-01 15:07:23 CEST
Local ID                      1b38d1bd-42d0-447e-8601-561e2f38ee37

Raw Audit Messages
type=AVC msg=audit(1759324043.528:356): avc:  denied  { entrypoint } for  pid=10772 comm="(dnf)" path="/usr/bin/dnf5" dev="dm-0" ino=140524 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-42.9-1.fc42.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing (dnf) from 'entrypoint' accesses on the Datei /usr/bin/dnf5.
package:        selinux-policy-targeted-42.9-1.fc42.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.16.8-200.fc42.x86_64
component:      selinux-policy

Comment 1 ols3 2025-10-01 13:30:31 UTC
Created attachment 2108229 [details]
File: description

Comment 2 ols3 2025-10-01 13:30:33 UTC
Created attachment 2108230 [details]
File: os_info

Comment 3 jjanasek 2025-12-17 10:53:05 UTC

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