Bug 531726

Summary: SELinux is preventing /usr/lib/cups/filter/hpcups "name_bind" access.
Product: [Fedora] Fedora Reporter: Leo Canale <leo_canale>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: christopher.c.walker, dwalsh, leo_canale, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:573f2f48ac3b2f2d4ec9bfc19f8168c41e6821fd74b43eebbc07cb815c886fd6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-29 12:34:37 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 Leo Canale 2009-10-29 10:22:15 UTC
Summary:

SELinux is preventing /usr/lib/cups/filter/hpcups "name_bind" access.

Detailed Description:

[hpcups has a permissive type (cupsd_t). This access was not denied.]

SELinux denied access requested by hpcups. It is not expected that this access
is required by hpcups 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                system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:howl_port_t:s0
Target Objects                None [ udp_socket ]
Source                        hpcups
Source Path                   /usr/lib/cups/filter/hpcups
Port                          5353
Host                          (removed)
Source RPM Packages           hpijs-3.9.8-17.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-27.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.5-96.fc12.i686.PAE #1 SMP Fri Oct 23
                              19:39:36 EDT 2009 i686 i686
Alert Count                   2
First Seen                    Wed 28 Oct 2009 06:43:45 AM EDT
Last Seen                     Thu 29 Oct 2009 05:18:27 AM EDT
Local ID                      69a569a2-bbc0-445f-8061-efee7c5b7d0f
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1256807907.988:13): avc:  denied  { name_bind } for  pid=927 comm="hpcups" src=5353 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:howl_port_t:s0 tclass=udp_socket

node=(removed) type=SYSCALL msg=audit(1256807907.988:13): arch=40000003 syscall=102 success=yes exit=0 a0=2 a1=bfafaab0 a2=52d510 a3=59db6b items=0 ppid=921 pid=927 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="hpcups" exe="/usr/lib/cups/filter/hpcups" subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-27.fc12,catchall,hpcups,cupsd_t,howl_port_t,udp_socket,name_bind
audit2allow suggests:

#============= cupsd_t ==============
allow cupsd_t howl_port_t:udp_socket name_bind;

Comment 1 Daniel Walsh 2009-10-29 12:34:37 UTC
Fixed in selinux-policy-3.6.32-36.fc12.noarch

Comment 2 Daniel Walsh 2009-10-29 12:35:28 UTC
*** Bug 531725 has been marked as a duplicate of this bug. ***

Comment 3 Tim Waugh 2009-11-05 10:13:44 UTC
*** Bug 532754 has been marked as a duplicate of this bug. ***