Bug 2049732

Summary: Add missing policy rules for latest alsactl
Product: Red Hat Enterprise Linux 9 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: 9.0CC: lvrabec, mmalik, ssekidde
Target Milestone: rcKeywords: AutoVerified, Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-34.1.25-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:50:10 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:51:16 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-04 15:58:16 UTC
Jaroslav,

Can you please share the audit log and reproducing steps?
Is it alsactl which calls kmod?

Comment 2 Zdenek Pytela 2022-02-10 10:51:03 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 11 errata-xmlrpc 2022-05-17 15:50:10 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 (new packages: selinux-policy), 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:3918