Skip to contentSkip to conversation

nagios changes

PATCH [email protected] 2 participants 2 messages May 30, 2007 – Jun 21, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

nagios is designed to connect to all ports
needs to read random data
Uses nsswitch

policy/modules/services/nagios.te +3 -7
@@ -73,8 +73,10 @@
 corenet_udp_sendrecv_all_nodes(nagios_t)
 corenet_tcp_sendrecv_all_ports(nagios_t)
 corenet_udp_sendrecv_all_ports(nagios_t)
+corenet_tcp_connect_all_ports(nagios_t)
 
 dev_read_sysfs(nagios_t)
+dev_read_urand(nagios_t)
 
 domain_use_interactive_fds(nagios_t)
 # for ps
@@ -97,8 +99,6 @@
 
 miscfiles_read_localization(nagios_t)
 
-sysnet_read_config(nagios_t)
-
 userdom_dontaudit_use_unpriv_user_fds(nagios_t)
 userdom_dontaudit_search_sysadm_home_dirs(nagios_t)
 
@@ -108,14 +108,10 @@
 	netutils_domtrans_ping(nagios_t)
 	netutils_signal_ping(nagios_t)
 	netutils_kill_ping(nagios_t)
-
-	# cjp: leaked file descriptors:
-	#dontaudit ping_t nagios_etc_t:file read;
-	#dontaudit ping_t nagios_log_t:fifo_file read;
 ')
 
 optional_policy(`
-	nis_use_ypbind(nagios_t)
+	auth_use_nsswitch(nagios_t)
 ')
 
 optional_policy(`

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 3 lines · On Wed, 2007-05-30 at 10:43 -0400, [email protected] wrote:

nagios is designed to connect to all ports
needs to read random data
Uses nsswitch

Merged.

Quoted 38 lines
policy/modules/services/nagios.te +3 -7
@@ -73,8 +73,10 @@
 corenet_udp_sendrecv_all_nodes(nagios_t)
 corenet_tcp_sendrecv_all_ports(nagios_t)
 corenet_udp_sendrecv_all_ports(nagios_t)
+corenet_tcp_connect_all_ports(nagios_t)
 
 dev_read_sysfs(nagios_t)
+dev_read_urand(nagios_t)
 
 domain_use_interactive_fds(nagios_t)
 # for ps
@@ -97,8 +99,6 @@
 
 miscfiles_read_localization(nagios_t)
 
-sysnet_read_config(nagios_t)
-
 userdom_dontaudit_use_unpriv_user_fds(nagios_t)
 userdom_dontaudit_search_sysadm_home_dirs(nagios_t)
 
@@ -108,14 +108,10 @@
 	netutils_domtrans_ping(nagios_t)
 	netutils_signal_ping(nagios_t)
 	netutils_kill_ping(nagios_t)
-
-	# cjp: leaked file descriptors:
-	#dontaudit ping_t nagios_etc_t:file read;
-	#dontaudit ping_t nagios_log_t:fifo_file read;
 ')
 
 optional_policy(`
-	nis_use_ypbind(nagios_t)
+	auth_use_nsswitch(nagios_t)
 ')
 
 optional_policy(`
Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.