Bug 828421 - SELinux is preventing /usr/sbin/alsactl from 'open' accesses on the chr_file /dev/snd/controlC1.
Summary: SELinux is preventing /usr/sbin/alsactl from 'open' accesses on the chr_file ...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d1e88f8493cab8e00b93a42473b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-04 17:42 UTC by Nicolas Mailhot
Modified: 2012-06-04 20:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-04 20:00:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2012-06-04 17:42:51 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.5.0-0.rc1.git0.1.fc18.x86_64
time:           lun. 04 juin 2012 19:31:19 CEST

description:
:SELinux is preventing /usr/sbin/alsactl from 'open' accesses on the chr_file /dev/snd/controlC1.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/dev/snd/controlC1 default label should be sound_device_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /dev/snd/controlC1
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that alsactl should be allowed open access on the controlC1 chr_file 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:object_r:default_t:s0
:Target Objects                /dev/snd/controlC1 [ chr_file ]
:Source                        alsactl
:Source Path                   /usr/sbin/alsactl
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           alsa-utils-1.0.25-8.fc18.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.0-0.rc1.git0.1.fc18.x86_64 #1
:                              SMP Sun Jun 3 14:07:54 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    lun. 04 juin 2012 19:18:01 CEST
:Last Seen                     lun. 04 juin 2012 19:18:01 CEST
:Local ID                      2f6fb0d3-c636-44fc-97b6-3d16e3f1b3f0
:
:Raw Audit Messages
:type=AVC msg=audit(1338830281.832:259): avc:  denied  { open } for  pid=1259 comm="alsactl" path="/dev/snd/controlC1" dev="devtmpfs" ino=19815 scontext=system_u:system_r:alsa_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=chr_file
:
:
:type=SYSCALL msg=audit(1338830281.832:259): arch=x86_64 syscall=open success=yes exit=ESRCH a0=7fff1999e220 a1=80000 a2=7fff1999e232 a3=7fff1999dfd8 items=0 ppid=1257 pid=1259 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=alsactl exe=/usr/sbin/alsactl subj=system_u:system_r:alsa_t:s0-s0:c0.c1023 key=(null)
:
:Hash: alsactl,alsa_t,default_t,chr_file,open
:
:audit2allow
:
:#============= alsa_t ==============
:allow alsa_t default_t:chr_file open;
:
:audit2allow -R
:
:#============= alsa_t ==============
:allow alsa_t default_t:chr_file open;
:

Comment 1 Daniel Walsh 2012-06-04 20:00:35 UTC
Duplicate of 828375


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