Bug 830411

Summary: SELinux is preventing /usr/bin/convert from 'create' accesses on the file magickWQs5br.
Product: [Fedora] Fedora Reporter: José Luis Prieto <jlpries69>
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, pahan, renich
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:11d0bc0b999bc0945db632793fa8a7563c77f23242caff0a6dcb79cf8765f466
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-11 12:36:28 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 José Luis Prieto 2012-06-09 10:01:11 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.0-1.fc17.i686.PAE
time:           sáb 09 jun 2012 12:00:52 CEST

description:
:SELinux is preventing /usr/bin/convert from 'create' accesses on the file magickWQs5br.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If cree que de manera predeterminada, convert debería permitir acceso create sobre  magickWQs5br file.     
:Then debería reportar esto como un error.
:Puede generar un módulo de política local para permitir este acceso.
:Do
:permita el acceso momentáneamente executando:
:# grep convert /var/log/audit/audit.log | 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_dir_t:s0
:Target Objects                magickWQs5br [ file ]
:Source                        convert
:Source Path                   /usr/bin/convert
:Port                          <Desconocido>
:Host                          (removed)
:Source RPM Packages           ImageMagick-6.7.5.6-3.fc17.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.0-1.fc17.i686.PAE
:                              #1 SMP Sun Jun 3 06:54:54 UTC 2012 i686 i686
:Alert Count                   128
:First Seen                    sáb 09 jun 2012 11:55:46 CEST
:Last Seen                     sáb 09 jun 2012 11:56:56 CEST
:Local ID                      7fb771cd-f729-4cf2-bc11-e584c9085d05
:
:Raw Audit Messages
:type=AVC msg=audit(1339235816.725:266): avc:  denied  { create } for  pid=3715 comm="convert" name="magickWQs5br" scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1339235816.725:266): arch=i386 syscall=open success=no exit=EACCES a0=9e88b80 a1=80c2 a2=180 a3=72c07 items=0 ppid=3687 pid=3715 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=convert exe=/usr/bin/convert subj=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 key=(null)
:
:Hash: convert,thumb_t,user_home_dir_t,file,create
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-06-11 12:36:28 UTC
Try to execute

# restorecon -R -v ~/

to see if it fixes the issue. If no, please reopen the bug. Thank you.

Comment 2 Miroslav Grepl 2013-08-27 12:52:01 UTC
*** Bug 999943 has been marked as a duplicate of this bug. ***