Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 584710 - SELinux is preventing /usr/bin/pulseaudio "setattr" access on /var/lib/mpd/.pulse.
Summary: SELinux is preventing /usr/bin/pulseaudio "setattr" access on /var/lib/m...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:27f341e7cb6...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-04-22 09:02 UTC by Robert Townley
Modified: 2010-06-04 18:57 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.6.32-116.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-06-04 18:57:46 UTC
Type: ---

Attachments (Terms of Use)

Description Robert Townley 2010-04-22 09:02:02 UTC

SELinux is preventing /usr/bin/pulseaudio "setattr" access on

Detailed Description:

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

SELinux denied access requested by pulseaudio. It is not expected that this
access is required by pulseaudio 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

Additional Information:

Source Context                unconfined_u:system_r:pulseaudio_t:s0
Target Context                unconfined_u:object_r:var_lib_t:s0
Target Objects                /var/lib/mpd/.pulse [ dir ]
Source                        pulseaudio
Source Path                   /usr/bin/pulseaudio
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pulseaudio-0.9.21-5.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-110.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) #1
                              SMP Mon Apr 5 16:15:03 EDT 2010 i686 i686
Alert Count                   5
First Seen                    Thu 22 Apr 2010 02:07:12 AM CDT
Last Seen                     Thu 22 Apr 2010 04:00:54 AM CDT
Local ID                      0f7b51f8-2fef-44d9-9993-3b65b32c7bfe
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1271926854.758:29787): avc:  denied  { setattr } for  pid=10651 comm="pulseaudio" name=".pulse" dev=dm-0 ino=172094 scontext=unconfined_u:system_r:pulseaudio_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1271926854.758:29787): arch=40000003 syscall=212 success=yes exit=0 a0=b6a00520 a1=1ee a2=1db a3=b6a00520 items=0 ppid=10641 pid=10651 auid=500 uid=494 gid=475 euid=494 suid=494 fsuid=494 egid=475 sgid=475 fsgid=475 tty=(none) ses=4 comm="pulseaudio" exe="/usr/bin/pulseaudio" subj=unconfined_u:system_r:pulseaudio_t:s0 key=(null)

Hash String generated from  catchall,pulseaudio,pulseaudio_t,var_lib_t,dir,setattr
audit2allow suggests:

#============= pulseaudio_t ==============
allow pulseaudio_t var_lib_t:dir setattr;

Comment 1 Daniel Walsh 2010-04-22 11:43:16 UTC
Was /var/lib/mpd a local customization?

# semange fcontext -a -t pulseaudio_var_lib_t '/var/lib/mpd(/.*)?'
# restorecon -R -v /var/lib/mpd

Should fix.

Comment 2 Miroslav Grepl 2010-04-29 08:48:27 UTC
I am closing it as CANTFIX. That's relating to Music Player Daemon.

Comment 3 Robert Townley 2010-05-01 18:48:46 UTC
i thank you for spending time on a daemon that is not in the Fedora repos.  Is it a CANTFIX simply because it is not in the official Fedora repos or does the mpd use pulseaudio in a way that would never be compatible with selinux.

Comment 4 Daniel Walsh 2010-05-03 18:09:16 UTC
Does the lines above fix the problem?

Comment 5 Robert Townley 2010-05-05 08:59:02 UTC
After doing the following again, that selinux issue no longer appears.  

# semanage fcontext -a -t pulseaudio_var_lib_t '/var/lib/mpd(/.*)?'
# restorecon -R -v /var/lib/mpd

Comment 6 Daniel Walsh 2010-05-05 14:52:33 UTC
That is what the current policy has for labeling.  If you can get mpd into fedora, we will write policy for it.

Miroslav can you add this labeling to F12.  It is in F13.

Comment 7 Miroslav Grepl 2010-05-11 13:16:44 UTC
Fixed in selinux-policy-3.6.32-115.fc12

Comment 8 Fedora Update System 2010-05-21 13:52:11 UTC
selinux-policy-3.6.32-116.fc12 has been submitted as an update for Fedora 12.

Comment 9 Fedora Update System 2010-05-24 19:34:13 UTC
selinux-policy-3.6.32-116.fc12 has been pushed to the Fedora 12 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: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-116.fc12

Comment 10 Fedora Update System 2010-06-04 18:57:01 UTC
selinux-policy-3.6.32-116.fc12 has been pushed to the Fedora 12 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.