Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 880348 - SELinux is preventing /usr/bin/gs from 'open' accesses on the file /usr/share/fonts/msttcorefonts/couri.ttf.
Summary: SELinux is preventing /usr/bin/gs from 'open' accesses on the file /usr/share...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:53ecb403e64748d1cf3b007f6cf...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-26 18:54 UTC by Robert Kief
Modified: 2012-11-27 15:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-27 15:57:04 UTC
Type: ---


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-26 18:54 UTC, Robert Kief
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-26 18:54 UTC, Robert Kief
no flags Details

Description Robert Kief 2012-11-26 18:54:44 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.7-4.fc17.x86_64

description:
:SELinux is preventing /usr/bin/gs from 'open' accesses on the file /usr/share/fonts/msttcorefonts/couri.ttf.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/usr/share/fonts/msttcorefonts/couri.ttf default label should be fonts_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /usr/share/fonts/msttcorefonts/couri.ttf
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that gs should be allowed open access on the couri.ttf 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 gs /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:user_tmp_t:s0
:Target Objects                /usr/share/fonts/msttcorefonts/couri.ttf [ file ]
:Source                        gs
:Source Path                   /usr/bin/gs
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           ghostscript-9.05-4.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.7-4.fc17.x86_64 #1 SMP Tue Nov
:                              20 19:40:01 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-11-26 12:47:07 CST
:Last Seen                     2012-11-26 12:47:07 CST
:Local ID                      96da0948-d8ba-4e8e-8462-63d6e9ce6918
:
:Raw Audit Messages
:type=AVC msg=audit(1353955627.644:106133): avc:  denied  { open } for  pid=29088 comm="gs" path="/usr/share/fonts/msttcorefonts/couri.ttf" dev="dm-1" ino=2110157 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1353955627.644:106133): arch=x86_64 syscall=open success=yes exit=ENXIO a0=1b1c028 a1=0 a2=1b6 a3=238 items=0 ppid=29085 pid=29088 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=gs exe=/usr/bin/gs subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: gs,cupsd_t,user_tmp_t,file,open
:
:audit2allow
:
:#============= cupsd_t ==============
:allow cupsd_t user_tmp_t:file open;
:
:audit2allow -R
:
:#============= cupsd_t ==============
:allow cupsd_t user_tmp_t:file open;
:

Comment 1 Robert Kief 2012-11-26 18:54:47 UTC
Created attachment 652186 [details]
File: type

Comment 2 Robert Kief 2012-11-26 18:54:48 UTC
Created attachment 652187 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-11-27 15:57:04 UTC
The alert tells you what to do.

restorecon -R -v /usr/share/fonts


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