Bug 672025

Summary: SELinux is preventing /usr/lib/cups/filter/pstops from 'read' accesses on the file /etc/cups/ppd/LaserJet.ppd.
Product: [Fedora] Fedora Reporter: Erik P. Olsen <erik>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl, nicolas.mailhot
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:0167f94f3619ac15a49f5b0f931c73ba3c855160091a6552fa1945ca93ffc22f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-24 15:42:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Erik P. Olsen 2011-01-23 10:17:03 UTC
SELinux is preventing /usr/lib/cups/filter/pstops from 'read' accesses on the file /etc/cups/ppd/LaserJet.ppd.

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

If you want to fix the label. 
/etc/cups/ppd/LaserJet.ppd default label should be cupsd_rw_etc_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/cups/ppd/LaserJet.ppd

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

If you believe that pstops should be allowed read access on the LaserJet.ppd 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 pstops /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                system_u:object_r:tmp_t:s0
Target Objects                /etc/cups/ppd/LaserJet.ppd [ file ]
Source                        pstops
Source Path                   /usr/lib/cups/filter/pstops
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           cups-1.4.6-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.x86_64
                              #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Sun 23 Jan 2011 07:26:51 CET
Last Seen                     Sun 23 Jan 2011 07:26:51 CET
Local ID                      f8791e1b-00a7-4131-b723-41ddf1198a2b

Raw Audit Messages
type=AVC msg=audit(1295764011.860:10956): avc:  denied  { read } for  pid=3388 comm="socket" name="LaserJet.ppd" dev=sdb13 ino=520513 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=file

pstops,cupsd_t,tmp_t,file,read
type=SYSCALL msg=audit(1295764011.860:10956): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffe0b37ecf a1=0 a2=0 a3=7fffe0b2aaf0 items=0 ppid=1879 pid=3388 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=socket exe=/usr/lib/cups/backend/socket subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)
pstops,cupsd_t,tmp_t,file,read

#============= cupsd_t ==============
allow cupsd_t tmp_t:file read;

Comment 1 Miroslav Grepl 2011-01-24 15:42:54 UTC
*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/etc/cups/ppd/LaserJet.ppd default label should be cupsd_rw_etc_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/cups/ppd/LaserJet.ppd