Bug 748318

Summary: SELinux is preventing /opt/google/chrome/chrome from 'write' accesses on the file /dev/shm/.com.google.Chrome.f8716E (deleted).
Product: [Fedora] Fedora Reporter: Mitrandir <mirvana-dmitry>
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: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:17b0156a2ad56efcfcaf724943d963fa3bd38d9e9b31f5a2ef410ffb49aa926f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-24 06:12:21 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 Mitrandir 2011-10-24 05:43:18 UTC
SELinux is preventing /opt/google/chrome/chrome from 'write' accesses on the file /dev/shm/.com.google.Chrome.f8716E (deleted).

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that chrome should be allowed write access on the .com.google.Chrome.f8716E (deleted) 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:tmpfs_t:s0
Target Objects                /dev/shm/.com.google.Chrome.f8716E (deleted) [
                              file ]
Source                        chrome
Source Path                   /opt/google/chrome/chrome
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           google-chrome-stable-14.0.835.202-103287
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-44.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.14-97.fc14.i686.PAE #1 SMP Sat Sep 17
                              00:22:29 UTC 2011 i686 i686
Alert Count                   2
First Seen                    Mon 24 Oct 2011 08:37:11 AM MSK
Last Seen                     Mon 24 Oct 2011 08:37:11 AM MSK
Local ID                      e7ce1b8b-d440-42ee-982c-af28f55eeb57

Raw Audit Messages
type=AVC msg=audit(1319434631.147:28735): avc:  denied  { write } for  pid=5060 comm="chrome" path=2F6465762F73686D2F2E636F6D2E676F6F676C652E4368726F6D652E663837313645202864656C6574656429 dev=tmpfs ino=77869 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:tmpfs_t:s0 tclass=file


type=SYSCALL msg=audit(1319434631.147:28735): arch=i386 syscall=mmap2 success=no exit=EACCES a0=0 a1=8000 a2=3 a3=1 items=0 ppid=1 pid=5060 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=22 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,tmpfs_t,file,write

audit2allow

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t tmpfs_t:file write;

audit2allow -R

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t tmpfs_t:file write;

Comment 1 Miroslav Grepl 2011-10-24 06:12:21 UTC

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