Blob Blame History Raw
## <summary>Simple network management protocol services</summary>

########################################
## <summary>
##	Use snmp over a TCP connection.
## </summary>
## <param name="domain">
##	Domain allowed access.
## </param>
#
interface(`snmp_use',`
	gen_require(`
		type snmpd_t;
	')

	allow $1 snmpd_t:tcp_socket { connectto recvfrom };
	allow snmpd_t $1:tcp_socket { acceptfrom recvfrom };
	kernel_tcp_recvfrom($1)
')