selinux-policy/refpolicy/policy/modules/services/snmp.if
2005-10-22 22:51:01 +00:00

20 lines
429 B
Plaintext

## <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)
')