Bug 586332

Summary: SELinux is preventing /usr/lib/cups/daemon/cups-driverd "read" access on CLP-600-1200x600cms2.
Product: [Fedora] Fedora Reporter: Manoj Kumar Suyal <suyalmanoj>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, fcrulesf, keviand0112, lscfedora, mgrepl, rumaithy, sean, simon, suyalmanoj, vamem9z
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b38e105882697386018dfb443b95c571a449aa987163ec1a8a6bc1146bc27442
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-27 10:49:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Manoj Kumar Suyal 2010-04-27 10:40:16 UTC

SELinux is preventing /usr/lib/cups/daemon/cups-driverd "read" access on

Detailed Description:

SELinux denied access requested by cups-driverd. It is not expected that this
access is required by cups-driverd and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug

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-600-1200x600cms2 [ file ]
Source                        cups-driverd
Source Path                   /usr/lib/cups/daemon/cups-driverd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           cups-1.4.2-28.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-108.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) #1 SMP Mon Apr
                              5 16:32:08 EDT 2010 i686 i686
Alert Count                   338
First Seen                    Wed 21 Apr 2010 03:25:33 PM IST
Last Seen                     Wed 21 Apr 2010 04:30:55 PM IST
Local ID                      fc9516b2-1fca-4317-af21-69c305c4eb35
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1271847655.574:27393): avc:  denied  { read } for  pid=12790 comm="cups-driverd" name="CLP-600-1200x600cms2" dev=dm-0 ino=292943 scontext=unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1271847655.574:27393): arch=40000003 syscall=5 success=no exit=-13 a0=bfe7374c a1=8000 a2=0 a3=5799b3 items=0 ppid=11533 pid=12790 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 String generated from  catchall,cups-driverd,cupsd_t,user_home_t,file,read
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2010-04-27 10:49:23 UTC
Where is CLP-600-1200x600cms2 located? 

If this is not in a homedir it is labeled incorrectly and you can run
restorecon on it.  

If it is in the homedir, then please reopen this bugzilla.