Bug 720074

Summary: SELinux is preventing /opt/google/chrome/chrome-sandbox from read, append access on the file /home/tjw344f/.xsession-errors.
Product: [Fedora] Fedora Reporter: terrance wickman <terrance.wickman>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:9f01335ace2d0ab12ea6fbf0bdbca4641bb98bb2f7b2d6e08abe072576c0f787
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-11 14:11:25 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 terrance wickman 2011-07-09 01:12:44 UTC
SELinux is preventing /opt/google/chrome/chrome-sandbox from read, append access on the file /home/tjw344f/.xsession-errors.

*****  Plugin restorecon (98.5 confidence) suggests  *************************

If you want to fix the label. 
/home/tjw344f/.xsession-errors default label should be xdm_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/tjw344f/.xsession-errors

*****  Plugin catchall (1.48 confidence) suggests  ***************************

If you believe that chrome-sandbox should be allowed read append access on the .xsession-errors 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-sandbox /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

*****  Plugin leaks (1.48 confidence) suggests  ******************************

If you want to ignore chrome-sandbox trying to read append access the .xsession-errors file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /opt/google/chrome/chrome-sandbox /var/log/audit/audit.log | audit2allow -D -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/.xsession-errors [ file ]
Source                        chrome-sandbox
Source Path                   /opt/google/chrome/chrome-sandbox
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-30.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                   1
First Seen                    Wed 29 Jun 2011 09:31:10 PM CDT
Last Seen                     Wed 29 Jun 2011 09:31:10 PM CDT
Local ID                      30844b44-4e40-4bcc-8a42-8f0f38f4c61c

Raw Audit Messages
type=AVC msg=audit(1309401070.727:75): avc:  denied  { read append } for  pid=2309 comm="chrome-sandbox" path="/home/tjw344f/.xsession-errors" dev=sda7 ino=262185 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=AVC msg=audit(1309401070.727:75): avc:  denied  { read append } for  pid=2309 comm="chrome-sandbox" path="/home/tjw344f/.xsession-errors" dev=sda7 ino=262185 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(1309401070.727:75): arch=x86_64 syscall=execve success=yes exit=0 a0=526bed8 a1=52e4d60 a2=52ef000 a3=7fff4f7611f0 items=0 ppid=2302 pid=2309 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=chrome-sandbox exe=/opt/google/chrome/chrome-sandbox subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)

Hash: chrome-sandbox,chrome_sandbox_t,user_home_dir_t,file,read,append

audit2allow

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t user_home_dir_t:file { read append };

audit2allow -R

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t user_home_dir_t:file { read append };

Comment 1 Miroslav Grepl 2011-07-11 14:11:25 UTC

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