Bug 961857

Summary: SELinux is preventing /opt/google/chrome/chrome from 'write' accesses on the directory libreport-2013-05-10-17:02:31.898161-29287.
Product: [Fedora] Fedora Reporter: redhat
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6218ead962e3320f428daeff4ecd1adeef8f60a8cd85599655de9d66072f6901
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-10 19:15:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description redhat 2013-05-10 15:09:35 UTC
Description of problem:
Updating my chrome dev unstable last version
SELinux is preventing /opt/google/chrome/chrome from 'write' accesses on the directory libreport-2013-05-10-17:02:31.898161-29287.

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

If you believe that chrome should be allowed write access on the libreport-2013-05-10-17:02:31.898161-29287 directory 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_tmp_t:s0
Target Objects                libreport-2013-05-10-17:02:31.898161-29287 [ dir ]
Source                        chrome
Source Path                   /opt/google/chrome/chrome
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           google-chrome-unstable-28.0.1500.5-199062.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-92.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.11-200.fc18.x86_64 #1 SMP Wed
                              May 1 19:44:27 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-05-10 17:02:55 CEST
Last Seen                     2013-05-10 17:02:55 CEST
Local ID                      c67fde87-d4a4-4933-b51b-d998335b6c18

Raw Audit Messages
type=AVC msg=audit(1368198175.130:950): avc:  denied  { write } for  pid=29445 comm="chrome" name="libreport-2013-05-10-17:02:31.898161-29287" dev="dm-3" ino=129807 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=dir


type=SYSCALL msg=audit(1368198175.130:950): arch=x86_64 syscall=open success=no exit=EACCES a0=7ff8e3fbd948 a1=441 a2=1b6 a3=0 items=0 ppid=0 pid=29445 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=7 tty=(none) 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_tmp_t,dir,write

audit2allow

#============= chrome_sandbox_t ==============
allow chrome_sandbox_t user_tmp_t:dir write;

audit2allow -R
require {
	type chrome_sandbox_t;
}

#============= chrome_sandbox_t ==============
userdom_manage_user_tmp_dirs(chrome_sandbox_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.11-200.fc18.x86_64
type:           libreport

Potential duplicate: bug 960798

Comment 1 Daniel Walsh 2013-05-10 19:15:54 UTC

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