2005-05-20 20:07:42 +00:00
|
|
|
## <module name="corenetwork" layer="kernel">
|
|
|
|
## <summary>Policy controlling access to network objects</summary>
|
2005-04-20 19:07:16 +00:00
|
|
|
|
2005-06-01 18:34:34 +00:00
|
|
|
########################################
|
2005-06-08 18:00:04 +00:00
|
|
|
## <interface name="corenet_tcp_sendrecv_generic_if">
|
2005-06-01 18:34:34 +00:00
|
|
|
## <description>
|
|
|
|
## Send and receive TCP network traffic on the general interfaces.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <infoflow type="both" weight="10"/>
|
|
|
|
## </interface>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_generic_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-06-02 18:55:47 +00:00
|
|
|
allow $1 netif_t:netif { tcp_send tcp_recv };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_generic_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type netif_t;
|
2005-04-21 21:53:15 +00:00
|
|
|
|
2005-06-02 18:55:47 +00:00
|
|
|
class netif { tcp_send tcp_recv };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_send_generic_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_generic_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_t:netif udp_send;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_generic_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type netif_t;
|
|
|
|
|
|
|
|
class netif udp_send;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-04-21 21:53:15 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_receive_generic_if(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_generic_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_t:netif udp_recv;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_generic_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type netif_t;
|
|
|
|
|
|
|
|
class netif udp_recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_sendrecv_generic_if(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_sendrecv_generic_if',`
|
|
|
|
corenet_udp_send_generic_if($1)
|
|
|
|
corenet_udp_receive_generic_if($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_send_generic_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_send_generic_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_t:netif rawip_send;
|
|
|
|
allow $1 self:capability net_raw;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_send_generic_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type netif_t;
|
|
|
|
|
|
|
|
class netif rawip_send;
|
|
|
|
class capability net_raw;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_receive_generic_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_receive_generic_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_t:netif rawip_recv;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_receive_generic_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type netif_t;
|
|
|
|
|
|
|
|
class netif rawip_recv;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_sendrecv_generic_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_sendrecv_generic_if',`
|
|
|
|
corenet_raw_send_generic_if($1)
|
|
|
|
corenet_raw_receive_generic_if($1)
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_sendrecv_all_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_all_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_type:netif { tcp_send tcp_recv };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_all_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute netif_type;
|
|
|
|
|
|
|
|
class netif { tcp_send tcp_recv };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_send_all_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_all_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_type:netif udp_send;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_all_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute netif_type;
|
|
|
|
|
|
|
|
class netif udp_send;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_receive_all_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_all_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_type:netif udp_recv;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_all_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute netif_type;
|
|
|
|
|
|
|
|
class netif udp_recv;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_sendrecv_all_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_sendrecv_all_if',`
|
|
|
|
corenet_udp_send_all_if($1)
|
|
|
|
corenet_udp_receive_all_if($1)
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_send_all_if(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_send_all_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_type:netif rawip_send;
|
|
|
|
allow $1 self:capability net_raw;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_send_all_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute netif_type;
|
|
|
|
|
|
|
|
class netif rawip_send;
|
|
|
|
class capability net_raw;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-04-21 21:53:15 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_receive_all_if(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_receive_all_if',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_type:netif rawip_recv;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_receive_all_if_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute netif_type;
|
|
|
|
|
|
|
|
class netif rawip_recv;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_sendrecv_all_if(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_sendrecv_all_if',`
|
|
|
|
corenet_raw_send_all_if($1)
|
|
|
|
corenet_raw_receive_all_if($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_sendrecv_generic_node(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_generic_node',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:node { tcp_send tcp_recv };
|
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_generic_node_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type node_t;
|
|
|
|
|
|
|
|
class node { tcp_send tcp_recv };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_send_generic_node(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_generic_node',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:node udp_send;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_generic_node_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type node_t;
|
|
|
|
|
|
|
|
class node udp_send;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_receive_generic_node(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_generic_node',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:node udp_recv;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_generic_node_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type node_t;
|
|
|
|
|
|
|
|
class node udp_recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_sendrecv_generic_node(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_sendrecv_generic_node',`
|
|
|
|
corenet_udp_send_generic_node($1)
|
|
|
|
corenet_udp_receive_generic_node($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_send_generic_node(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_send_generic_node',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:node rawip_send;
|
|
|
|
allow $1 self:capability net_raw;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_send_generic_node_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type node_t;
|
|
|
|
|
|
|
|
class node rawip_send;
|
|
|
|
class capability net_raw;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_receive_generic_node(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_receive_generic_node',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:node rawip_recv;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_receive_generic_node_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type node_t;
|
|
|
|
|
|
|
|
class node rawip_recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_sendrecv_generic_node(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_sendrecv_generic_node',`
|
|
|
|
corenet_raw_send_generic_node($1)
|
|
|
|
corenet_raw_receive_generic_node($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_bind_generic_node(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_generic_node',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:tcp_socket node_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_generic_node_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type node_t;
|
|
|
|
|
|
|
|
class tcp_socket node_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_bind_generic_node(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_generic_node',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:udp_socket node_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_generic_node_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type node_t;
|
|
|
|
|
|
|
|
class udp_socket node_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_sendrecv_all_nodes(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_all_nodes',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-04-21 21:53:15 +00:00
|
|
|
|
2005-06-02 18:55:47 +00:00
|
|
|
allow $1 node_type:node { tcp_send tcp_recv };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_all_nodes_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute node_type;
|
2005-04-21 21:53:15 +00:00
|
|
|
|
2005-06-02 18:55:47 +00:00
|
|
|
class node { tcp_send tcp_recv };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_send_all_nodes(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_all_nodes',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_type:node udp_send;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_all_nodes_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute node_type;
|
|
|
|
|
|
|
|
class node udp_send;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_receive_all_nodes(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_all_nodes',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_type:node udp_recv;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_all_nodes_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute node_type;
|
|
|
|
|
|
|
|
class node udp_recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_sendrecv_all_nodes(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_sendrecv_all_nodes',`
|
|
|
|
corenet_udp_send_all_nodes($1)
|
|
|
|
corenet_udp_receive_all_nodes($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_send_all_nodes(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_send_all_nodes',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_type:node rawip_send;
|
|
|
|
allow $1 self:capability net_raw;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_send_all_nodes_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute node_type;
|
|
|
|
|
|
|
|
class node rawip_send;
|
|
|
|
class capability net_raw;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_receive_all_nodes(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_receive_all_nodes',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_type:node rawip_recv;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_receive_all_nodes_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute node_type;
|
|
|
|
|
|
|
|
class node rawip_recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_raw_sendrecv_all_nodes(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_raw_sendrecv_all_nodes',`
|
|
|
|
corenet_raw_send_all_nodes($1)
|
|
|
|
corenet_raw_receive_all_nodes($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_bind_all_nodes(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_all_nodes',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_type:tcp_socket node_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_all_nodes_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute node_type;
|
|
|
|
|
|
|
|
class tcp_socket node_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_bind_all_nodes(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_all_nodes',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_type:udp_socket node_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_all_nodes_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute node_type;
|
|
|
|
|
|
|
|
class udp_socket node_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_sendrecv_generic_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_generic_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-04-21 21:53:15 +00:00
|
|
|
|
2005-06-02 18:55:47 +00:00
|
|
|
allow $1 port_t:tcp_socket { send_msg recv_msg };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_generic_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type port_t;
|
|
|
|
|
|
|
|
class tcp_socket { send_msg recv_msg };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_send_generic_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_generic_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_t:udp_socket send_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_generic_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type port_t;
|
|
|
|
|
|
|
|
class udp_socket send_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_receive_generic_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_generic_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_t:udp_socket recv_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_generic_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type port_t;
|
|
|
|
|
|
|
|
class udp_socket recv_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_sendrecv_generic_port(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_sendrecv_generic_port',`
|
|
|
|
corenet_udp_send_generic_port($1)
|
|
|
|
corenet_udp_receive_generic_port($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_bind_generic_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_generic_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_t:tcp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_generic_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type port_t;
|
|
|
|
|
|
|
|
class tcp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_bind_generic_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_generic_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_t:udp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_generic_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type port_t;
|
|
|
|
|
|
|
|
class udp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_sendrecv_all_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_all_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-04-21 21:53:15 +00:00
|
|
|
|
2005-06-02 18:55:47 +00:00
|
|
|
allow $1 port_type:tcp_socket { send_msg recv_msg };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_all_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute port_type;
|
|
|
|
|
|
|
|
class tcp_socket { send_msg recv_msg };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_send_all_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_all_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_type:udp_socket send_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_all_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute port_type;
|
|
|
|
|
|
|
|
class udp_socket send_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_receive_all_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_all_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_type:udp_socket recv_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_all_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute port_type;
|
|
|
|
|
|
|
|
class udp_socket recv_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_sendrecv_all_ports(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_sendrecv_all_ports',`
|
|
|
|
corenet_udp_send_all_ports($1)
|
|
|
|
corenet_udp_receive_all_ports($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_bind_all_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_all_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_type:tcp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_all_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute port_type;
|
|
|
|
|
|
|
|
class tcp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_bind_all_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_all_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_type:udp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_all_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute port_type;
|
|
|
|
|
|
|
|
class udp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_sendrecv_reserved_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_reserved_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-04-21 21:53:15 +00:00
|
|
|
|
2005-06-02 18:55:47 +00:00
|
|
|
allow $1 reserved_port_t:tcp_socket { send_msg recv_msg };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_reserved_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type reserved_port_t;
|
|
|
|
|
|
|
|
class tcp_socket { send_msg recv_msg };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_send_reserved_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_reserved_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 reserved_port_t:udp_socket send_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_reserved_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type reserved_port_t;
|
|
|
|
|
|
|
|
class udp_socket send_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_receive_reserved_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_reserved_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 reserved_port_t:udp_socket recv_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_reserved_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type reserved_port_t;
|
|
|
|
|
|
|
|
class udp_socket recv_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_sendrecv_reserved_port(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_sendrecv_reserved_port',`
|
|
|
|
corenet_udp_send_reserved_port($1)
|
|
|
|
corenet_udp_receive_reserved_port($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_bind_reserved_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_reserved_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 reserved_port_t:tcp_socket name_bind;
|
|
|
|
allow $1 self:capability net_bind_service;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_reserved_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type reserved_port_t;
|
|
|
|
|
|
|
|
class tcp_socket name_bind;
|
|
|
|
class capability net_bind_service;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_bind_reserved_port(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_reserved_port',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 reserved_port_t:udp_socket name_bind;
|
|
|
|
allow $1 self:capability net_bind_service;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_reserved_port_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
type reserved_port_t;
|
|
|
|
|
|
|
|
class udp_socket name_bind;
|
|
|
|
class capability net_bind_service;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_sendrecv_all_reserved_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_all_reserved_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-04-21 21:53:15 +00:00
|
|
|
|
2005-06-02 18:55:47 +00:00
|
|
|
allow $1 reserved_port_type:tcp_socket { send_msg recv_msg };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_sendrecv_all_reserved_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute reserved_port_type;
|
|
|
|
|
|
|
|
class tcp_socket { send_msg recv_msg };
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_send_all_reserved_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_all_reserved_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 reserved_port_type:udp_socket send_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_send_all_reserved_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute reserved_port_type;
|
|
|
|
|
|
|
|
class udp_socket send_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_receive_all_reserved_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_all_reserved_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 reserved_port_type:udp_socket recv_msg;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_receive_all_reserved_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute reserved_port_type;
|
|
|
|
|
|
|
|
class udp_socket recv_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_sendrecv_all_reserved_ports(domain)
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_sendrecv_all_reserved_ports',`
|
|
|
|
corenet_udp_send_all_reserved_ports($1)
|
|
|
|
corenet_udp_receive_all_reserved_ports($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_tcp_bind_all_reserved_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_all_reserved_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 reserved_port_type:tcp_socket name_bind;
|
|
|
|
allow $1 self:capability net_bind_service;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_tcp_bind_all_reserved_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute reserved_port_type;
|
|
|
|
|
|
|
|
class tcp_socket name_bind;
|
|
|
|
class capability net_bind_service;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-05-16 21:10:33 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_dontaudit_tcp_bind_all_reserved_ports(domain)
|
2005-05-16 21:10:33 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_dontaudit_tcp_bind_all_reserved_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
dontaudit $1 reserved_port_type:tcp_socket name_bind;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_dontaudit_tcp_bind_all_reserved_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute reserved_port_type;
|
|
|
|
|
|
|
|
class tcp_socket name_bind;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-04-21 21:53:15 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_udp_bind_all_reserved_ports(domain)
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_all_reserved_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 reserved_port_type:udp_socket name_bind;
|
|
|
|
allow $1 self:capability net_bind_service;
|
2005-04-28 21:41:09 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_udp_bind_all_reserved_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute reserved_port_type;
|
|
|
|
|
|
|
|
class udp_socket name_bind;
|
|
|
|
class self:capability net_bind_service;
|
2005-04-28 21:41:09 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
# corenet_dontaudit_udp_bind_all_reserved_ports(domain)
|
2005-04-28 21:41:09 +00:00
|
|
|
#
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_dontaudit_udp_bind_all_reserved_ports',`
|
2005-06-13 20:51:09 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
dontaudit $1 reserved_port_type:udp_socket name_bind;
|
2005-04-28 21:41:09 +00:00
|
|
|
')
|
|
|
|
|
2005-06-08 18:00:04 +00:00
|
|
|
define(`corenet_dontaudit_udp_bind_all_reserved_ports_depend',`
|
2005-06-02 18:55:47 +00:00
|
|
|
attribute reserved_port_type;
|
|
|
|
|
|
|
|
class udp_socket name_bind;
|
2005-04-28 21:41:09 +00:00
|
|
|
')
|