Bug 1335647

Summary: SELinux is preventing totem-video-thu from 'write' accesses on the directory .cache.
Product: [Fedora] Fedora Reporter: Sam <zyxsamys>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, tomibottellig, xzj8b3
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d7a44e394c412974f0fced33206cafc9400f791d55408feaabf071af45c93374;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-20 13:24:39 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 Sam 2016-05-12 18:44:47 UTC
Description of problem:
SELinux is preventing totem-video-thu from 'write' accesses on the directory .cache.

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

If cree que de manera predeterminada, totem-video-thu debería permitir acceso write sobre .cache directory.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
allow this access for now by executing:
# ausearch -c totem-video-thu --raw | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                system_u:object_r:admin_home_t:s0
Target Objects                .cache [ dir ]
Source                        totem-video-thu
Source Path                   totem-video-thu
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-182.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.5.2-302.fc24.x86_64 #1 SMP Wed
                              Apr 27 14:22:29 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-05-12 13:37:18 CDT
Last Seen                     2016-05-12 13:37:18 CDT
Local ID                      03220c56-98d3-4cf6-aab4-f316dcf94e2d

Raw Audit Messages
type=AVC msg=audit(1463078238.31:359): avc:  denied  { write } for  pid=3199 comm="totem-video-thu" name=".cache" dev="dm-0" ino=2097160 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=dir permissive=0


Hash: totem-video-thu,thumb_t,admin_home_t,dir,write

Version-Release number of selected component:
selinux-policy-3.13.1-182.fc24.noarch

Additional info:
reporter:       libreport-2.7.0
hashmarkername: setroubleshoot
kernel:         4.5.2-302.fc24.x86_64
reproducible:   Not sure how to reproduce the problem
type:           libreport

Potential duplicate: bug 844924

Comment 1 Lukas Vrabec 2016-05-20 13:24:39 UTC
You really should not be running nautilus as root, as this shows you have processes running as root based on the content of some CD or USB Stick.