SELinux: fixes for 2.7.0

allow Icinga2 to connect to its own API
allow execution of hostname for notification plugin

refs #5479
This commit is contained in:
Dirk Goetz 2017-08-14 11:48:08 +00:00
parent df0764192e
commit 75e086747a
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
policy_module(icinga2, 0.1.3)
policy_module(icinga2, 0.1.4)
########################################
#
@ -140,6 +140,7 @@ allow nagios_notification_plugin_t icinga2_etc_t:dir search;
allow nagios_notification_plugin_t nagios_notification_plugin_exec_t:dir search;
#permissive nagios_notification_plugin_t;
corecmd_exec_bin(nagios_notification_plugin_t)
hostname_exec(nagios_notification_plugin_t)
type nagios_notification_plugin_tmp_t;
files_tmp_file(nagios_notification_plugin_tmp_t)
manage_files_pattern(nagios_notification_plugin_t, nagios_notification_plugin_tmp_t, nagios_notification_plugin_tmp_t)
@ -154,6 +155,7 @@ icinga2_dontaudit_leaks_fifo(system_mail_t)
allow icinga2_t icinga2_port_t:tcp_socket name_bind;
allow icinga2_t self:tcp_socket create_stream_socket_perms;
corenet_tcp_connect_icinga2_port(icinga2_t)
mysql_stream_connect(icinga2_t)
mysql_tcp_connect(icinga2_t)