Bug 678136 - SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'write' accesses on the file /home/johannbg/.pulse-cookie.
Summary: SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'write' ac...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:0192f8194cb...
: 882707 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-16 20:53 UTC by Jóhann B. Guðmundsson
Modified: 2012-12-02 19:53 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-16 21:57:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jóhann B. Guðmundsson 2011-02-16 20:53:51 UTC
SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'write' accesses on the file /home/johannbg/.pulse-cookie.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/home/johannbg/.pulse-cookie default label should be pulseaudio_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/johannbg/.pulse-cookie

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that plugin-container should be allowed write access on the .pulse-cookie 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 plugin-containe /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/johannbg/.pulse-cookie [ file ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner-2/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-2.0-0.21.b11.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux localhost.localdomain
                              2.6.38-0.rc4.git7.1.fc15.x86_64 #1 SMP Mon Feb 14
                              01:29:48 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Wed 16 Feb 2011 06:42:31 PM GMT
Last Seen                     Wed 16 Feb 2011 06:47:57 PM GMT
Local ID                      12bbf0f9-720c-45a4-9875-0eaf7ef44598

Raw Audit Messages
type=AVC msg=audit(1297882077.614:845): avc:  denied  { write } for  pid=32572 comm="plugin-containe" name=".pulse-cookie" dev=sda5 ino=2883625 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1297882077.614:845): arch=x86_64 syscall=open success=yes exit=ENFILE a0=7f5336439080 a1=142 a2=180 a3=3b07683480 items=0 ppid=30099 pid=32572 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=plugin-containe exe=/usr/lib64/xulrunner-2/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,user_home_t,file,write

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:file write;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:file write;

Comment 1 Daniel Walsh 2011-02-16 21:57:01 UTC
Your homedir is mislabeled.

restorecon -R -v ~/

If this happens again please reopen.

Comment 2 jnelson+fedora 2012-12-02 19:53:53 UTC
*** Bug 882707 has been marked as a duplicate of this bug. ***


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