Bug 1333174

Summary: SELinux is preventing totem-video-thu from 'write' accesses on the directory .cache.
Product: [Fedora] Fedora Reporter: Christopher Beland <beland>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 23CC: beland, dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d2f6e833bb53226303927f293c43cc1d062797201fad15fe199b2eb1c2e2b9e1;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-06 16:32: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:
Embargoed:

Description Christopher Beland 2016-05-04 20:42:38 UTC
Description of problem:
Not sure why this is happening; it seemed to occur when I started Nautilus and browsed through some files.
SELinux is preventing totem-video-thu from 'write' accesses on the directory .cache.

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

If you believe that totem-video-thu should be allowed write access on the .cache 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:
# 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                unconfined_u:object_r:user_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-158.14.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.8-300.fc23.x86_64 #1 SMP Wed
                              Apr 20 16:59:27 UTC 2016 x86_64 x86_64
Alert Count                   15
First Seen                    2016-05-04 16:36:33 EDT
Last Seen                     2016-05-04 16:36:49 EDT
Local ID                      3960721b-b5c7-48d8-9702-d815915f66f3

Raw Audit Messages
type=AVC msg=audit(1462394209.228:1646): avc:  denied  { write } for  pid=26302 comm="totem-video-thu" name=".cache" dev="sda1" ino=17435318 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir permissive=0


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

Version-Release number of selected component:
selinux-policy-3.13.1-158.14.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.8-300.fc23.x86_64
type:           libreport

Potential duplicate: bug 820860

Comment 1 Miroslav Grepl 2016-05-05 07:14:21 UTC
Could you try to execute

$ restorecon -R -v ~/


It will fix labeling for your homedir if there are labeling issues.

Comment 2 Christopher Beland 2016-07-20 19:01:42 UTC
Ran that, doesn't seem to be having problems now.  Thanks!