Bug 560220

Summary: SELinux is preventing /usr/lib/cups/backend/cups-pdf "fowner" access.
Product: [Fedora] Fedora Reporter: Mircea Sava <msava>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:19574d4f7fb65fda240f47b6a6624bbe3c7beb2d29ad3fb5187b12e60e9b5ef1
Fixed In Version: 3.6.32-84.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-11 14:41:33 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 Mircea Sava 2010-01-30 13:20:26 UTC
Summary:

SELinux is preventing /usr/lib/cups/backend/cups-pdf "fowner" access.

Detailed Description:

SELinux denied access requested by cups-pdf. It is not expected that this access
is required by cups-pdf 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:cups_pdf_t:s0-s0:c0.c1023
Target Context                system_u:system_r:cups_pdf_t:s0-s0:c0.c1023
Target Objects                None [ capability ]
Source                        cups-pdf
Source Path                   /usr/lib/cups/backend/cups-pdf
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           cups-pdf-2.5.0-3.fc12
Target RPM Packages           
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.PAE #1 SMP Mon Jan 18
                              20:06:44 UTC 2010 i686 athlon
Alert Count                   5
First Seen                    Sat 30 Jan 2010 03:05:06 PM EET
Last Seen                     Sat 30 Jan 2010 03:08:05 PM EET
Local ID                      975fe6d3-efa1-4c02-a69c-eb28a2645d0b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264856885.531:5335): avc:  denied  { fowner } for  pid=3075 comm="cups-pdf" capability=3 scontext=system_u:system_r:cups_pdf_t:s0-s0:c0.c1023 tcontext=system_u:system_r:cups_pdf_t:s0-s0:c0.c1023 tclass=capability

node=(removed) type=SYSCALL msg=audit(1264856885.531:5335): arch=40000003 syscall=10 success=no exit=-1 a0=84bb318 a1=84bb340 a2=180 a3=84ba520 items=0 ppid=1073 pid=3075 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="cups-pdf" exe="/usr/lib/cups/backend/cups-pdf" subj=system_u:system_r:cups_pdf_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-73.fc12,catchall,cups-pdf,cups_pdf_t,cups_pdf_t,capability,fowner
audit2allow suggests:

#============= cups_pdf_t ==============
allow cups_pdf_t self:capability fowner;

Comment 1 Daniel Walsh 2010-02-01 17:01:19 UTC
Miroslav add this acccess.

Comment 2 Miroslav Grepl 2010-02-01 19:24:03 UTC
Fixed in selinux-policy-3.6.32-80.fc12

Comment 3 Fedora Update System 2010-02-03 23:20:02 UTC
selinux-policy-3.6.32-82.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-82.fc12

Comment 4 Fedora Update System 2010-02-05 01:44:05 UTC
selinux-policy-3.6.32-84.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-1492

Comment 5 Fedora Update System 2010-02-11 14:36:46 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.