Bug 157316

Summary: Smbd - cannot connect to CUPS port
Product: [Fedora] Fedora Reporter: Ivan Gyurdiev <ivg231>
Component: selinux-policy-strictAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-12 05:16:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ivan Gyurdiev 2005-05-10 16:12:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-2 Firefox/1.0.3

Description of problem:
Samba denials, generated by connecting from a windows machine.
Port 631 is CUPS - it's probably trying to list attached printers.

audit(1115733990.111:0): avc:  denied  { connect } for  scontext=system_u:system_r:smbd_t tcontext=system_u:system_r:smbd_t tclass=tcp_socket
audit(1115733990.111:0): avc:  denied  { name_connect } for  dest=631 scontext=system_u:system_r:smbd_t tcontext=system_u:object_r:ipp_port_t tclass=tcp_socket

Version-Release number of selected component (if applicable):

How reproducible:
Didn't try

Steps to Reproduce:

Additional info:

Comment 1 Daniel Walsh 2005-05-10 17:29:10 UTC
Are you running NIS without allow_ypbind running?

Why would snmp be attempting to connect to ipp_port?

Comment 2 Ivan Gyurdiev 2005-05-10 17:46:48 UTC
I don't use NIS. This is smbd, not snmp - I think it's just trying to
deal with the [printers] share, so it contacts CUPS.

Comment 3 Daniel Walsh 2005-05-10 18:01:57 UTC
Sorry misread.  Ok I will add perms to allow this?

We used to see apps trying to connect to lpp port all the time when portmap
would return it.

Fixed in policy 1.23.15-4