Bug 1027494 - SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'write' accesses on the file /home/asinha/rpmbuild/SOURCES/corebird-master/1.
Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'write' acce...
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:0192f8194cb6bea10538bafdb25...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-06 23:18 UTC by Ankur Sinha (FranciscoD)
Modified: 2013-11-11 19:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-11 19:18:40 UTC
Type: ---


Attachments (Terms of Use)

Description Ankur Sinha (FranciscoD) 2013-11-06 23:18:33 UTC
Description of problem:
Clicked on a link in corebird that opened up a new tab in firefox.
Not really sure if this is a bug or not. Filing it any way.


SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'write' accesses on the file /home/asinha/rpmbuild/SOURCES/corebird-master/1.

*****  Plugin mozplugger (91.9 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 leaks (7.81 confidence) suggests   *****************************

If you want to ignore plugin-container trying to write access the 1 file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/lib64/xulrunner/plugin-container /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (1.71 confidence) suggests   **************************

If you believe that plugin-container should be allowed write access on the 1 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/asinha/rpmbuild/SOURCES/corebird-master/1 [
                              file ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-25.0-2.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-90.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.7-300.fc20.x86_64 #1 SMP Mon
                              Nov 4 15:07:39 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-11-07 10:16:18 EST
Last Seen                     2013-11-07 10:16:18 EST
Local ID                      0a42fb4d-8688-471a-a8c5-ff1977455007

Raw Audit Messages
type=AVC msg=audit(1383779778.428:530): avc:  denied  { write } for  pid=4524 comm="plugin-containe" path="/home/asinha/rpmbuild/SOURCES/corebird-master/1" dev="sda2" ino=10486594 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(1383779778.428:530): arch=x86_64 syscall=execve success=yes exit=0 a0=7f29d515e2d8 a1=7f29d515e320 a2=7f2a01d04c00 a3=7f2a01cfe690 items=0 ppid=4307 pid=4524 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,user_home_t,file,write

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.7-300.fc20.x86_64
type:           libreport

Potential duplicate: bug 678136

Comment 1 Daniel Walsh 2013-11-11 19:18:40 UTC
This looks like this plugin is trying to build rpmfiles in your homedir.  THis would not be supported by the lockdown, so you would have to turn it off.
If you want this to work.  

*****  Plugin mozplugger (91.9 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


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