Bug 140079 - php-gd can't find fonts
Summary: php-gd can't find fonts
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-19 17:11 UTC by Joe Orton
Modified: 2007-11-30 22:10 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2004-12-06 20:51:05 UTC


Attachments (Terms of Use)
php-gd test script (1.10 KB, text/plain)
2004-11-19 17:12 UTC, Joe Orton
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.