Bug 2033307 - SELinux is preventing alsactl from 'write' accesses on the Datei attach.
Summary: SELinux is preventing alsactl from 'write' accesses on the Datei attach.
Keywords:
Status: CLOSED DUPLICATE of bug 1958210
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0199d7b8c9c2148e3a7675e26d9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-16 13:28 UTC by falk
Modified: 2022-02-08 18:35 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-02-08 18:35:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description falk 2021-12-16 13:28:50 UTC
Description of problem:
SELinux is preventing alsactl from 'write' accesses on the Datei attach.

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

Wenn Sie denken, dass es alsactl standardmäßig erlaubt sein sollte, write Zugriff auf attach 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:sysfs_t:s0
Target Objects                attach [ 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.7-200.fc35.x86_64 #1 SMP Wed
                              Dec 8 19:00:47 UTC 2021 x86_64 x86_64
Alert Count                   2
First Seen                    2021-12-16 09:46:41 CET
Last Seen                     2021-12-16 09:46:41 CET
Local ID                      85c559c6-0ebb-4c87-839b-22e41f1bbf2c

Raw Audit Messages
type=AVC msg=audit(1639644401.464:177): avc:  denied  { write } for  pid=1420 comm="alsactl" name="attach" dev="sysfs" ino=43869 scontext=system_u:system_r:alsa_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=0


Hash: alsactl,alsa_t,sysfs_t,file,write

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.7-200.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-02-08 18:35:05 UTC

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


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