Bug 632410 - SELinux is preventing /opt/google/chrome/chrome "read" access on /etc/resolv.conf.
Summary: SELinux is preventing /opt/google/chrome/chrome "read" access on /etc/re...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:69be5ce4352...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-09 20:54 UTC by monkeyboy199271
Modified: 2010-09-22 00:38 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.19-57.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-22 00:38:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description monkeyboy199271 2010-09-09 20:54:05 UTC
Summary:

SELinux is preventing /opt/google/chrome/chrome "read" access on
/etc/resolv.conf.

Detailed Description:

[chrome has a permissive type (chrome_sandbox_t). This access was not denied.]

SELinux denied access requested by chrome. It is not expected that this access
is required by chrome 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/se(removed)-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:net_conf_t:s0
Target Objects                /etc/resolv.conf [ file ]
Source                        chrome
Source Path                   /opt/google/chrome/chrome
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           google-chrome-stable-5.0.375.126-53802
Target RPM Packages           
Policy RPM                    se(removed)-policy-3.6.32-118.fc12
Se(removed) Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.16-150.fc12.i686 #1 SMP Sat Jul
                              24 05:31:53 UTC 2010 i686 athlon
Alert Count                   1
First Seen                    Wed 18 Aug 2010 05:19:55 PM EDT
Last Seen                     Wed 18 Aug 2010 05:19:55 PM EDT
Local ID                      7de40da4-ae68-41fc-ab79-8ca890fd8c38
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1282166395.744:198): avc:  denied  { read } for  pid=10151 comm="chrome" path="/etc/resolv.conf" dev=dm-0 ino=9107 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=system_u:object_r:net_conf_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1282166395.744:198): arch=40000003 syscall=102 success=yes exit=1 a0=11 a1=b73b8b40 a2=b85dc60 a3=0 items=0 ppid=1 pid=10151 auid=501 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=(none) ses=30 comm="chrome" exe="/opt/google/chrome/chrome" subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,chrome,chrome_sandbox_t,net_conf_t,file,read
audit2allow suggests:

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t net_conf_t:file read;

Comment 1 Miroslav Grepl 2010-09-10 11:48:10 UTC
Not sure why this is needed. 

You could also use chromium repo built by Tom Callaway


# Place this file in your /etc/yum.repos.d/ directory

[fedora-chromium]
name=Chromium web browser and deps
baseurl=http://repos.fedorapeople.org/repos/spot/chromium/fedora-$releasever/$basearch/
enabled=1
gpgcheck=0

[fedora-chromium-source]
name=Chromium web browser and deps - Source
baseurl=http://repos.fedorapeople.org/repos/spot/chromium/fedora-$releasever/SRPMS/
enabled=0
gpgcheck=0

Comment 2 Daniel Walsh 2010-09-10 14:59:48 UTC
Probably a leaked file descriptor.

Comment 3 Daniel Walsh 2010-09-10 15:00:41 UTC
Add sysnet_dontaudit_read_config(chrome_sandbox_t)

Comment 4 Miroslav Grepl 2010-09-13 12:43:53 UTC
Fixed in selinux-policy-3.7.19-57.fc13

Comment 5 Fedora Update System 2010-09-13 16:09:00 UTC
selinux-policy-3.7.19-57.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-57.fc13

Comment 6 Fedora Update System 2010-09-15 05:30:10 UTC
selinux-policy-3.7.19-57.fc13 has been pushed to the Fedora 13 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.7.19-57.fc13

Comment 7 Fedora Update System 2010-09-22 00:37:36 UTC
selinux-policy-3.7.19-57.fc13 has been pushed to the Fedora 13 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.