Bug 560489

Summary: SELinux is preventing /usr/bin/pdftops "setattr" access on /var/cache/fontconfig.
Product: [Fedora] Fedora Reporter: Art Self <art>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, gregoryswan1985, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:01d930c019fed5e604d3a549dbd4515de353911cdcfaf8f6fd0613751ca3a175
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-01 15:38:45 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:

Description Art Self 2010-01-31 22:38:45 UTC
Summary:

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

Detailed Description:

SELinux denied access requested by pdftops. It is not expected that this access
is required by pdftops 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://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:fonts_cache_t:s0
Target Objects                /var/cache/fontconfig [ dir ]
Source                        pdftops
Source Path                   /usr/bin/pdftops
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           poppler-utils-0.12.2-1.fc12
Target RPM Packages           fontconfig-2.8.0-1.fc12
Policy RPM                    selinux-policy-3.6.32-73.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.3.fc12.i686 #1 SMP
                              Mon Jan 18 20:22:46 UTC 2010 i686 athlon
Alert Count                   1
First Seen                    Sun 31 Jan 2010 04:00:54 PM CST
Last Seen                     Sun 31 Jan 2010 04:00:54 PM CST
Local ID                      2401538b-8a52-4cd6-a52c-e0feba2fcfe1
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264975254.893:180): avc:  denied  { setattr } for  pid=21327 comm="pdftops" name="fontconfig" dev=dm-0 ino=11253 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fonts_cache_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1264975254.893:180): arch=40000003 syscall=15 success=no exit=-13 a0=8a83588 a1=1ed a2=15f1a8 a3=8a83588 items=0 ppid=21324 pid=21327 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="pdftops" exe="/usr/bin/pdftops" subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-73.fc12,catchall,pdftops,cupsd_t,fonts_cache_t,dir,setattr
audit2allow suggests:

#============= cupsd_t ==============
allow cupsd_t fonts_cache_t:dir setattr;

Comment 1 Miroslav Grepl 2010-02-01 15:38:45 UTC

*** This bug has been marked as a duplicate of bug 557913 ***