Blame refpolicy/policy/modules/services/snmp.if
|
Chris PeBenito |
ccc597 |
## <summary>Simple network management protocol services</summary>
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
########################################
|
|
Chris PeBenito |
44fc06 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## Use snmp over a TCP connection.
|
|
Chris PeBenito |
44fc06 |
## </summary>
|
|
Chris PeBenito |
44fc06 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
44fc06 |
## </param>
|
|
Chris PeBenito |
44fc06 |
#
|
|
Chris PeBenito |
679626 |
interface(`snmp_tcp_connect',`
|
|
Chris PeBenito |
44fc06 |
gen_require(`
|
|
Chris PeBenito |
44fc06 |
type snmpd_t;
|
|
Chris PeBenito |
44fc06 |
')
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
allow $1 snmpd_t:tcp_socket { connectto recvfrom };
|
|
Chris PeBenito |
44fc06 |
allow snmpd_t $1:tcp_socket { acceptfrom recvfrom };
|
|
Chris PeBenito |
44fc06 |
kernel_tcp_recvfrom($1)
|
|
Chris PeBenito |
44fc06 |
')
|
|
Chris PeBenito |
679626 |
|
|
Chris PeBenito |
679626 |
########################################
|
|
Chris PeBenito |
679626 |
## <summary>
|
|
Chris PeBenito |
679626 |
## Send and receive UDP traffic to SNMP
|
|
Chris PeBenito |
679626 |
## </summary>
|
|
Chris PeBenito |
679626 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
679626 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
679626 |
## </param>
|
|
Chris PeBenito |
679626 |
#
|
|
Chris PeBenito |
679626 |
interface(`snmp_udp_chat',`
|
|
Chris PeBenito |
679626 |
gen_require(`
|
|
Chris PeBenito |
679626 |
type snmpd_t;
|
|
Chris PeBenito |
679626 |
')
|
|
Chris PeBenito |
679626 |
|
|
Chris PeBenito |
679626 |
allow $1 snmpd_t:udp_socket { sendto recvfrom };
|
|
Chris PeBenito |
679626 |
allow snmpd_t $1:udp_socket { sendto recvfrom };
|
|
Chris PeBenito |
679626 |
')
|
|
Chris PeBenito |
679626 |
|
|
Chris PeBenito |
679626 |
########################################
|
|
Chris PeBenito |
679626 |
## <summary>
|
|
Chris PeBenito |
679626 |
## Read snmpd libraries.
|
|
Chris PeBenito |
679626 |
## </summary>
|
|
Chris PeBenito |
679626 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
679626 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
679626 |
## </param>
|
|
Chris PeBenito |
679626 |
#
|
|
Chris PeBenito |
1815ba |
interface(`snmp_read_snmp_var_lib_files',`
|
|
Chris PeBenito |
679626 |
gen_require(`
|
|
Chris PeBenito |
679626 |
type snmpd_var_lib_t;
|
|
Chris PeBenito |
679626 |
')
|
|
Chris PeBenito |
679626 |
allow $1 snmpd_var_lib_t:dir r_dir_perms;
|
|
Chris PeBenito |
679626 |
allow $1 snmpd_var_lib_t:file r_file_perms;
|
|
Chris PeBenito |
679626 |
allow $1 snmpd_var_lib_t:lnk_file { getattr read };
|
|
Chris PeBenito |
679626 |
')
|