Bug 850780

Summary: SELinux is preventing /opt/google/chrome/chrome (deleted) from 'getattr' accesses on the file /media/Union/PLAY/Picture/L78Z/suse.jpg.
Product: [Fedora] Fedora Reporter: extendvg <extendvg>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:732742922d00cf383d17eebca72bbd60029a2653c92888cd20bda1c6b40b7610
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 13:22:05 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 extendvg@gmail.com 2012-08-22 12:13:42 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.7-1.fc16.x86_64
time:           2012年08月22日 星期三 20时09分10秒

description:
:SELinux is preventing /opt/google/chrome/chrome (deleted) from 'getattr' accesses on the file /media/Union/PLAY/Picture/L78Z/suse.jpg.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that chrome (deleted) should be allowed getattr access on the suse.jpg 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_ChildIOT /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:fusefs_t:s0
:Target Objects                /media/Union/PLAY/Picture/L78Z/suse.jpg [ file ]
:Source                        Chrome_ChildIOT
:Source Path                   /opt/google/chrome/chrome (deleted)
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-90.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.7-1.fc16.x86_64 #1 SMP Mon
:                              Jul 30 16:37:23 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012年08月17日 星期五 19时12分18秒
:Last Seen                     2012年08月17日 星期五 19时12分18秒
:Local ID                      3862bdf9-69f1-4134-bd71-21bed165c934
:
:Raw Audit Messages
:type=AVC msg=audit(1345201938.880:155): avc:  denied  { getattr } for  pid=8967 comm="Chrome_ChildIOT" path="/media/Union/PLAY/Picture/L78Z/suse.jpg" dev="sda5" ino=22512 scontext=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fusefs_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1345201938.880:155): arch=x86_64 syscall=fstat success=yes exit=0 a0=1f a1=7f2c40006260 a2=7f2c40006260 a3=1 items=0 ppid=2 pid=8967 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=3 comm=Chrome_ChildIOT exe=2F6F70742F676F6F676C652F6368726F6D652F6368726F6D65202864656C6574656429 subj=unconfined_u:unconfined_r:chrome_sandbox_t:s0-s0:c0.c1023 key=(null)
:
:Hash: Chrome_ChildIOT,chrome_sandbox_t,fusefs_t,file,getattr
:
:audit2allow
:
:#============= chrome_sandbox_t ==============
:#!!!! This avc can be allowed using the boolean 'use_fusefs_home_dirs'
:
:allow chrome_sandbox_t fusefs_t:file getattr;
:
:audit2allow -R
:
:#============= chrome_sandbox_t ==============
:#!!!! This avc can be allowed using the boolean 'use_fusefs_home_dirs'
:
:allow chrome_sandbox_t fusefs_t:file getattr;
:

Comment 1 Miroslav Grepl 2012-08-22 13:22:05 UTC
You can allow it using

setsebool -P use_fusefs_home_dirs 1