Bug 1123656

Summary: SELinux is preventing /usr/lib64/firefox/plugin-container from 'connectto' accesses on the unix_stream_socket @/tmp/.X11-unix/X0.
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4fb47f9b3e43b47a48555d603e44c2cb2ea9d9abbd2a4565e1a3bf21ae3191f0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-29 14:30:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vít Ondruch 2014-07-27 19:46:32 UTC
Description of problem:
SELinux is preventing /usr/lib64/firefox/plugin-container from 'connectto' accesses on the unix_stream_socket @/tmp/.X11-unix/X0.

*****  Plugin mozplugger (99.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.81 confidence) suggests   **************************

If you believe that plugin-container should be allowed connectto access on the X0 unix_stream_socket 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
Target Context                system_u:system_r:kernel_t:s0
Target Objects                @/tmp/.X11-unix/X0 [ unix_stream_socket ]
Source                        plugin-containe
Source Path                   /usr/lib64/firefox/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           firefox-31.0-1.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-67.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.16.0-0.rc6.git3.1.fc22.x86_64 #1
                              SMP Sat Jul 26 14:47:29 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-07-27 21:35:37 CEST
Last Seen                     2014-07-27 21:35:37 CEST
Local ID                      83044a36-d6db-4b4a-90fe-bfc308eecdae

Raw Audit Messages
type=AVC msg=audit(1406489737.811:448): avc:  denied  { connectto } for  pid=2766 comm="plugin-containe" path=002F746D702F2E5831312D756E69782F5830 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_stream_socket permissive=1


type=SYSCALL msg=audit(1406489737.811:448): arch=x86_64 syscall=connect success=yes exit=0 a0=d a1=7fffefb22590 a2=14 a3=108 items=0 ppid=2692 pid=2766 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=plugin-containe exe=/usr/lib64/firefox/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0 key=(null)

Hash: plugin-containe,mozilla_plugin_t,kernel_t,unix_stream_socket,connectto

Version-Release number of selected component:
selinux-policy-3.13.1-67.fc22.noarch

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.0-0.rc6.git3.1.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-07-28 06:20:26 UTC
*** Bug 1123657 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2014-07-28 06:20:35 UTC
*** Bug 1123658 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2014-07-28 06:24:26 UTC
Vit,
it looks you have badly labeled your system. Did you do a fresh install or uprade?

You will need to run

#touch autorelabel;reboot

to see if it works.

Comment 4 Vít Ondruch 2014-07-28 21:14:50 UTC
I freshly installed this Rawhide machine at 7th of June. Later just applied every update.

The autorelabel helped for this case it seems.

Comment 5 Miroslav Grepl 2014-07-29 14:30:56 UTC
I believe it should be OK now with the latest install images. There was a lorax bug which caused mislabeling issues.