2005-05-20 20:07:42 +00:00
|
|
|
## <summary>Policy controlling access to network objects</summary>
|
2005-07-05 17:47:15 +00:00
|
|
|
## <required val="true">
|
|
|
|
## Contains the initial SIDs for network objects.
|
|
|
|
## </required>
|
2005-04-20 19:07:16 +00:00
|
|
|
|
2005-06-01 18:34:34 +00:00
|
|
|
########################################
|
2005-06-24 13:36:57 +00:00
|
|
|
## <summary>
|
|
|
|
## Send and receive TCP network traffic on the generic interfaces.
|
|
|
|
## </summary>
|
2005-06-23 21:30:57 +00:00
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-23 21:30:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-23 21:30:57 +00:00
|
|
|
## </param>
|
|
|
|
## <infoflow type="both" weight="10"/>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_sendrecv_generic_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type netif_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send UDP network traffic on generic interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_send_generic_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type netif_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive UDP network traffic on generic interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_receive_generic_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type netif_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and Receive UDP network traffic on generic interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_sendrecv_generic_if',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_udp_send_generic_if($1)
|
|
|
|
corenet_udp_receive_generic_if($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send raw IP packets on generic interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_send_generic_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type netif_t;
|
|
|
|
')
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_t:netif rawip_send;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive raw IP packets on generic interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_receive_generic_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type netif_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive raw IP packets on generic interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_sendrecv_generic_if',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_raw_send_generic_if($1)
|
|
|
|
corenet_raw_receive_generic_if($1)
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive TCP network traffic on all interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_sendrecv_all_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute netif_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send UDP network traffic on all interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_send_all_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute netif_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive UDP network traffic on all interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_receive_all_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute netif_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive UDP network traffic on all interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_sendrecv_all_if',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_udp_send_all_if($1)
|
|
|
|
corenet_udp_receive_all_if($1)
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send raw IP packets on all interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_send_all_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute netif_type;
|
|
|
|
')
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 netif_type:netif rawip_send;
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive raw IP packets on all interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_receive_all_if',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute netif_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive raw IP packets on all interfaces.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_sendrecv_all_if',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_raw_send_all_if($1)
|
|
|
|
corenet_raw_receive_all_if($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive TCP network traffic on generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_sendrecv_generic_node',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type node_t;
|
|
|
|
')
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:node { tcp_send tcp_recv };
|
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send UDP network traffic on generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_send_generic_node',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type node_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive UDP network traffic on generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_receive_generic_node',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type node_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive UDP network traffic on generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_sendrecv_generic_node',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_udp_send_generic_node($1)
|
|
|
|
corenet_udp_receive_generic_node($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send raw IP packets on generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_send_generic_node',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type node_t;
|
|
|
|
')
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_t:node rawip_send;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive raw IP packets on generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_receive_generic_node',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type node_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive raw IP packets on generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_sendrecv_generic_node',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_raw_send_generic_node($1)
|
|
|
|
corenet_raw_receive_generic_node($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind TCP sockets to generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_bind_generic_node',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type node_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind UDP sockets to generic nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_bind_generic_node',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type node_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive TCP network traffic on all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_sendrecv_all_nodes',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute node_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send UDP network traffic on all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_send_all_nodes',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute node_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive UDP network traffic on all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_receive_all_nodes',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute node_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive UDP network traffic on all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_sendrecv_all_nodes',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_udp_send_all_nodes($1)
|
|
|
|
corenet_udp_receive_all_nodes($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send raw IP packets on all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_send_all_nodes',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute node_type;
|
|
|
|
')
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 node_type:node rawip_send;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive raw IP packets on all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_receive_all_nodes',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute node_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive raw IP packets on all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_raw_sendrecv_all_nodes',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_raw_send_all_nodes($1)
|
|
|
|
corenet_raw_receive_all_nodes($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind TCP sockets to all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_bind_all_nodes',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute node_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind UDP sockets to all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_bind_all_nodes',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute node_type;
|
|
|
|
')
|
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-11-02 20:44:17 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind raw sockets to all nodes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-11-02 20:44:17 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-11-02 20:44:17 +00:00
|
|
|
## </param>
|
2006-04-26 19:03:41 +00:00
|
|
|
# rawip_socket node_bind does not make much sense.
|
|
|
|
# cjp: vmware hits this too
|
2005-11-02 20:44:17 +00:00
|
|
|
interface(`corenet_raw_bind_all_nodes',`
|
|
|
|
gen_require(`
|
|
|
|
attribute node_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 node_type:rawip_socket node_bind;
|
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive TCP network traffic on generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_sendrecv_generic_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type port_t;
|
|
|
|
')
|
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
|
|
|
')
|
|
|
|
|
2006-03-13 19:24:52 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit send and receive TCP network traffic on generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_dontaudit_tcp_sendrecv_generic_port',`
|
|
|
|
gen_require(`
|
|
|
|
type port_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 port_t:tcp_socket { send_msg recv_msg };
|
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send UDP network traffic on generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_send_generic_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type port_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive UDP network traffic on generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_receive_generic_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type port_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive UDP network traffic on generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_sendrecv_generic_port',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_udp_send_generic_port($1)
|
|
|
|
corenet_udp_receive_generic_port($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind TCP sockets to generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_bind_generic_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type port_t;
|
|
|
|
')
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_t:tcp_socket name_bind;
|
2006-03-13 19:24:52 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit bind TCP sockets to generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain to not audit.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_dontaudit_tcp_bind_generic_port',`
|
|
|
|
gen_require(`
|
|
|
|
type port_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 port_t:tcp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind UDP sockets to generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_bind_generic_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type port_t;
|
|
|
|
')
|
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-09-15 21:03:29 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Connect TCP sockets to generic ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-15 21:03:29 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-15 21:03:29 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_tcp_connect_generic_port',`
|
|
|
|
gen_require(`
|
|
|
|
type port_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 port_t:tcp_socket name_connect;
|
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive TCP network traffic on all ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_sendrecv_all_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send UDP network traffic on all ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_send_all_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive UDP network traffic on all ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_receive_all_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive UDP network traffic on all ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_sendrecv_all_ports',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_udp_send_all_ports($1)
|
|
|
|
corenet_udp_receive_all_ports($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind TCP sockets to all ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_bind_all_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute port_type;
|
|
|
|
')
|
2005-06-02 18:55:47 +00:00
|
|
|
|
|
|
|
allow $1 port_type:tcp_socket name_bind;
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2006-01-20 22:13:52 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attepts to bind TCP sockets to any ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-20 22:13:52 +00:00
|
|
|
## Domain to not audit.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-20 22:13:52 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_dontaudit_tcp_bind_all_ports',`
|
|
|
|
gen_require(`
|
|
|
|
attribute port_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 port_type:tcp_socket name_bind;
|
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind UDP sockets to all ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_bind_all_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute port_type;
|
|
|
|
')
|
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-09-12 21:40:56 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Connect TCP sockets to all ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-12 21:40:56 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-12 21:40:56 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_tcp_connect_all_ports',`
|
|
|
|
gen_require(`
|
|
|
|
attribute port_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 port_type:tcp_socket name_connect;
|
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive TCP network traffic on generic reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_sendrecv_reserved_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type reserved_port_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send UDP network traffic on generic reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_send_reserved_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type reserved_port_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive UDP network traffic on generic reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_receive_reserved_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type reserved_port_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive UDP network traffic on generic reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_sendrecv_reserved_port',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_udp_send_reserved_port($1)
|
|
|
|
corenet_udp_receive_reserved_port($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind TCP sockets to generic reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_bind_reserved_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type reserved_port_t;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind UDP sockets to generic reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_bind_reserved_port',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
type reserved_port_t;
|
|
|
|
')
|
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-09-15 21:03:29 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Connect TCP sockets to generic reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-15 21:03:29 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-15 21:03:29 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_tcp_connect_reserved_port',`
|
|
|
|
gen_require(`
|
|
|
|
type reserved_port_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 reserved_port_t:tcp_socket name_connect;
|
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive TCP network traffic on all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_sendrecv_all_reserved_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send UDP network traffic on all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_send_all_reserved_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive UDP network traffic on all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_receive_all_reserved_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive UDP network traffic on all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-06-02 18:55:47 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_sendrecv_all_reserved_ports',`
|
2005-06-08 18:00:04 +00:00
|
|
|
corenet_udp_send_all_reserved_ports($1)
|
|
|
|
corenet_udp_receive_all_reserved_ports($1)
|
2005-04-21 21:53:15 +00:00
|
|
|
')
|
|
|
|
|
2005-06-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind TCP sockets to all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_tcp_bind_all_reserved_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to bind TCP sockets to all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process to not audit.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-05-16 21:10:33 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_dontaudit_tcp_bind_all_reserved_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind UDP sockets to all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-21 21:53:15 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_udp_bind_all_reserved_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
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-24 13:36:57 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to bind UDP sockets to all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## The type of the process to not audit.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-24 13:36:57 +00:00
|
|
|
## </param>
|
2005-04-28 21:41:09 +00:00
|
|
|
#
|
2005-06-22 19:21:31 +00:00
|
|
|
interface(`corenet_dontaudit_udp_bind_all_reserved_ports',`
|
2005-06-17 19:17:57 +00:00
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
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-29 20:53:53 +00:00
|
|
|
|
2005-10-14 20:00:07 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Connect TCP sockets to reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-14 20:00:07 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-14 20:00:07 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_tcp_connect_all_reserved_ports',`
|
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 reserved_port_type:tcp_socket name_connect;
|
|
|
|
')
|
|
|
|
|
2005-09-15 21:03:29 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to connect TCP sockets
|
|
|
|
## all reserved ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-15 21:03:29 +00:00
|
|
|
## Domain to not audit.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-15 21:03:29 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_dontaudit_tcp_connect_all_reserved_ports',`
|
|
|
|
gen_require(`
|
|
|
|
attribute reserved_port_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 reserved_port_type:tcp_socket name_connect;
|
|
|
|
')
|
|
|
|
|
2005-06-29 20:53:53 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and write the TUN/TAP virtual network device.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-06-29 20:53:53 +00:00
|
|
|
## The domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-06-29 20:53:53 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-02-16 21:33:18 +00:00
|
|
|
interface(`corenet_rw_tun_tap_dev',`
|
2005-06-29 20:53:53 +00:00
|
|
|
gen_require(`
|
|
|
|
type tun_tap_device_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dev_list_all_dev_nodes($1)
|
2005-10-23 22:46:06 +00:00
|
|
|
allow $1 tun_tap_device_t:chr_file { getattr read write ioctl lock append };
|
2005-06-29 20:53:53 +00:00
|
|
|
')
|
2005-07-05 20:59:51 +00:00
|
|
|
|
2005-10-14 20:00:07 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and write the point-to-point device.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-14 20:00:07 +00:00
|
|
|
## The domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-14 20:00:07 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-02-16 21:33:18 +00:00
|
|
|
interface(`corenet_rw_ppp_dev',`
|
2005-10-14 20:00:07 +00:00
|
|
|
gen_require(`
|
|
|
|
type ppp_device_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dev_list_all_dev_nodes($1)
|
|
|
|
allow $1 ppp_device_t:chr_file rw_file_perms;
|
|
|
|
')
|
|
|
|
|
2006-05-03 19:58:01 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind TCP sockets to all RPC ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_tcp_bind_all_rpc_ports',`
|
|
|
|
gen_require(`
|
|
|
|
attribute rpc_port_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 rpc_port_type:tcp_socket name_bind;
|
|
|
|
allow $1 self:capability net_bind_service;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to bind TCP sockets to all RPC ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## The type of the process to not audit.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_dontaudit_tcp_bind_all_rpc_ports',`
|
|
|
|
gen_require(`
|
|
|
|
attribute rpc_port_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 rpc_port_type:tcp_socket name_bind;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Bind UDP sockets to all RPC ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_udp_bind_all_rpc_ports',`
|
|
|
|
gen_require(`
|
|
|
|
attribute rpc_port_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 rpc_port_type:udp_socket name_bind;
|
|
|
|
allow $1 self:capability net_bind_service;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to bind UDP sockets to all RPC ports.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## The type of the process to not audit.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_dontaudit_udp_bind_all_rpc_ports',`
|
|
|
|
gen_require(`
|
|
|
|
attribute rpc_port_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 rpc_port_type:udp_socket name_bind;
|
|
|
|
')
|
|
|
|
|
2006-05-22 20:47:05 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive messages on a
|
|
|
|
## non-encrypted (no IPSEC) network
|
|
|
|
## session.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_non_ipsec_sendrecv',`
|
|
|
|
kernel_sendrecv_unlabeled_association($1)
|
|
|
|
')
|
|
|
|
|
2006-05-25 17:01:36 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-05-29 15:04:49 +00:00
|
|
|
## Send generic client packets.
|
2006-05-25 17:01:36 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2006-05-29 15:04:49 +00:00
|
|
|
interface(`corenet_send_generic_client_packets',`
|
2006-05-25 17:01:36 +00:00
|
|
|
gen_require(`
|
2006-05-29 15:04:49 +00:00
|
|
|
type client_packet_t;
|
2006-05-25 17:01:36 +00:00
|
|
|
')
|
|
|
|
|
2006-05-29 15:04:49 +00:00
|
|
|
allow $1 client_packet_t:packet send;
|
2006-05-25 17:01:36 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-05-29 15:04:49 +00:00
|
|
|
## Receive generic client packets.
|
2006-05-25 17:01:36 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2006-05-29 15:04:49 +00:00
|
|
|
interface(`corenet_receive_generic_client_packets',`
|
2006-05-25 17:01:36 +00:00
|
|
|
gen_require(`
|
2006-05-29 15:04:49 +00:00
|
|
|
type client_packet_t;
|
2006-05-25 17:01:36 +00:00
|
|
|
')
|
|
|
|
|
2006-05-29 15:04:49 +00:00
|
|
|
allow $1 client_packet_t:packet recv;
|
2006-05-25 17:01:36 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-05-29 15:04:49 +00:00
|
|
|
## Send and receive generic client packets.
|
2006-05-25 17:01:36 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2006-05-29 15:04:49 +00:00
|
|
|
interface(`corenet_sendrecv_generic_client_packets',`
|
|
|
|
corenet_send_generic_client_packets($1)
|
|
|
|
corenet_receive_generic_client_packets($1)
|
2006-05-25 17:01:36 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-05-29 15:04:49 +00:00
|
|
|
## Relabel packets to the generic client packet type.
|
2006-05-25 17:01:36 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2006-05-29 15:04:49 +00:00
|
|
|
interface(`corenet_relabelto_generic_client_packets',`
|
2006-05-25 17:01:36 +00:00
|
|
|
gen_require(`
|
2006-05-29 15:04:49 +00:00
|
|
|
type client_packet_t;
|
2006-05-25 17:01:36 +00:00
|
|
|
')
|
|
|
|
|
2006-05-29 15:04:49 +00:00
|
|
|
allow $1 client_packet_t:packet relabelto;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send generic server packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_send_generic_server_packets',`
|
|
|
|
gen_require(`
|
|
|
|
type server_packet_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 server_packet_t:packet send;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive generic server packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_receive_generic_server_packets',`
|
|
|
|
gen_require(`
|
|
|
|
type server_packet_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 server_packet_t:packet recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive generic server packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_sendrecv_generic_server_packets',`
|
|
|
|
corenet_send_generic_server_packets($1)
|
|
|
|
corenet_receive_generic_server_packets($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Relabel packets to the generic server packet type.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_relabelto_generic_server_packets',`
|
|
|
|
gen_require(`
|
|
|
|
type server_packet_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 server_packet_t:packet relabelto;
|
2006-05-25 17:01:36 +00:00
|
|
|
')
|
|
|
|
|
2006-05-22 20:47:05 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive unlabeled packets.
|
|
|
|
## </summary>
|
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Send and receive unlabeled packets.
|
|
|
|
## These packets do not match any netfilter
|
|
|
|
## SECMARK rules.
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_sendrecv_unlabeled_packets',`
|
|
|
|
kernel_sendrecv_unlabeled_packets($1)
|
|
|
|
')
|
|
|
|
|
2006-05-26 13:49:13 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send all client packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_send_all_client_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute client_packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 client_packet_type:packet send;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive all client packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_receive_all_client_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute client_packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 client_packet_type:packet recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive all client packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_sendrecv_all_client_packets',`
|
|
|
|
corenet_send_all_client_packets($1)
|
2006-05-26 14:34:13 +00:00
|
|
|
corenet_receive_all_client_packets($1)
|
2006-05-26 13:49:13 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Relabel packets to any client packet type.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_relabelto_all_client_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute client_packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 client_packet_type:packet relabelto;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send all server packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_send_all_server_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute server_packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 server_packet_type:packet send;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive all server packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_receive_all_server_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute server_packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 server_packet_type:packet recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive all server packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_sendrecv_all_server_packets',`
|
|
|
|
corenet_send_all_server_packets($1)
|
2006-05-26 14:34:13 +00:00
|
|
|
corenet_receive_all_server_packets($1)
|
2006-05-26 13:49:13 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Relabel packets to any server packet type.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_relabelto_all_server_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute server_packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 server_packet_type:packet relabelto;
|
|
|
|
')
|
|
|
|
|
2006-05-23 18:31:02 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send all packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_send_all_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 packet_type:packet send;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Receive all packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_receive_all_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 packet_type:packet recv;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive all packets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_sendrecv_all_packets',`
|
|
|
|
corenet_send_all_packets($1)
|
2006-05-26 14:34:13 +00:00
|
|
|
corenet_receive_all_packets($1)
|
2006-05-23 18:31:02 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Relabel packets to any packet type.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_relabelto_all_packets',`
|
|
|
|
gen_require(`
|
|
|
|
attribute packet_type;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 packet_type:packet relabelto;
|
|
|
|
')
|
|
|
|
|
2005-07-05 20:59:51 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Unconfined access to network objects.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-07-05 20:59:51 +00:00
|
|
|
## The domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-07-05 20:59:51 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`corenet_unconfined',`
|
|
|
|
gen_require(`
|
2006-04-10 21:04:51 +00:00
|
|
|
attribute corenet_unconfined_type;
|
2005-07-05 20:59:51 +00:00
|
|
|
')
|
|
|
|
|
2006-04-10 21:04:51 +00:00
|
|
|
typeattribute $1 corenet_unconfined_type;
|
2005-07-05 20:59:51 +00:00
|
|
|
')
|