Bug 1046097 - SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'getattr' accesses on the file /home/lbotti/.mozilla/firefox/profiles.ini.
Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'getattr' ac...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5e722ba63bcfd27b3177d51ad3c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-23 16:23 UTC by Luca Botti
Modified: 2014-01-02 23:31 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-02 23:31:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Luca Botti 2013-12-23 16:23:06 UTC
Description of problem:
Firefox with flash player installed
SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'getattr' accesses on the file /home/lbotti/.mozilla/firefox/profiles.ini.

*****  Plugin restorecon (57.3 confidence) suggests   ************************

If you want to fix the label. 
/home/lbotti/.mozilla/firefox/profiles.ini default label should be mozilla_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/lbotti/.mozilla/firefox/profiles.ini

*****  Plugin mozplugger (43.1 confidence) suggests   ************************

If you want to use the plugin package
Then you must turn off SELinux controls on the Firefox plugins.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin catchall (1.06 confidence) suggests   **************************

If you believe that plugin-container should be allowed getattr access on the profiles.ini 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:home_root_t:s0
Target Objects                /home/lbotti/.mozilla/firefox/profiles.ini [ file
                              ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-26.0-2.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.5-302.fc20.x86_64 #1 SMP Tue
                              Dec 17 20:42:32 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-12-23 00:27:42 CET
Last Seen                     2013-12-23 00:34:30 CET
Local ID                      89709110-93dc-4921-999d-5f9e75c2b6ab

Raw Audit Messages
type=AVC msg=audit(1387755270.50:600): avc:  denied  { getattr } for  pid=17236 comm="plugin-containe" path="/home/lbotti/.mozilla/firefox/profiles.ini" dev="dm-2" ino=4457430 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:home_root_t:s0 tclass=file


type=SYSCALL msg=audit(1387755270.50:600): arch=x86_64 syscall=stat success=no exit=EACCES a0=7f453e983040 a1=7fff58bf8780 a2=7fff58bf8780 a3=7f453db1a000 items=0 ppid=16682 pid=17236 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=plugin-containe exe=/usr/lib64/xulrunner/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: plugin-containe,mozilla_plugin_t,home_root_t,file,getattr

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-302.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-01-02 23:31:05 UTC
restorecon -R -v /home

Somehow your homedir is mislabeled.


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