Bug 994014 - SELinux is preventing /usr/bin/gs from 'open' accesses on the file /usr/share/fonts/msttcorefonts/georgiab.ttf.
SELinux is preventing /usr/bin/gs from 'open' accesses on the file /usr/share...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-08-06 09:49 EDT by Keith Drummond
Modified: 2013-08-08 08:25 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-08 08:25:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Keith Drummond 2013-08-06 09:49:04 EDT
Description of problem:
I was setting up a printer on my fresh Fedora 19 install, a Kodak ESP 3.2, I went to print a test-page but got a serier of security alerts instead.

I am new to Fedora but if you require any further information just tell me how to get it.
SELinux is preventing /usr/bin/gs from 'open' accesses on the file /usr/share/fonts/msttcorefonts/georgiab.ttf.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/usr/share/fonts/msttcorefonts/georgiab.ttf default label should be fonts_t.
Then you can run restorecon.
# /sbin/restorecon -v /usr/share/fonts/msttcorefonts/georgiab.ttf

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that gs should be allowed open access on the georgiab.ttf file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
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/georgiab.ttf [ file
Source                        gs
Source Path                   /usr/bin/gs
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ghostscript-9.07-10.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-69.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.10.4-300.fc19.x86_64 #1 SMP Tue
                              Jul 30 11:29:05 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-08-06 14:34:07 IST
Last Seen                     2013-08-06 14:35:23 IST
Local ID                      20b66fa1-fdf9-493a-a2e1-0d739c628933

Raw Audit Messages
type=AVC msg=audit(1375796123.182:471): avc:  denied  { open } for  pid=6862 comm="gs" path="/usr/share/fonts/msttcorefonts/georgiab.ttf" dev="dm-0" ino=2242204 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(1375796123.182:471): arch=x86_64 syscall=open success=yes exit=ECHILD a0=130d888 a1=0 a2=1b6 a3=3 items=0 ppid=6859 pid=6862 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 ses=4294967295 tty=(none) 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

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.4-300.fc19.x86_64
type:           libreport

Potential duplicate: bug 880348
Comment 1 Miroslav Grepl 2013-08-08 08:25:48 EDT
Please execute

# restorecon -R -v /usr/share/fonts/msttcorefonts

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