]> granicus.if.org Git - icinga2/commitdiff
Selinux: Added capabilities and database support
authorDirk Goetz <dirk.goetz@netways.de>
Fri, 27 Feb 2015 09:47:45 +0000 (09:47 +0000)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 1 Jun 2015 11:25:58 +0000 (13:25 +0200)
refs #8332

tools/selinux/icinga2.te

index 1e36dc9a98f97be7929ad211a2a70b9dd9f7a11f..42dd7918faef43e516ba2576090b1cc7f7d569cb 100644 (file)
@@ -48,7 +48,8 @@ corenet_port(icinga2_port_t)
 #
 # icinga2 local policy
 #
-allow icinga2_t self:capability { setgid setuid };
+allow icinga2_t self:capability { setgid setuid sys_resource };
+allow icinga2_t self:process { setsched signal setrlimit };
 allow icinga2_t self:fifo_file rw_fifo_file_perms;
 allow icinga2_t self:unix_stream_socket create_stream_socket_perms;
 
@@ -95,6 +96,12 @@ icinga2_execstrans(nagios_system_plugin_exec_t, nagios_system_plugin_t)
 allow icinga2_t icinga2_port_t:tcp_socket name_bind;
 allow icinga2_t self:tcp_socket create_stream_socket_perms;
 
+mysql_stream_connect(icinga2_t)
+mysql_tcp_connect(icinga2_t)
+postgresql_stream_connect(icinga2_t)
+postgresql_tcp_connect(icinga2_t)
+
+
 ########################################
 #
 # Icinga Webinterfaces