Bug 638233

Summary: SELinux is preventing /usr/lib64/xulrunner-1.9.2/plugin-container "read" access on /etc/resolv.conf.
Product: [Fedora] Fedora Reporter: Aaron Sowry <aaron>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: aaron, any0n3, dwalsh, krzysztof.luczak, mgrepl, sundaram, watzkej
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:35a553962b281f09d8eadfaf92ca3e088469becc980884e19cce507dba36dadc
Fixed In Version: selinux-policy-3.9.5-10.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-05 13:09:46 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 Aaron Sowry 2010-09-28 14:36:38 UTC
Summary:

SELinux is preventing /usr/lib64/xulrunner-1.9.2/plugin-container "read" access
on /etc/resolv.conf.

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                system_u:object_r:net_conf_t:s0
Target Objects                /etc/resolv.conf [ file ]
Source                        plugin-containe
Source Path                   /usr/lib64/xulrunner-1.9.2/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner-1.9.2.10-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.5-7.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                   2
First Seen                    Tue 28 Sep 2010 04:35:02 PM CEST
Last Seen                     Tue 28 Sep 2010 04:35:02 PM CEST
Local ID                      80f87a14-9f49-425a-a54a-9843f303ab97
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1285684502.859:68): avc:  denied  { read } for  pid=3672 comm="plugin-containe" name="resolv.conf" dev=dm-0 ino=655792 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:net_conf_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1285684502.859:68): avc:  denied  { open } for  pid=3672 comm="plugin-containe" name="resolv.conf" dev=dm-0 ino=655792 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:net_conf_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1285684502.859:68): arch=c000003e syscall=2 success=yes exit=18 a0=7f61af90f631 a1=0 a2=1b6 a3=2 items=0 ppid=3475 pid=3672 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-1.9.2/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,net_conf_t,file,read
audit2allow suggests:

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t net_conf_t:file { read open };

Comment 1 Daniel Walsh 2010-09-28 14:43:04 UTC
Fixed in selinux-policy-3.9.5-8.fc14

Comment 2 Fedora Update System 2010-10-04 19:37:48 UTC
selinux-policy-3.9.5-10.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-10.fc14

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