Bug 887567 - SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'name_connect' accesses on the tcp_socket .
Summary: SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'name_connec...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5c454144439cfd15a39f4afa5ef...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-16 13:05 UTC by Mihai Harpau
Modified: 2012-12-18 11:51 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-17 11:26:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-12-16 13:05 UTC, Mihai Harpau
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-12-16 13:05 UTC, Mihai Harpau
no flags Details

Description Mihai Harpau 2012-12-16 13:05:09 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.9-2.fc17.x86_64

description:
:SELinux is preventing /usr/lib64/xulrunner/plugin-container from 'name_connect' accesses on the tcp_socket .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that plugin-container should be allowed name_connect access on the  tcp_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-s0:c
:                              0.c1023
:Target Context                system_u:object_r:sap_port_t:s0
:Target Objects                 [ tcp_socket ]
:Source                        plugin-containe
:Source Path                   /usr/lib64/xulrunner/plugin-container
:Port                          9875
:Host                          (removed)
:Source RPM Packages           xulrunner-17.0.1-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.9-2.fc17.x86_64 #1 SMP Tue Dec
:                              4 13:26:04 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    2012-12-10 19:19:13 EET
:Last Seen                     2012-12-15 22:37:20 EET
:Local ID                      6a1d2828-ba79-427d-b680-f8c612b30005
:
:Raw Audit Messages
:type=AVC msg=audit(1355603840.135:262): avc:  denied  { name_connect } for  pid=18751 comm="plugin-containe" dest=9875 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sap_port_t:s0 tclass=tcp_socket
:
:
:type=SYSCALL msg=audit(1355603840.135:262): arch=x86_64 syscall=connect success=no exit=EACCES a0=17 a1=7f2188e345f0 a2=10 a3=0 items=0 ppid=18304 pid=18751 auid=1001 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 tty=(none) ses=16 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,sap_port_t,tcp_socket,name_connect
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t sap_port_t:tcp_socket name_connect;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t sap_port_t:tcp_socket name_connect;
:

Comment 1 Mihai Harpau 2012-12-16 13:05:13 UTC
Created attachment 664303 [details]
File: type

Comment 2 Mihai Harpau 2012-12-16 13:05:15 UTC
Created attachment 664304 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-12-17 11:26:48 UTC
We allow this on F17/F18

DT allow mozilla_plugin_t port_type : tcp_socket name_connect ; [ mozilla_plugin_can_network_connect ]

using the mozilla_plugin_can_network_connect boolean.

SO execute

# setsebool -P mozilla_plugin_can_network_connect 1

to make this working.

Comment 4 Mihai Harpau 2012-12-18 11:51:09 UTC
OK, I will test this solution. Thanks.


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