Bug 789389 - selinux prevents zabbix from making smtp connections
Summary: selinux prevents zabbix from making smtp connections
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-10 16:46 UTC by Orion Poplawski
Modified: 2012-03-24 00:36 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.10.0-80.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-24 00:36:50 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.