Bug 140079

Summary: php-gd can't find fonts
Product: [Fedora] Fedora Reporter: Joe Orton <jorton>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-06 20:51:05 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
php-gd test script none

Description Joe Orton 2004-11-19 17:11:37 UTC
I'll attach my stock php-gd test script, it's broken with SELinux
because it can't find fonts:

audit(1100884417.855:0): avc:  denied  { search } for  pid=5177
exe=/usr/sbin/httpd name=fonts dev=md0 ino=1799276
scontext=root:system_r:httpd_t tcontext=system_u:object_r:fonts_t
tclass=dir

selinux-policy-targeted-1.19.1-9

Comment 1 Joe Orton 2004-11-19 17:12:57 UTC
Created attachment 107065 [details]
php-gd test script

install as /var/www/html/img.php and load http://localhost/img.php, expect to
see pretty text

Comment 2 Daniel Walsh 2004-11-19 20:23:44 UTC
Fixed in selinux-policy-targeted-1.19.3-1 and
selinux-policy-targeted-1.17.30-2.32

Comment 3 Joe Orton 2004-12-06 20:51:05 UTC
Confirmed fixed with selinux-policy-targeted-1.17.30-2.35, thanks.