Bug 862147

Summary: SELinux is preventing /usr/bin/convert from 'unlink' accesses on the file magickIYUUr4.
Product: [Fedora] Fedora Reporter: D. Charles Pyle <dcharlespyle>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:685fab5b6bc162f71fe6272bd49b20c257981d565794d1f05664ca51113c0c22
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-09 16:52:56 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 D. Charles Pyle 2012-10-02 04:05:52 UTC
Description of problem:
Got this warning in abrt. I was not doing anything at the time it happened other than browsing the file system with Nautilus.

Additional info:
libreport version: 2.0.14
kernel:         3.6.0-0.rc7.git1.4.fc18.x86_64

description:
:SELinux is preventing /usr/bin/convert from 'unlink' accesses on the file magickIYUUr4.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that convert should be allowed unlink access on the magickIYUUr4 file 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 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                magickIYUUr4 [ file ]
:Source                        convert
:Source Path                   /usr/bin/convert
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           ImageMagick-6.7.7.5-3.fc18.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.11.1-25.fc18.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.0-0.rc7.git1.4.fc18.x86_64 #1
:                              SMP Tue Sep 25 19:55:25 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-10-01 22:03:55 MDT
:Last Seen                     2012-10-01 22:03:55 MDT
:Local ID                      3772c54d-e276-4633-95cf-42651c1c28b6
:
:Raw Audit Messages
:type=AVC msg=audit(1349150635.829:179): avc:  denied  { unlink } for  pid=10759 comm="convert" name="magickIYUUr4" dev="dm-1" ino=393710 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(1349150635.829:179): arch=x86_64 syscall=unlink success=yes exit=0 a0=10eed90 a1=c2 a2=0 a3=7fffefc2ae60 items=0 ppid=10745 pid=10759 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=10 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,unlink
:
:audit2allow
:
:#============= thumb_t ==============
:allow thumb_t user_home_dir_t:file unlink;
:
:audit2allow -R
:
:#============= thumb_t ==============
:allow thumb_t user_home_dir_t:file unlink;
:

Comment 1 D. Charles Pyle 2012-10-02 04:05:54 UTC
Created attachment 620110 [details]
File: type

Comment 2 D. Charles Pyle 2012-10-02 04:05:56 UTC
Created attachment 620111 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-10-09 16:52:56 UTC
This looks like you have a badly mislabeled homedir.

restorecon -R -v /home