| Summary: | SELinux is preventing /usr/lib64/xulrunner-2/plugin-container from 'name_connect' accesses on the tcp_socket port 54085. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | James Cape <jamescape777> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, icon, mgrepl |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:756e880f982f18b5c344ac04a891d454da4158a9a6971fe2d339bb2738ddc430 | ||
| Fixed In Version: | selinux-policy-3.10.0-56.fc16 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-20 23:59:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Did this happen when you were connecting to an FTP port? Miroslav this is an ephemeral port. I think we might need to back port the ephemeral patch into F16. Ok, I will build it with this patch but will wait one or two days with update for better testing. This appears to still happen in F16 -- I think it's triggered by google-talkplugin. Are you getting the same AVC message? Could you attach this message? Thank you. 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)
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)
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) Fixed in selinux-policy-3.10.0-56.fc16 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 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). 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. |
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; :