Bug 678136

Summary: SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'write' accesses on the file /home/johannbg/.pulse-cookie.
Product: [Fedora] Fedora Reporter: Jóhann B. Guðmundsson <johannbg>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, jnelson+fedora, mgrepl, olivares14031
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:0192f8194cb6bea10538bafdb2525fae551a34bc8e1c946fd76657db2dd4e322
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-16 21:57:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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. ***