Bug 704969 - SELinux is preventing /usr/sbin/cupsd from read, open access on the file /usr/lib/cups/filter/rastertosamsungspl.
Summary: SELinux is preventing /usr/sbin/cupsd from read, open access on the file /usr...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:869ff92f3a5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-16 08:14 UTC by Jon Senior
Modified: 2011-05-16 08:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-16 08:51:13 UTC
Type: ---


Attachments (Terms of Use)

Description Jon Senior 2011-05-16 08:14:21 UTC
----- Note ------
Problem is created when using Samsung Unified Driver to provide printer driver for ML-1640 (and presumably other) printers.

SELinux is preventing /usr/sbin/cupsd from read, open access on the file /usr/lib/cups/filter/rastertosamsungspl.

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

If you want to fix the label. 
/usr/lib/cups/filter/rastertosamsungspl default label should be bin_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /usr/lib/cups/filter/rastertosamsungspl

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

If you believe that cupsd should be allowed read open access on the rastertosamsungspl 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 cupsd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                /usr/lib/cups/filter/rastertosamsungspl [ file ]
Source                        cupsd
Source Path                   /usr/sbin/cupsd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           cups-1.4.6-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.i686 #1 SMP Tue
                              May 3 13:36:36 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Mon 16 May 2011 09:58:21 CEST
Last Seen                     Mon 16 May 2011 09:58:21 CEST
Local ID                      97e082c6-a88b-4c99-a145-fbae5f6e408e

Raw Audit Messages
type=AVC msg=audit(1305532701.757:28487): avc:  denied  { read open } for  pid=15606 comm="cupsd" name="rastertosamsungspl" dev=dm-0 ino=71583 scontext=unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1305532701.757:28487): arch=i386 syscall=execve success=no exit=EACCES a0=bff51c16 a1=27bdf20 a2=bff5051c a3=bff51c16 items=0 ppid=25670 pid=15606 auid=500 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=1 comm=cupsd exe=/usr/sbin/cupsd subj=unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: cupsd,cupsd_t,user_home_t,file,read,open

audit2allow

#============= cupsd_t ==============
allow cupsd_t user_home_t:file { read open };

audit2allow -R

#============= cupsd_t ==============
allow cupsd_t user_home_t:file { read open };

Comment 1 Miroslav Grepl 2011-05-16 08:51:13 UTC
*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/usr/lib/cups/filter/rastertosamsungspl default label should be bin_t.
Then you can run restorecon.
Do

# /sbin/restorecon -v /usr/lib/cups/filter/rastertosamsungspl


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