Bug 2031176

Summary: SELinux is preventing alsactl from 'execute' accesses on the Datei kmod.
Product: [Fedora] Fedora Reporter: Julian Sikorski <belegdol>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: dwalsh, falk, grepl.miroslav, lvrabec, mmalik, omosnace, pkoncity, skyfire28, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7a8208494fa71721e09509688855bb2706f690c0114800bb5198f3220875d8b7;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-08 18:34:56 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 Julian Sikorski 2021-12-10 17:10:21 UTC
Description of problem:
Problem appears during boot
SELinux is preventing alsactl from 'execute' accesses on the Datei kmod.

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

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

Additional Information:
Source Context                system_u:system_r:alsa_t:s0
Target Context                system_u:object_r:kmod_exec_t:s0
Target Objects                kmod [ file ]
Source                        alsactl
Source Path                   alsactl
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-35.6-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-35.6-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.15.5-200.s0ix01.fc35.x86_64 #1
                              SMP Fri Nov 26 17:29:34 CET 2021 x86_64 x86_64
Alert Count                   8
First Seen                    2021-12-09 09:33:26 CET
Last Seen                     2021-12-10 12:40:25 CET
Local ID                      ee360c59-610b-4500-bccd-e1a409b485f5

Raw Audit Messages
type=AVC msg=audit(1639136425.681:163): avc:  denied  { execute } for  pid=883 comm="alsactl" name="kmod" dev="nvme0n1p6" ino=5498355 scontext=system_u:system_r:alsa_t:s0 tcontext=system_u:object_r:kmod_exec_t:s0 tclass=file permissive=0


Hash: alsactl,alsa_t,kmod_exec_t,file,execute

Version-Release number of selected component:
selinux-policy-targeted-35.6-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.15.5-200.s0ix01.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-02-08 18:34:56 UTC

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