Bug 951689 - SELinux is preventing alsactl from using the 'signal' accesses on a process.
Summary: SELinux is preventing alsactl from using the 'signal' accesses on a process.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e158f376f6e42cb5fb18bc62f14...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-12 20:16 UTC by Dawid Zamirski
Modified: 2013-04-20 20:08 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-20 20:08:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dawid Zamirski 2013-04-12 20:16:28 UTC
Description of problem:
Created a Windows 7 VM using Virt Manager from existing OS image.
SELinux is preventing alsactl from using the 'signal' accesses on a process.

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

If you believe that alsactl should be allowed signal 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:
# grep alsactl /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:alsa_t:s0-s0:c0.c1023
Target Context                system_u:system_r:alsa_t:s0-s0:c0.c1023
Target Objects                 [ process ]
Source                        alsactl
Source Path                   alsactl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           alsa-utils-1.0.27-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-28.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc6.git0.1.fc19.x86_64 #1
                              SMP Mon Apr 8 15:47:32 UTC 2013 x86_64 x86_64
Alert Count                   36
First Seen                    2013-04-12 08:52:43 EDT
Last Seen                     2013-04-12 16:15:12 EDT
Local ID                      a51572d9-c07e-48bf-ad3e-7e25c7f1d164

Raw Audit Messages
type=AVC msg=audit(1365797712.197:1833): avc:  denied  { signal } for  pid=7151 comm="alsactl" scontext=system_u:system_r:alsa_t:s0-s0:c0.c1023 tcontext=system_u:system_r:alsa_t:s0-s0:c0.c1023 tclass=process


type=SYSCALL msg=audit(1365797712.197:1833): arch=x86_64 syscall=tgkill success=no exit=EACCES a0=1bef a1=1bef a2=6 a3=8 items=0 ppid=7147 pid=7151 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=alsactl exe=/usr/sbin/alsactl subj=system_u:system_r:alsa_t:s0-s0:c0.c1023 key=(null)

Hash: alsactl,alsa_t,alsa_t,process,signal

audit2allow

#============= alsa_t ==============
allow alsa_t self:process signal;

audit2allow -R
require {
	type alsa_t;
	class process signal;
}

#============= alsa_t ==============
allow alsa_t self:process signal;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git0.1.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-04-12 20:35:52 UTC
e29ef08c3d238b35d5f66211816bde9dac62de1a fixes this in git.

Comment 2 Victor Costan 2013-04-13 06:42:43 UTC
Description of problem:
This happened after a fresh install of Fedora 19 using the Alpha 2 Desktop DVD. To be more specific, I got the error after going through the Gnome 3 setup sequence.

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git0.1.fc19.x86_64
type:           libreport

Comment 3 Luya Tshimbalanga 2013-04-13 20:05:27 UTC
Description of problem:
Idle mode.

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git0.1.fc19.x86_64
type:           libreport

Comment 4 Ed Greshko 2013-04-14 03:04:08 UTC
Description of problem:
This problem occured after an install and update to F19-TC6.  The updates included the following...

Apr 14 09:42:58 Updated: alsa-lib-1.0.27-2.fc19.x86_64
Apr 14 09:44:18 Updated: alsa-tools-firmware-1.0.27-1.fc19.x86_64
Apr 14 09:44:20 Updated: alsa-firmware-1.0.27-1.fc19.noarch
Apr 14 09:44:23 Updated: alsa-utils-1.0.27-1.fc19.x86_64
Apr 14 09:50:04 Updated: alsa-plugins-pulseaudio-1.0.27-1.fc19.x86_64

However, a relabel resolved the issue of the AVCs

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git2.1.fc19.x86_64
type:           libreport

Comment 5 Elad Alfassa 2013-04-14 07:04:09 UTC
Description of problem:
Login and notice a crash in alsa-utils followed by this AVC alert.

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git2.2.fc20.x86_64
type:           libreport

Comment 6 Robert Lightfoot 2013-04-14 22:52:54 UTC
Description of problem:
second boot up 

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git2.1.fc19.i686.PAE
type:           libreport

Comment 7 T.C. Hollingsworth 2013-04-15 00:20:38 UTC
Description of problem:
Occurs on boot.

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git2.1.fc19.x86_64
type:           libreport

Comment 8 Tim Waugh 2013-04-15 08:29:14 UTC
Description of problem:
Not sure.

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git2.1.fc19.x86_64
type:           libreport

Comment 9 S Mac Aodha 2013-04-15 11:37:28 UTC
Description of problem:
Exception Thrown on startup of new Fedora 19 Alpha TC5 installation

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git2.1.fc19.x86_64
type:           libreport

Comment 10 Dean Hunter 2013-04-15 17:05:39 UTC
Description of problem:
I downloaded, installed, and updated Fedora 19 Alpha TC6.
I restarted and logged-in to Gnome.

Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc6.git2.1.fc19.x86_64
type:           libreport

Comment 11 Fedora Update System 2013-04-16 11:35:31 UTC
selinux-policy-3.12.1-31.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-31.fc19

Comment 12 Fedora Update System 2013-04-16 16:15:13 UTC
Package selinux-policy-3.12.1-31.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-31.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5812/selinux-policy-3.12.1-31.fc19
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2013-04-20 20:08:38 UTC
selinux-policy-3.12.1-31.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, 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.