Bug 160276
Summary: | fontconfig global user cache should be in its own directory | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ivan Gyurdiev <ivg231> |
Component: | fontconfig | Assignee: | Ray Strode [halfline] <rstrode> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | dwalsh, marius.andreiana, sdsmall |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-02-03 20:16:43 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: | |||
Bug Depends On: | |||
Bug Blocks: | 150222 |
Description
Ivan Gyurdiev
2005-06-14 02:02:59 UTC
By font cache I am referring to the per user cache, automatically managed by libfontconfig. What is the status of this bug? SELinux strict policy currently requires that the font cache be moved to work properly. Without this change, programs are not allowed to read or write the font cache. Ivan, would it be enough to add <cache>~/.fonts/local.cache</cache> to /etc/fonts/fonts.conf ? It needs to be a directory by itself, or it can't get auto-labeled properly. If you put it in .fonts, SElinux can't tell it apart from other files in there (fonts?). If it goes in a subdirectory, we can create the subdirectory ahead of time, and label it as the font cache directory. Then programs can be granted the right to write to the font cache directory, but not the right to write to fonts. Steven, does this sound right? I'm not sure if it's okay or not to let programs write to .fonts, but I'm pretty sure we don't want to let random programs write to $HOME just to make use of this cache. Okay so we'll just need to create a ~/.fc-cache or something and throw it there. Hi Ivan, This should be fixed in tomorrow's rawhide, I think. It is now stored in ~/.rh-fontconfig/fonts.cache-2 |