Bug 675086 - SELinux is preventing /usr/sbin/cupsd from 'open' accesses on the file /usr/lib/cups/filter/rastertosamsungsplc.
Summary: SELinux is preventing /usr/sbin/cupsd from 'open' accesses on the file /usr/l...
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:e155595edc0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-04 09:09 UTC by Lari Tanase
Modified: 2011-02-04 14:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-04 14:55:46 UTC
Type: ---


Attachments (Terms of Use)

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.


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