Bug 549731

Summary: SELinux is preventing /usr/lib/cups/backend/ekplp "write" access on /var/ekpd/ekplp0.
Product: [Fedora] Fedora Reporter: cs <csynt8bit>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:82954e339cb8bbe71f3d6d45e3b2465bfc6072413e5a57905e66e44dd76520f2
Fixed In Version: 3.6.32-66.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-05 23:00:41 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 cs 2009-12-22 14:20:07 UTC
Summary:

SELinux is preventing /usr/lib/cups/backend/ekplp "write" access on
/var/ekpd/ekplp0.

Detailed Description:

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

SELinux denied access requested by ekplp. It is not expected that this access is
required by ekplp 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_t:s0
Target Objects                /var/ekpd/ekplp0 [ fifo_file ]
Source                        ekplp
Source Path                   /usr/lib/cups/backend/ekplp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pips-cups-3.0-1
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-56.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.6-166.fc12.i686 #1 SMP Wed Dec 9
                              11:14:59 EST 2009 i686 i686
Alert Count                   2
First Seen                    Tue 22 Dec 2009 02:11:45 PM GMT
Last Seen                     Tue 22 Dec 2009 02:16:51 PM GMT
Local ID                      897a5aca-753b-4501-997b-088084d53b3b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1261491411.793:23773): avc:  denied  { write } for  pid=30317 comm="ekplp" name="ekplp0" dev=sda3 ino=138716 scontext=unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_t:s0 tclass=fifo_file

node=(removed) type=SYSCALL msg=audit(1261491411.793:23773): arch=40000003 syscall=33 success=yes exit=0 a0=bff45f91 a1=2 a2=0 a3=bff45f91 items=0 ppid=30316 pid=30317 auid=500 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=3 comm="ekplp" exe="/usr/lib/cups/backend/ekplp" subj=unconfined_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-56.fc12,catchall,ekplp,cupsd_t,var_t,fifo_file,write
audit2allow suggests:

#============= cupsd_t ==============
allow cupsd_t var_t:fifo_file write;

Comment 1 Daniel Walsh 2009-12-22 14:31:16 UTC
# chcon -R -t cupsd_var_run_t /var/ekpd

I will add this label to the next release.

Fixed in selinux-policy-3.6.32-62.fc12.noarch

Comment 2 Fedora Update System 2009-12-22 21:56:26 UTC
selinux-policy-3.6.32-63.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-63.fc12

Comment 3 Fedora Update System 2010-01-04 21:54:00 UTC
selinux-policy-3.6.32-66.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-66.fc12

Comment 4 Fedora Update System 2010-01-05 22:50:03 UTC
selinux-policy-3.6.32-66.fc12 has been pushed to the Fedora 12 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: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0184

Comment 5 Fedora Update System 2010-01-05 22:58:21 UTC
selinux-policy-3.6.32-63.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2010-01-08 20:04:50 UTC
selinux-policy-3.6.32-66.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.