Bug 672025 - SELinux is preventing /usr/lib/cups/filter/pstops from 'read' accesses on the file /etc/cups/ppd/LaserJet.ppd.
Summary: SELinux is preventing /usr/lib/cups/filter/pstops from 'read' accesses on the...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:0167f94f361...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-23 10:17 UTC by Erik P. Olsen
Modified: 2011-05-15 10:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-24 15:42:54 UTC
Type: ---


Attachments (Terms of Use)

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


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