Bug 1974051 - SELinux is preventing alsactl from using the 'setpgid' accesses on a process.
Summary: SELinux is preventing alsactl from using the 'setpgid' accesses on a process.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 34
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:428bd611e5bf6effeb8df923c38...
: 2020456 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-20 06:20 UTC by Ahmed El-Rayess
Modified: 2022-02-05 01:09 UTC (History)
12 users (show)

Fixed In Version: selinux-policy-34.25-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-05 01:09:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ahmed El-Rayess 2021-06-20 06:20:39 UTC
Description of problem:
this alert came up after applying the latest updates using dnf update
SELinux is preventing alsactl from using the 'setpgid' accesses on a process.

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

If you believe that alsactl should be allowed setpgid access on processes labeled alsa_t 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 '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:system_r:alsa_t:s0
Target Objects                Unknown [ process ]
Source                        alsactl
Source Path                   alsactl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.11-1.fc34.noarch
Local Policy RPM              selinux-policy-targeted-34.11-1.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.12.9-300.fc34.x86_64 #1 SMP Thu
                              Jun 3 13:51:40 UTC 2021 x86_64 x86_64
Alert Count                   24
First Seen                    2021-06-13 11:15:20 +04
Last Seen                     2021-06-20 10:18:24 +04
Local ID                      367f6d75-f441-4bf8-ae19-973587901dfa

Raw Audit Messages
type=AVC msg=audit(1624169904.74:1152): avc:  denied  { setpgid } for  pid=115535 comm="alsactl" scontext=system_u:system_r:alsa_t:s0 tcontext=system_u:system_r:alsa_t:s0 tclass=process permissive=0


Hash: alsactl,alsa_t,alsa_t,process,setpgid

Version-Release number of selected component:
selinux-policy-targeted-34.11-1.fc34.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.12.9-300.fc34.x86_64
type:           libreport

Comment 1 Hugo Leonardo R. D. Lopes 2021-08-13 10:10:29 UTC
Similar problem has been detected:

I listening Music CD in usb device

hashmarkername: setroubleshoot
kernel:         5.13.8-200.fc34.x86_64
package:        selinux-policy-targeted-34.15-1.fc34.noarch
reason:         SELinux is preventing alsactl from using the 'setpgid' accesses on a process.
type:           libreport

Comment 2 Hugo Leonardo R. D. Lopes 2021-08-14 01:33:13 UTC
Similar problem has been detected:

I watch CNN Brazil on youtube.com and listening Music Cd too in USB Device. The computer crash and I poweroff. After I poweron.

hashmarkername: setroubleshoot
kernel:         5.13.9-200.fc34.x86_64
package:        selinux-policy-targeted-34.15-1.fc34.noarch
reason:         SELinux is preventing alsactl from using the 'setpgid' accesses on a process.
type:           libreport

Comment 3 Zdenek Pytela 2021-11-05 16:09:17 UTC
*** Bug 2020456 has been marked as a duplicate of this bug. ***

Comment 4 Julian Sikorski 2021-12-10 17:09:22 UTC
Similar problem has been detected:

The errors appears during boot

hashmarkername: setroubleshoot
kernel:         5.15.5-200.s0ix01.fc35.x86_64
package:        selinux-policy-targeted-35.6-1.fc35.noarch
reason:         SELinux is preventing alsactl from using the 'setpgid' accesses on a process.
type:           libreport

Comment 5 Julian Sikorski 2022-01-30 19:15:08 UTC
Similar problem has been detected:

The problem appears after starting gnome session from gdm.

hashmarkername: setroubleshoot
kernel:         5.16.4-200.s0ix01.fc35.x86_64
package:        selinux-policy-targeted-35.11-1.fc35.noarch
reason:         SELinux is preventing alsactl from using the 'setpgid' accesses on a process.
type:           libreport

Comment 6 Zdenek Pytela 2022-01-31 11:49:04 UTC
I've submitted a Fedora PR to address the issue:
https://github.com/fedora-selinux/selinux-policy/pull/1037

Comment 7 Fedora Update System 2022-02-02 07:44:11 UTC
FEDORA-2022-35e911cda6 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-35e911cda6

Comment 8 Fedora Update System 2022-02-03 01:19:31 UTC
FEDORA-2022-35e911cda6 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-35e911cda6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-35e911cda6

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

Comment 9 Fedora Update System 2022-02-05 01:09:43 UTC
FEDORA-2022-35e911cda6 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


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