Bug 675027 - SELinux is preventing /usr/sbin/cupsd from 'read' accesses on the file CLP-610-1200x1200cms2.
Summary: SELinux is preventing /usr/sbin/cupsd from 'read' accesses on the file CLP-61...
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:56bd1f28933...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-03 23:11 UTC by Lari Tanase
Modified: 2012-01-16 23:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-04 08:32:54 UTC
Type: ---


Attachments (Terms of Use)

Description Lari Tanase 2011-02-03 23:11:27 UTC
SELinux is preventing /usr/sbin/cupsd from 'read' accesses on the file CLP-610-1200x1200cms2.

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

If you believe that cupsd should be allowed read access on the CLP-610-1200x1200cms2 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                CLP-610-1200x1200cms2 [ 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                   12
First Seen                    Fri 04 Feb 2011 12:09:59 AM CET
Last Seen                     Fri 04 Feb 2011 12:10:01 AM CET
Local ID                      eec93179-252f-4ddf-9557-37f9beecb128

Raw Audit Messages
type=AVC msg=audit(1296774601.108:22004): avc:  denied  { read } for  pid=23509 comm="cups-driverd" name="CLP-610-1200x1200cms2" dev=dm-0 ino=1705956 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(1296774601.108:22004): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff1aba5a00 a1=0 a2=0 a3=7fff1aba38c0 items=0 ppid=23495 pid=23509 auid=500 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=1 comm=cups-driverd exe=/usr/lib/cups/daemon/cups-driverd subj=unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: cupsd,cupsd_t,user_home_t,file,read

audit2allow

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

audit2allow -R

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

Comment 1 Miroslav Grepl 2011-02-04 08:32:54 UTC
Where is the "CLP-610-1200x1200cms2" file located. You need to run restorecon on this file

# restorecon -R -v PATHTO/CLP-610-1200x1200cms2

Should fix.


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