Bug 699048

Summary: SELinux is preventing /usr/sbin/cupsd from 'execute' accesses on the arquivo /usr/lib/cups/filter/rastertosamsungsplc.
Product: [Fedora] Fedora Reporter: aironmcphee
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: bobgus, dwalsh, info, larieu, mgrepl, protowouter, ricky, vincent.passaro
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:2ceda2789a72778d63c85bca92f4bc2341af9f4c478c4025a84a4d99619d045f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-25 13:45:02 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 aironmcphee 2011-04-22 19:30:05 UTC
SELinux is preventing /usr/sbin/cupsd from 'execute' accesses on the arquivo /usr/lib/cups/filter/rastertosamsungsplc.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that cupsd should be allowed execute access on the rastertosamsungsplc 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                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/rastertosamsungsplc [ file ]
Source                        cupsd
Source Path                   /usr/sbin/cupsd
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           cups-1.4.6-15.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-16.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP
                              Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64
Alert Count                   53
First Seen                    Qua 13 Abr 2011 14:29:09 BRT
Last Seen                     Sex 22 Abr 2011 16:08:08 BRT
Local ID                      564a85fe-60e0-4a6f-9fad-76280d23394c

Raw Audit Messages
type=AVC msg=audit(1303499288.14:23): avc:  denied  { execute } for  pid=1150 comm="cupsd" name="rastertosamsungsplc" dev=dm-1 ino=18090 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(1303499288.14:23): arch=x86_64 syscall=access success=no exit=EACCES a0=7fff52de0540 a1=1 a2=0 a3=7ffa0ecb0fd0 items=0 ppid=1029 pid=1150 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=cupsd exe=/usr/sbin/cupsd subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: cupsd,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 Daniel Walsh 2011-04-25 13:44:51 UTC
restorecon -R -v /usr/lib/cups/filter/rastertosamsungsplc