Bug 675086

Summary: SELinux is preventing /usr/sbin/cupsd from 'open' accesses on the file /usr/lib/cups/filter/rastertosamsungsplc.
Product: [Fedora] Fedora Reporter: Lari Tanase <larieu>
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
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e155595edc0a5463a3c90e959715e48eac11c4e3977b07a463895dc2db488825
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-04 14:55:46 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 Lari Tanase 2011-02-04 09:09:17 UTC
SELinux is preventing /usr/sbin/cupsd from 'open' accesses on the file /usr/lib/cups/filter/rastertosamsungsplc.

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

If you believe that cupsd should be allowed open 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                          <Unknown>
Host                          (removed)
Source RPM Packages           cups-1.4.6-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-25.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                   87
First Seen                    Fri 04 Feb 2011 01:04:54 AM CET
Last Seen                     Fri 04 Feb 2011 09:03:44 AM CET
Local ID                      8c13354e-ecb4-42b4-9cca-74708d5fc65c

Raw Audit Messages
type=AVC msg=audit(1296806624.972:29118): avc:  denied  { open } for  pid=30405 comm="cupsd" name="rastertosamsungsplc" dev=dm-0 ino=10186 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(1296806624.972:29118): arch=x86_64 syscall=execve success=no exit=EACCES a0=7fff5d909640 a1=7f31e5cc4160 a2=7fff5d907cc0 a3=7fff5d907790 items=0 ppid=1375 pid=30405 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 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,open

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-02-04 14:55:46 UTC
Looks like you have a labeling issue.

restorecon -R -v /usr/lib/cups

You have a file that was created in the home directory and moved to the system directory you have to fix the label.