Bug 741925 - SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'name_connect' accesses on the tcp_socket port 54085.
Summary: SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'name_conn...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:756e880f982f18b5c344ac04a89...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-28 13:43 UTC by James Cape
Modified: 2011-11-20 23:59 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.10.0-56.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-20 23:59:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James Cape 2011-09-28 13:43:11 UTC
abrt version: 2.0.5.980
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc6.git0.3.fc16.x86_64
reason:         SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'name_connect' accesses on the tcp_socket port 54085.
time:           Wed Sep 28 08:43:03 2011

description:
:SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'name_connect' accesses on the tcp_socket port 54085.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that plugin-container should be allowed name_connect access on the port 54085 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:unreserved_port_t:s0
:Target Objects                port 54085 [ tcp_socket ]
:Source                        plugin-containe
:Source Path                   /usr/lib64/xulrunner-2/plugin-container
:Port                          54085
:Host                          (removed)
:Source RPM Packages           xulrunner-6.0.2-1.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-32.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux orwell.ignore-your.tv
:                              3.1.0-0.rc6.git0.3.fc16.x86_64 #1 SMP Fri Sep 16
:                              12:26:22 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Tue 27 Sep 2011 08:11:10 PM CDT
:Last Seen                     Tue 27 Sep 2011 08:11:10 PM CDT
:Local ID                      9b03a722-be26-49a3-9f4b-e1a76d3f23af
:
:Raw Audit Messages
:type=AVC msg=audit(1317172270.515:459): avc:  denied  { name_connect } for  pid=4651 comm="plugin-containe" dest=54085 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket
:
:
:type=SYSCALL msg=audit(1317172270.515:459): arch=x86_64 syscall=connect success=no exit=EINPROGRESS a0=15 a1=7fff333bb750 a2=10 a3=7fff333bb4e0 items=0 ppid=2391 pid=4651 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 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,unreserved_port_t,tcp_socket,name_connect
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t unreserved_port_t:tcp_socket name_connect;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:allow mozilla_plugin_t unreserved_port_t:tcp_socket name_connect;
:

Comment 1 Daniel Walsh 2011-09-28 15:19:05 UTC
Did this happen when you were connecting to an FTP port?

Comment 2 Daniel Walsh 2011-09-28 15:20:54 UTC
Miroslav this is an ephemeral port.  I think we might need to back port the ephemeral patch into F16.

Comment 3 Miroslav Grepl 2011-09-29 08:10:31 UTC
Ok, I will build it with this patch but will wait one or two days with update for better testing.

Comment 4 Konstantin Ryabitsev 2011-11-13 15:31:44 UTC
This appears to still happen in F16 -- I think it's triggered by google-talkplugin.

Comment 5 Miroslav Grepl 2011-11-14 11:50:44 UTC
Are you getting the same AVC message? Could you attach this message? Thank you.

Comment 6 Konstantin Ryabitsev 2011-11-14 15:40:03 UTC
type=AVC msg=audit(1321198278.316:24287): avc:  denied  { name_connect } for  pi
d=30874 comm="plugin-containe" dest=52971 scontext=user_u:user_r:mozilla_plugin_
t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socket
type=SYSCALL msg=audit(1321198278.316:24287): arch=c000003e syscall=42 success=n
o exit=-13 a0=15 a1=7fff65b24020 a2=10 a3=0 items=0 ppid=30810 pid=30874 auid=10
01 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=10
01 tty=(none) ses=4 comm="plugin-containe" exe="/usr/lib64/xulrunner-2/plugin-co
ntainer" subj=user_u:user_r:mozilla_plugin_t:s0 key=(null)

Comment 7 Konstantin Ryabitsev 2011-11-14 15:41:10 UTC
Bleh, again:
type=AVC msg=audit(1321198278.316:24287): avc:  denied  { name_connect } for  pid=30874 comm="plugin-containe" dest=52971 scontext=user_u:user_r:mozilla_plugin_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socket type=SYSCALL msg=audit(1321198278.316:24287): arch=c000003e syscall=42 success=no exit=-13 a0=15 a1=7fff65b24020 a2=10 a3=0 items=0 ppid=30810 pid=30874 auid=1001 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 tty=(none) ses=4 comm="plugin-containe" exe="/usr/lib64/xulrunner-2/plugin-container" subj=user_u:user_r:mozilla_plugin_t:s0 key=(null)

Comment 8 Daniel Walsh 2011-11-14 20:09:41 UTC
We should allow it.  It is probably the ftp protocol triggering it.


+corenet_tcp_connect_ftp_port(mozilla_plugin_t)
+corenet_tcp_connect_all_ephemeral_ports(mozilla_plugin_t)

Comment 9 Miroslav Grepl 2011-11-15 08:53:09 UTC
Fixed in selinux-policy-3.10.0-56.fc16

Comment 10 Fedora Update System 2011-11-16 15:22:19 UTC
selinux-policy-3.10.0-56.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-56.fc16

Comment 11 Fedora Update System 2011-11-17 23:29:57 UTC
Package selinux-policy-3.10.0-56.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-56.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16003/selinux-policy-3.10.0-56.fc16
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2011-11-20 23:59:59 UTC
selinux-policy-3.10.0-56.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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