Bug 2049730

Summary: Add missing policy rules for latest alsactl
Product: Red Hat Enterprise Linux 8 Reporter: Jaroslav Kysela <jkysela>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: medium    
Version: 8.6CC: lvrabec, mmalik, ssekidde
Target Milestone: rcKeywords: Triaged
Target Release: 8.6Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.14.3-92.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 15:15:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Kysela 2022-02-02 15:49:35 UTC
The alsactl utility cannot load the requested modules (call kmod utility) and modify the sound driver configuration through sysfs:

Link: https://github.com/alsa-project/alsa-ucm-conf/issues/100

Proposed rules:

  module alsactl 1.0;

  require {
	type sysfs_t;
	type kmod_exec_t;
	type alsa_t;
  	class file { execute write };
  }

  #============= alsa_t ==============
  allow alsa_t kmod_exec_t:file execute;
  allow alsa_t sysfs_t:file write;

Comment 1 Zdenek Pytela 2022-02-08 18:33:33 UTC
Jaroslave,

Can you share complete avc denials:

ausearch -i -m avc,user_avc

or raw audit logs?

Comment 3 Zdenek Pytela 2022-02-10 10:51:08 UTC
Commits to backport:
commit d5b75d954771da98c36fb7af90e24a14fb01c184
Author: Zdenek Pytela <zpytela>
Date:   Mon Jan 31 12:47:23 2022 +0100

    Allow alsactl set group Process ID of a process

and
https://github.com/fedora-selinux/selinux-policy/pull/1060

Comment 13 errata-xmlrpc 2022-05-10 15:15:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:1995