Bug 880348

Summary: SELinux is preventing /usr/bin/gs from 'open' accesses on the file /usr/share/fonts/msttcorefonts/couri.ttf.
Product: [Fedora] Fedora Reporter: Robert Kief <robert.l.kief>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:53ecb403e64748d1cf3b007f6cfb997fb799892807b4718ce2a74ca27d5f28ed
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-27 15:57:04 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 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