Bug 553663 - SELinux is preventing /usr/bin/gs "setattr" access on /var/cache/fontconfig.
Summary: SELinux is preventing /usr/bin/gs "setattr" access on /var/cache/fontconfig.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2ac606e9701...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-08 15:56 UTC by Thomas Michael Edwards
Modified: 2010-01-19 19:41 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-69.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-19 19:41:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas Michael Edwards 2010-01-08 15:56:10 UTC
Summary:

SELinux is preventing /usr/bin/gs "setattr" access on /var/cache/fontconfig.

Detailed Description:

[gs has a permissive type (cups_pdf_t). This access was not denied.]

SELinux denied access requested by gs. It is not expected that this access is
required by gs and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:cups_pdf_t:s0-s0:c0.c1023
Target Context                system_u:object_r:fonts_t:s0
Target Objects                /var/cache/fontconfig [ dir ]
Source                        gs
Source Path                   /usr/bin/gs
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ghostscript-8.70-1.fc12
Target RPM Packages           fontconfig-2.8.0-1.fc12
Policy RPM                    selinux-policy-3.6.32-63.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux fedora64-vbox.motoslave.net
                              2.6.31.9-174.fc12.x86_64 #1 SMP Mon Dec 21
                              05:33:33 UTC 2009 x86_64 x86_64
Alert Count                   1
First Seen                    Thu 07 Jan 2010 08:23:13 PM CST
Last Seen                     Thu 07 Jan 2010 08:23:13 PM CST
Local ID                      79d45b0e-5bbe-4a46-a178-eae79c72948a
Line Numbers                  

Raw Audit Messages            

node=fedora64-vbox.motoslave.net type=AVC msg=audit(1262917393.931:92): avc:  denied  { setattr } for  pid=6187 comm="gs" name="fontconfig" dev=dm-0 ino=114746 scontext=unconfined_u:system_r:cups_pdf_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fonts_t:s0 tclass=dir

node=fedora64-vbox.motoslave.net type=SYSCALL msg=audit(1262917393.931:92): arch=c000003e syscall=90 success=yes exit=4294967424 a0=15b0b20 a1=1ed a2=d a3=7fff74559710 items=0 ppid=6186 pid=6187 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="gs" exe="/usr/bin/gs" subj=unconfined_u:system_r:cups_pdf_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-63.fc12,catchall,gs,cups_pdf_t,fonts_t,dir,setattr
audit2allow suggests:
audit2allow is not installed.

Comment 1 Daniel Walsh 2010-01-08 17:00:57 UTC
Miroslov please add,

########################################
## <summary>
##	Set the attributes on a fonts cache directory.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
## <rolecap/>
#
interface(`miscfiles_setattr_fonts_cache_dirs',`
	gen_require(`
		type fonts_cache_t;
	')

	allow $1 fonts_cache_t:dir setattr;
')

miscfiles_setattr_fonts_cache_dirs(cupsd_lpd_t)

Comment 2 Miroslav Grepl 2010-01-08 19:03:24 UTC
Fixed in selinux-policy-3.6.32-68.fc12.noarch

Comment 3 Fedora Update System 2010-01-12 23:28:14 UTC
selinux-policy-3.6.32-69.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0362

Comment 4 Fedora Update System 2010-01-19 19:41:02 UTC
selinux-policy-3.6.32-69.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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