Bug 2068875

Summary: SELinux is preventing 50-ddclient from 'execute' accesses on the Datei /usr/sbin/ip.
Product: [Fedora] Fedora Reporter: Marco Nolden <bzf>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 36CC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, pkoncity, vmojzis, zpytela
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e644a71620a9fef357ddd62e229bf5221262e89a5c17d5e4625b32616c5fccba;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-36.6-1.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-14 23:23:03 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:

Description Marco Nolden 2022-03-27 06:42:53 UTC
Description of problem:
SELinux is preventing 50-ddclient from 'execute' accesses on the Datei /usr/sbin/ip.

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

Wenn Sie denken, dass es 50-ddclient standardmäßig erlaubt sein sollte, execute Zugriff auf ip 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 '50-ddclient' --raw | audit2allow -M my-50ddclient
# semodule -X 300 -i my-50ddclient.pp

Additional Information:
Source Context                system_u:system_r:NetworkManager_dispatcher_t:s0
Target Context                system_u:object_r:ifconfig_exec_t:s0
Target Objects                /usr/sbin/ip [ file ]
Source                        50-ddclient
Source Path                   50-ddclient
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           iproute-5.15.0-2.fc36.x86_64
SELinux Policy RPM            selinux-policy-targeted-36.5-1.fc36.noarch
Local Policy RPM              selinux-policy-targeted-36.5-1.fc36.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.17.0-0.rc7.116.fc36.x86_64 #1
                              SMP PREEMPT Mon Mar 7 23:10:19 UTC 2022 x86_64
                              x86_64
Alert Count                   1
First Seen                    2022-03-27 07:37:11 CEST
Last Seen                     2022-03-27 07:37:11 CEST
Local ID                      4e888add-faf8-43f4-a096-760ee6ecfe05

Raw Audit Messages
type=AVC msg=audit(1648359431.144:339): avc:  denied  { execute } for  pid=1895 comm="50-ddclient" name="ip" dev="dm-0" ino=457129 scontext=system_u:system_r:NetworkManager_dispatcher_t:s0 tcontext=system_u:object_r:ifconfig_exec_t:s0 tclass=file permissive=1


Hash: 50-ddclient,NetworkManager_dispatcher_t,ifconfig_exec_t,file,execute

Version-Release number of selected component:
selinux-policy-targeted-36.5-1.fc36.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.1
hashmarkername: setroubleshoot
kernel:         5.17.0-0.rc7.116.fc36.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-03-28 15:32:52 UTC
*** Bug 2068876 has been marked as a duplicate of this bug. ***

Comment 2 Zdenek Pytela 2022-03-28 15:32:58 UTC
*** Bug 2068877 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2022-04-06 11:40:09 UTC
FEDORA-2022-690770081a has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-690770081a

Comment 4 Fedora Update System 2022-04-06 17:55:34 UTC
FEDORA-2022-690770081a has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-690770081a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-690770081a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-04-14 23:23:03 UTC
FEDORA-2022-690770081a has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.