Bug 637740

Summary: SELinux is preventing /usr/lib64/xulrunner-2.0b6/plugin-container "ioctl" access on udp_socket.
Product: [Fedora] Fedora Reporter: Rahul Sundaram <sundaram>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl, smohan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:1ad90f319488bc3d8b55a9e24ae6e708490d09932da5a2c40d5a8bf574568ba8
Fixed In Version: selinux-policy-3.9.5-7.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-05 13:13:54 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 Rahul Sundaram 2010-09-27 09:50:41 UTC
Summary:

SELinux is preventing /usr/lib64/xulrunner-2.0b6/plugin-container "ioctl" access
on udp_socket.

Detailed Description:

[plugin-containe has a permissive type (mozilla_plugin_t). This access was not
denied.]

SELinux denied access requested by plugin-containe. It is not expected that this
access is required by plugin-containe and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Objects                udp_socket [ udp_socket ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner-2.0b6/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner2-2.0-0.7.b6.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.5-5.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.4-28.fc14.x86_64 #1 SMP
                              Wed Sep 15 01:56:54 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 27 Sep 2010 03:17:30 PM IST
Last Seen                     Mon 27 Sep 2010 03:17:30 PM IST
Local ID                      30d6c67e-9ef4-46fb-ab6b-54935942eee8
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1285580850.54:180): avc:  denied  { ioctl } for  pid=13358 comm="plugin-containe" path="socket:[608146]" dev=sockfs ino=608146 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tclass=udp_socket

node=(removed) type=SYSCALL msg=audit(1285580850.54:180): arch=c000003e syscall=16 success=yes exit=0 a0=11 a1=8912 a2=7f5079842a70 a3=7f5079842740 items=0 ppid=9546 pid=13358 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="plugin-containe" exe="/usr/lib64/xulrunner-2.0b6/plugin-container" subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,plugin-containe,mozilla_plugin_t,mozilla_plugin_t,udp_socket,ioctl
audit2allow suggests:

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t self:udp_socket ioctl;

Comment 1 Daniel Walsh 2010-09-27 12:31:31 UTC
Fixed in selinux-policy-3.9.5-7.fc14

Comment 2 Fedora Update System 2010-09-27 14:46:49 UTC
selinux-policy-3.9.5-7.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-7.fc14

Comment 3 Fedora Update System 2010-09-27 20:08:21 UTC
selinux-policy-3.9.5-7.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-7.fc14

Comment 4 Fedora Update System 2010-10-05 13:12:46 UTC
selinux-policy-3.9.5-7.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.