Bug 681863

Summary: SELinux is preventing /usr/lib64/chromium-browser/chromium-browser from 'read' accesses on the file /etc/localtime.
Product: [Fedora] Fedora Reporter: Geffry Villatoro <geffry.villatoro>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:a217f134f9fa562a6d5f165ab7dc69740853adefe99c1b0042c4d6461ef6a80b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-03 13:24:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Geffry Villatoro 2011-03-03 13:11:04 UTC
SELinux is preventing /usr/lib64/chromium-browser/chromium-browser from 'read' accesses on the file /etc/localtime.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/etc/localtime default label should be locale_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/localtime

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that chromium-browser should be allowed read access on the localtime file 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 chromium-browse /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:etc_runtime_t:s0
Target Objects                /etc/localtime [ file ]
Source                        chromium-browse
Source Path                   /usr/lib64/chromium-browser/chromium-browser
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           chromium-11.0.679.0-1.fc14
Target RPM Packages           glibc-2.13-1
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.x86_64 #1
                              SMP Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64
Alert Count                   218
First Seen                    mar 01 mar 2011 12:56:16 CST
Last Seen                     jue 03 mar 2011 06:46:08 CST
Local ID                      ebbeb43f-1d4b-4ed2-8da5-3d0980a73e54

Raw Audit Messages
type=AVC msg=audit(1299156368.84:24337): avc:  denied  { read } for  pid=2695 comm="chromium-browse" name="localtime" dev=sda2 ino=2158 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file


type=SYSCALL msg=audit(1299156368.84:24337): arch=x86_64 syscall=open success=no exit=EACCES a0=3636ce3395 a1=0 a2=1b6 a3=0 items=0 ppid=0 pid=2695 auid=500 uid=500 gid=501 euid=500 suid=500 fsuid=500 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm=chromium-browse exe=/usr/lib64/chromium-browser/chromium-browser subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)

Hash: chromium-browse,chrome_sandbox_t,etc_runtime_t,file,read

audit2allow

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

audit2allow -R

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

Comment 1 Miroslav Grepl 2011-03-03 13:24:57 UTC

*** This bug has been marked as a duplicate of bug 672409 ***