Bug 854862

Summary: SELinux is preventing /usr/bin/evolution from 'write' accesses on the directory /home/mitja/.thumbnails/fail/gnome-thumbnail-factory.
Product: [Fedora] Fedora Reporter: glihaenator
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:596bdea9ab47b55ef9224f3ba2c7bdb22ed4da86c726f8d168301e17a2ddbd9e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-14 08:12:10 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description glihaenator 2012-09-06 07:45:26 UTC
Additional info:
libreport version: 2.0.13
kernel:         3.5.3-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/evolution from 'write' accesses on the directory /home/mitja/.thumbnails/fail/gnome-thumbnail-factory.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that evolution should be allowed write access on the gnome-thumbnail-factory 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 evolution /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c
:                              0.c1023
:Target Context                unconfined_u:object_r:thumb_home_t:s0
:Target Objects                /home/mitja/.thumbnails/fail/gnome-thumbnail-
:                              factory [ dir ]
:Source                        evolution
:Source Path                   /usr/bin/evolution
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           evolution-3.4.4-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-146.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug
:                              29 18:46:34 UTC 2012 x86_64 x86_64
:Alert Count                   11
:First Seen                    2012-09-06 09:39:45 CEST
:Last Seen                     2012-09-06 09:40:13 CEST
:Local ID                      1aba207d-0c78-439e-a3a9-656f2352d5ac
:
:Raw Audit Messages
:type=AVC msg=audit(1346917213.5:101): avc:  denied  { write } for  pid=2510 comm="evolution" name="gnome-thumbnail-factory" dev="dm-2" ino=25952432 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:thumb_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1346917213.5:101): arch=x86_64 syscall=open success=no exit=EACCES a0=ffdb90 a1=c2 a2=180 a3=19 items=0 ppid=1 pid=2510 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=evolution exe=/usr/bin/evolution subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)
:
:Hash: evolution,mozilla_plugin_t,thumb_home_t,dir,write
:
:audit2allow
:
:#============= mozilla_plugin_t ==============
:#!!!! The source type 'mozilla_plugin_t' can write to a 'dir' of the following types:
:# mozilla_home_t, admin_home_t, user_home_dir_t, mozilla_plugin_tmp_t, tmpfs_t, tmp_t, user_fonts_cache_t, user_tmp_t, mozilla_plugin_tmpfs_t, user_home_t, pulseaudio_home_t, data_home_t, gnome_home_type, xdm_tmp_t, gconf_home_t, home_cert_t, gnome_home_t
:
:allow mozilla_plugin_t thumb_home_t:dir write;
:
:audit2allow -R
:
:#============= mozilla_plugin_t ==============
:#!!!! The source type 'mozilla_plugin_t' can write to a 'dir' of the following types:
:# mozilla_home_t, admin_home_t, user_home_dir_t, mozilla_plugin_tmp_t, tmpfs_t, tmp_t, user_fonts_cache_t, user_tmp_t, mozilla_plugin_tmpfs_t, user_home_t, pulseaudio_home_t, data_home_t, gnome_home_type, xdm_tmp_t, gconf_home_t, home_cert_t, gnome_home_t
:
:allow mozilla_plugin_t thumb_home_t:dir write;
:

Comment 1 glihaenator 2012-09-06 07:45:31 UTC
Created attachment 610202 [details]
File: type

Comment 2 glihaenator 2012-09-06 07:46:01 UTC
Created attachment 610204 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-09-06 20:59:12 UTC
Are you running evolution as a mozilla plugin?

Comment 4 Miroslav Grepl 2012-09-14 08:12:10 UTC
It looks so. If yes, you can either remove the mozplugger package by executing 

# yum remove mozplugger 

or you can turn off the unconfined_mozilla_plugin_transition boolean using 

# setsebool -P unconfined_mozilla_plugin_transition 0


If I am wrong, please reopen the bug. Thank you.