Bug 1326816

Summary: SELinux prevents collectd from connecting to TCP port 2003
Product: Red Hat Enterprise Linux 7 Reporter: Nishanth Thomas <nthomas>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED NOTABUG QA Contact: Milos Malik <mmalik>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.2CC: lvrabec, mgrepl, mmalik, nthomas, plautrba, pvrabec, rcyriac, sankarshan, sds-qe-bugs, shtripat, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1326804 Environment:
Last Closed: 2016-04-21 12:52:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1326804    

Description Nishanth Thomas 2016-04-13 13:12:47 UTC
+++ This bug was initially created as a clone of Bug #1326804 +++

Description of problem:

On storage nodes,noticed the below avc:

type=AVC msg=audit(1460458964.101:1672): avc:  denied  { name_connect } for  pid=11849 comm="collectd" dest=2003 scontext=system_u:system_r:collectd_t:s0 tcontext=system_u:object_r:lmtp_port_t:s0 tclass=tcp_socket

Comment 1 Lukas Vrabec 2016-04-21 12:52:33 UTC
Hi, 

You can use SELinux boolean to allow this action: 
# semanage boolean -m collectd_tcp_network_connect --on

Closing as NOTABUG.