Bug 1413344

Summary: SELinux is preventing tumblerd from 'write' accesses on the directory normal.
Product: [Fedora] Fedora Reporter: Ildar Akhmetgaleev <akhilman>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8b893e94bd27cade70948ede415aac26a5716cf093fdef6e30623c65c366be88;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-20 04:12:13 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 Ildar Akhmetgaleev 2017-01-15 06:47:01 UTC
Description of problem:
Start xfce4's thunar and go to directory with images
No thumbnails will appear. And this notification by SELinux.
SELinux is preventing tumblerd from 'write' accesses on the directory normal.

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

If you believe that tumblerd should be allowed write access on the normal directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'tumblerd' --raw | audit2allow -M my-tumblerd
# semodule -X 300 -i my-tumblerd.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                normal [ dir ]
Source                        tumblerd
Source Path                   tumblerd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.6.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.16-300.fc25.x86_64 #1 SMP Fri
                              Jan 6 18:11:49 UTC 2017 x86_64 x86_64
Alert Count                   8
First Seen                    2017-01-15 13:31:25 +07
Last Seen                     2017-01-15 13:42:59 +07
Local ID                      253d492c-aafb-4675-8fcf-fd97ab82e390

Raw Audit Messages
type=AVC msg=audit(1484462579.421:264): avc:  denied  { write } for  pid=2655 comm="pool" name="normal" dev="dm-0" ino=751475 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: tumblerd,thumb_t,user_home_t,dir,write

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.16-300.fc25.x86_64
type:           libreport

Comment 1 Ildar Akhmetgaleev 2017-01-20 04:12:13 UTC
Problem solved by resetting selinux policies to factory defaults and resetting labels.