Bug 654251

Summary: SELinux is preventing /bin/bash "search" access on /var/spool/cups.
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:77a5139557b26357518147f5b889378c0856b1c4d1dfd2742d65c2caf448326f
Fixed In Version: selinux-policy-3.9.7-12.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-21 22:00:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joachim Frieben 2010-11-17 10:38:29 UTC
Summary:

SELinux is preventing /bin/bash "search" access on /var/spool/cups.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by cups. It is not expected that this access is
required by cups 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
report.

Additional Information:

Source Context                system_u:system_r:system_cronjob_t:s0-s15:c0.c1023
Target Context                system_u:object_r:print_spool_t:s15:c0.c1023
Target Objects                /var/spool/cups [ dir ]
Source                        cups
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-3.fc14
Target RPM Packages           cups-1.4.4-11.fc14
Policy RPM                    selinux-policy-3.9.7-11.fc14
Selinux Enabled               True
Policy Type                   mls
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux banach 2.6.35.8-59.fc14.x86_64 #1 SMP Tue
                              Nov 16 03:32:03 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Wed 17 Nov 2010 11:23:18 AM CET
Last Seen                     Wed 17 Nov 2010 11:23:18 AM CET
Local ID                      c2ddf00d-29a4-4009-8433-05d79f94144b
Line Numbers                  

Raw Audit Messages            

node=banach type=AVC msg=audit(1289989398.642:32088): avc:  denied  { search } for  pid=9662 comm="cups" name="cups" dev=dm-3 ino=10730 scontext=system_u:system_r:system_cronjob_t:s0-s15:c0.c1023 tcontext=system_u:object_r:print_spool_t:s15:c0.c1023 tclass=dir

node=banach type=AVC msg=audit(1289989398.642:32088): avc:  denied  { getattr } for  pid=9662 comm="cups" path="/var/spool/cups/tmp" dev=dm-3 ino=10731 scontext=system_u:system_r:system_cronjob_t:s0-s15:c0.c1023 tcontext=system_u:object_r:print_spool_t:s15:c0.c1023 tclass=dir

node=banach type=SYSCALL msg=audit(1289989398.642:32088): arch=c000003e syscall=4 success=yes exit=0 a0=26493a0 a1=7fff37249970 a2=7fff37249970 a3=8 items=0 ppid=9299 pid=9662 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=19 comm="cups" exe="/bin/bash" subj=system_u:system_r:system_cronjob_t:s0-s15:c0.c1023 key=(null)



Hash String generated from  catchall,cups,system_cronjob_t,print_spool_t,dir,search
audit2allow suggests:

#============= system_cronjob_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.
#Contraint rule: 
allow system_cronjob_t print_spool_t:dir { search getattr };

Comment 1 Daniel Walsh 2010-11-17 14:18:32 UTC
Miroslav add

mls_file_read_to_clearance(system_cronjob_t)

to F13/F14

Comment 2 Miroslav Grepl 2010-11-18 14:47:54 UTC
Fixed in selinux-policy-3.9.7-12.fc14

Comment 3 Fedora Update System 2010-11-19 13:22:32 UTC
selinux-policy-3.9.7-12.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 4 Fedora Update System 2010-11-19 22:40:46 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 5 Fedora Update System 2010-11-21 21:59:06 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.