Bug 744320 - SELinux is preventing /usr/bin/pulseaudio from 'setattr' accesses on the directory /home/daniel/.pulse.
Summary: SELinux is preventing /usr/bin/pulseaudio from 'setattr' accesses on the dire...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5bbc5aef99df74ec45d8af7428b...
: 744321 744353 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-07 20:18 UTC by Daniel Ferreira Castro
Modified: 2011-10-12 13:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-12 13:21:07 UTC
Type: ---


Attachments (Terms of Use)

Description Daniel Ferreira Castro 2011-10-07 20:18:15 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc8.git0.1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/pulseaudio from 'setattr' accesses on the directory /home/daniel/.pulse.
time:           Fri Oct  7 17:18:05 2011

description:
:SELinux is preventing /usr/bin/pulseaudio from 'setattr' accesses on the directory /home/daniel/.pulse.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/home/daniel/.pulse default label should be pulseaudio_home_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /home/daniel/.pulse
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that pulseaudio should be allowed setattr access on the .pulse directory 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 autospawn /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
:                              0.c1023
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /home/daniel/.pulse [ dir ]
:Source                        autospawn
:Source Path                   /usr/bin/pulseaudio
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           pulseaudio-0.9.23-1.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-36.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.1.0-0.rc8.git0.1.fc16.x86_64 #1 SMP Tue Oct 4
:                              03:16:40 UTC 2011 x86_64 x86_64
:Alert Count                   2
:First Seen                    Fri 07 Oct 2011 02:06:46 PM BRT
:Last Seen                     Fri 07 Oct 2011 02:22:10 PM BRT
:Local ID                      0109115e-78db-46cc-8a90-ed3431cc720f
:
:Raw Audit Messages
:type=AVC msg=audit(1318008130.41:858): avc:  denied  { setattr } for  pid=18973 comm="autospawn" name=".pulse" dev=dm-2 ino=1572991 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1318008130.41:858): arch=x86_64 syscall=fchmod success=no exit=EACCES a0=5 a1=1c0 a2=d a3=0 items=0 ppid=16332 pid=18973 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=autospawn exe=/usr/bin/pulseaudio subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: autospawn,mozilla_plugin_t,user_home_t,dir,setattr
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t user_home_t:dir setattr;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t user_home_t:dir setattr;
:

Comment 1 Miroslav Grepl 2011-10-10 10:36:57 UTC
*** Bug 744321 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2011-10-10 10:37:28 UTC
*** Bug 744353 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-10-10 10:40:31 UTC
The problem is ~/.pulse is mislabeled.

# restorecon -R -v ~/.pulse

will fix. 

How was this system installed? From LiveCD or DVD, network install?

Comment 4 Saúl 2011-10-10 10:49:46 UTC
I have the same problem, i get de live cd version x86_64.

Comment 5 Miroslav Grepl 2011-10-11 11:57:06 UTC
I don't see it with the latest live cd. Could you try to add a new test user, log in as this user and check the labeling

# ls -dZ ~/.pulse

Comment 6 Saúl 2011-10-11 22:34:04 UTC
(In reply to comment #5)
> I don't see it with the latest live cd. Could you try to add a new test user,
> log in as this user and check the labeling
> 
> # ls -dZ ~/.pulse

I updated today morning, and the bug appear corrected =) .


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