Bug 709154 - SELinux is preventing /usr/lib/cups/filter/rastertosamsungsplc from 'execute' accesses on the file /usr/lib/cups/filter/libscmssc.so.
Summary: SELinux is preventing /usr/lib/cups/filter/rastertosamsungsplc from 'execute'...
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:022f74d65ee...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-30 20:56 UTC by kaass5
Modified: 2011-05-31 06:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-31 06:51:25 UTC
Type: ---


Attachments (Terms of Use)

Description kaass5 2011-05-30 20:56:04 UTC
SELinux is preventing /usr/lib/cups/filter/rastertosamsungsplc from 'execute' accesses on the file /usr/lib/cups/filter/libscmssc.so.

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

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

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

If you believe that rastertosamsungsplc should be allowed execute access on the libscmssc.so 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 rastertosamsung /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                unconfined_u:object_r:user_home_t:s0
Target Objects                /usr/lib/cups/filter/libscmssc.so [ file ]
Source                        rastertosamsung
Source Path                   /usr/lib/cups/filter/rastertosamsungsplc
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
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.PAE #1 SMP
                              Tue May 3 13:29:55 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Mon 30 May 2011 02:11:03 PM EDT
Last Seen                     Mon 30 May 2011 02:11:03 PM EDT
Local ID                      2d44ab14-2a89-4b5f-bba0-66cbc8c631cd

Raw Audit Messages
type=AVC msg=audit(1306779063.824:682): avc:  denied  { execute } for  pid=4488 comm="rastertosamsung" path="/usr/lib/cups/filter/libscmssc.so" dev=dm-0 ino=58261 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1306779063.824:682): arch=i386 syscall=mmap2 per=400000 success=yes exit=7831552 a0=0 a1=164f24 a2=5 a3=802 items=0 ppid=1139 pid=4488 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=rastertosamsung exe=/usr/lib/cups/filter/rastertosamsungsplc subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: rastertosamsung,cupsd_t,user_home_t,file,execute

audit2allow

#============= cupsd_t ==============
allow cupsd_t user_home_t:file execute;

audit2allow -R

#============= cupsd_t ==============
allow cupsd_t user_home_t:file execute;

Comment 1 Dominick Grift 2011-05-30 21:04:38 UTC
This file was moved here from the user home directory. When you "mv" a file, you "mv" its context with it.

Cupsd_t is not allowed to read user home content.

Fix:

restorecon -R -v /usr/lib/cups/filter/libscmssc.so


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