Bug 1046346 - Missing context for zabbix-server(-pgsql)
Summary: Missing context for zabbix-server(-pgsql)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-24 18:51 UTC by Niki Guldbrand
Modified: 2014-01-20 03:08 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.12.1-74.17.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-20 03:08:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Niki Guldbrand 2013-12-24 18:51:46 UTC
Description of problem:
The zabbix server can't access the dir /var/lib/zabbixsrv/tmp because it has the wrong type, after running the following, everything seems okay.

semanage fcontext -a -t zabbix_tmp_t '/var/lib/zabbixsrv/tmp(/.*)?'
restorecon -v /var/lib/zabbixsrv/tmp

Also I wonder if I will run into further issues later on, as /var/lib/zabbixsrv has the type system_u:object_r:var_lib_t:s0.
And it has some folders /var/lib/zabbixsrv/alertscripts and /var/lib/zabbixsrv/externalscripts which are also of the type system_u:object_r:var_lib_t:s0, these are used for werious custom scripts that the server can run based on the rule that you make.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.12.1-74.15.fc19.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install and configure the server and webui
2. Create/add network discovery rules which uses icmpping
3.

Additional info:

Additionally it seems like I need this too, so that the server can send mails

require {
        type smtp_port_t;
        type zabbix_t;
        class process setpgid;
        class tcp_socket name_connect;
}

#============= zabbix_t ==============

allow zabbix_t self:process setpgid;
allow zabbix_t smtp_port_t:tcp_socket name_connect;

Comment 1 Daniel Walsh 2014-01-03 20:31:17 UTC
a34d2add48316bbe240a5076791f57c14be5b90a fixes this in git.

I added zabbix_var_lib_t. and allow it to connect to smtp port.  Fix for setpgid was already in the file.

Comment 2 Lukas Vrabec 2014-01-09 18:34:45 UTC
back ported.

Comment 3 Fedora Update System 2014-01-10 14:13:27 UTC
selinux-policy-3.12.1-74.17.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.17.fc19

Comment 4 Fedora Update System 2014-01-11 08:42:31 UTC
Package selinux-policy-3.12.1-74.17.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-74.17.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0636/selinux-policy-3.12.1-74.17.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-01-20 03:08:50 UTC
selinux-policy-3.12.1-74.17.fc19 has been pushed to the Fedora 19 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.