Bug 663512

Summary: SELinux is preventing /usr/bin/mpd "ioctl" access on /dev/snd/pcmC0D0p.
Product: [Fedora] Fedora Reporter: John Preston <byhisdeeds>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:133b755b2bb26ac4359f8050e937e3045279d03fca2f447ad608e2883b164616
Fixed In Version: selinux-policy-3.9.7-18.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-21 23:59:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Preston 2010-12-16 00:56:53 UTC
Summary:

SELinux is preventing /usr/bin/mpd "ioctl" access on /dev/snd/pcmC0D0p.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by mpd. It is not expected that this access is
required by mpd and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:mpd_t:s0
Target Context                system_u:object_r:sound_device_t:s0
Target Objects                /dev/snd/pcmC0D0p [ chr_file ]
Source                        mpd
Source Path                   /usr/bin/mpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mpd-0.15.12-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-14.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.9-64.fc14.i686 #1 SMP Fri Dec 3
                              12:35:42 UTC 2010 i686 i686
Alert Count                   4
First Seen                    Mon 13 Dec 2010 08:45:30 PM EST
Last Seen                     Mon 13 Dec 2010 10:27:50 PM EST
Local ID                      c74cbce2-48aa-4ce8-b51b-3a406d72e972
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1292297270.495:355): avc:  denied  { ioctl } for  pid=5439 comm="mpd" path="/dev/snd/pcmC0D0p" dev=devtmpfs ino=11222 scontext=unconfined_u:system_r:mpd_t:s0 tcontext=system_u:object_r:sound_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1292297270.495:355): arch=40000003 syscall=54 success=yes exit=0 a0=d a1=4143 a2=200 a3=0 items=0 ppid=1 pid=5439 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="mpd" exe="/usr/bin/mpd" subj=unconfined_u:system_r:mpd_t:s0 key=(null)



Hash String generated from  catchall,mpd,mpd_t,sound_device_t,chr_file,ioctl
audit2allow suggests:

#============= mpd_t ==============
allow mpd_t sound_device_t:chr_file ioctl;

Comment 1 Miroslav Grepl 2010-12-16 09:27:34 UTC
Fixed in selinux-policy-3.9.7-18.fc14

Comment 2 Fedora Update System 2010-12-16 15:54:48 UTC
selinux-policy-3.9.7-18.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-18.fc14

Comment 3 Fedora Update System 2010-12-17 08:36:58 UTC
selinux-policy-3.9.7-18.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-18.fc14

Comment 4 Fedora Update System 2010-12-21 23:58:51 UTC
selinux-policy-3.9.7-18.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.