Bug 720073 - SELinux is preventing chrome from 'read' accesses on the file /home/tjw344f/.config/google-chrome/Dictionaries/en-US-2-1.bdic.
Summary: SELinux is preventing chrome from 'read' accesses on the file /home/tjw344f/....
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:cf5d6e77606...
: 720074 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-09 01:11 UTC by terrance wickman
Modified: 2011-09-20 14:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-11 14:10:04 UTC
Type: ---


Attachments (Terms of Use)

Description terrance wickman 2011-07-09 01:11:16 UTC
SELinux is preventing chrome from 'read' accesses on the file /home/tjw344f/.config/google-chrome/Dictionaries/en-US-2-1.bdic.

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

If you want to fix the label. 
/home/tjw344f/.config/google-chrome/Dictionaries/en-US-2-1.bdic default label should be config_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/tjw344f/.config/google-chrome/Dictionaries/en-US-2-1.bdic

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

If you believe that chrome should be allowed read access on the en-US-2-1.bdic 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 chrome /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                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                /home/tjw344f/.config/google-chrome/Dictionaries
                              /en-US-2-1.bdic [ file ]
Source                        chrome
Source Path                   chrome
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           google-chrome-stable-12.0.742.112-90304
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-32.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.8-32.fc15.x86_64 #1 SMP
                              Mon Jun 13 19:49:05 UTC 2011 x86_64 x86_64
Alert Count                   10
First Seen                    Wed 29 Jun 2011 09:29:10 PM CDT
Last Seen                     Fri 08 Jul 2011 04:10:52 PM CDT
Local ID                      b2d67c43-7787-4143-946c-a7914a16a048

Raw Audit Messages
type=AVC msg=audit(1310159452.629:98): avc:  denied  { read } for  pid=3593 comm="chrome" path="/home/tjw344f/.config/google-chrome/Dictionaries/en-US-2-1.bdic" dev=sda6 ino=1975979 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1310159452.629:98): arch=x86_64 syscall=recvmsg success=yes exit=EPERM a0=15 a1=7f0f1b745e30 a2=40 a3=7fffffff items=0 ppid=1 pid=3593 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=chrome exe=/opt/google/chrome/chrome subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)

Hash: chrome,chrome_sandbox_t,user_home_dir_t,file,read

audit2allow

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

audit2allow -R

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

Comment 1 Miroslav Grepl 2011-07-11 14:10:04 UTC
You have mislabeled file in your home dir.

Execute

# restorecon -R -v /home/tjw344f/.config/google-chrome

Comment 2 Miroslav Grepl 2011-07-11 14:11:12 UTC
Actually execute

# restorecon -R -v /home/tjw344f

Comment 3 Miroslav Grepl 2011-07-11 14:11:25 UTC
*** Bug 720074 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.