Bug 789389

Summary: selinux prevents zabbix from making smtp connections
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.10.0-80.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-24 00:36:50 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 Orion Poplawski 2012-02-10 16:46:43 UTC
Description of problem:

type=AVC msg=audit(1328891806.142:24718): avc:  denied  { name_connect } for  pid=1490 comm="zabbix_server_m" dest=25 scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:object_r:smtp_port_t:s0 tclass=tcp_socket

This prevent zabbix from sending email alerts.

# getsebool -a | grep zabb
httpd_can_connect_zabbix --> on
zabbix_can_network --> on

Version-Release number of selected component (if applicable):
selinux-policy-3.10.0-75.fc16.noarch

Comment 1 Daniel Walsh 2012-02-14 21:31:12 UTC
We are allowing it to connect to all ports > 1024.  I guess you want it to connect to all ports.

Comment 2 Orion Poplawski 2012-02-14 22:01:22 UTC
Well, I at least need it to be able to connect to port 25 :).  But for it to be able to monitor any network service, it probably needs to be able to connect to anything.

Comment 3 Miroslav Grepl 2012-02-15 13:12:00 UTC
Yes, I changed the boolean.

Comment 4 Fedora Update System 2012-02-29 09:34:56 UTC
selinux-policy-3.10.0-78.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-78.fc16

Comment 5 Fedora Update System 2012-03-01 09:25:55 UTC
Package selinux-policy-3.10.0-78.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-78.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-78.fc16
then log in and leave karma (feedback).

Comment 6 Orion Poplawski 2012-03-01 17:26:14 UTC
Still seeing them with -78:

type=AVC msg=audit(1330622132.105:98): avc:  denied  { name_connect } for  pid=1292 comm="zabbix_server_m" dest=25 scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:object_r:smtp_port_t:s0 tclass=tcp_socket

httpd_can_connect_zabbix --> on
zabbix_can_network --> on

Comment 7 Miroslav Grepl 2012-03-02 07:49:43 UTC
Oops, I changed it only in F17.

commit c169976a5487aa134bdf92af5d2a0a06c28e75b7
Author: Miroslav Grepl <mgrepl>
Date:   Fri Mar 2 09:49:10 2012 +0000

    Change zabbix_can_network boolean

Comment 8 Fedora Update System 2012-03-21 02:24:41 UTC
Package selinux-policy-3.10.0-80.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-80.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-80.fc16
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-03-24 00:36:50 UTC
selinux-policy-3.10.0-80.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.