Bug 639735

Summary: SELinux is preventing /usr/lib64/xulrunner-1.9.2/plugin-container "getattr" access on /etc/resolv.conf.
Product: [Fedora] Fedora Reporter: John Watzke <watzkej>
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: dwalsh, faizanqazi, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e00169c77950f37f0884599559297aa4085f2cdc64d7552fdd3e9d24b0d85cf9
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:50 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 John Watzke 2010-10-03 19:02:08 UTC
Summary:

SELinux is preventing /usr/lib64/xulrunner-1.9.2/plugin-container "getattr"
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                   1
First Seen                    Sun 03 Oct 2010 01:49:17 PM CDT
Last Seen                     Sun 03 Oct 2010 01:49:17 PM CDT
Local ID                      68c2178c-c63f-4ec0-81c2-01d93149962b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1286131757.798:48): avc:  denied  { getattr } for  pid=5629 comm="plugin-containe" path="/etc/resolv.conf" dev=sdb1 ino=1970579 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(1286131757.798:48): arch=c000003e syscall=5 success=yes exit=0 a0=10 a1=7f5ded483050 a2=7f5ded483050 a3=2 items=0 ppid=5581 pid=5629 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,getattr
audit2allow suggests:

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t net_conf_t:file getattr;

Comment 1 John Watzke 2010-10-03 19:05:04 UTC
This happened when running firefox with the new Adobe 64-bit flash plugin.  The "read" AVC denial was apparently fixed in version -8 of selinux-policy.  I'm not sure if that included this getattr call on /etc/resolv.conf so I'm filling this additional bug.

Comment 2 Daniel Walsh 2010-10-04 15:33:00 UTC
Fixed in selinux-policy-3.9.5-8.fc14

You can use sesearch -A -s mozilla_plugin_t -t net_conf_t 

To see all of the access.

Comment 3 Fedora Update System 2010-10-04 19:37:53 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 4 Fedora Update System 2010-10-05 13:07:08 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.