2005-09-08 17:12:38 +00:00
|
|
|
## <summary>RPC port mapping service.</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute portmap_helper in the helper domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`portmap_domtrans_helper',`
|
|
|
|
gen_require(`
|
|
|
|
type portmap_helper_t, portmap_helper_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
corecmd_search_bin($1)
|
2006-12-12 20:08:08 +00:00
|
|
|
domtrans_pattern($1,portmap_helper_exec_t,portmap_helper_t)
|
2005-09-08 17:12:38 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute portmap helper in the helper domain, and
|
|
|
|
## allow the specified role the helper domain.
|
|
|
|
## Communicate with portmap.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## The role to be allowed the portmap domain.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="terminal">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## The type of the terminal allow the portmap domain to use.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## </param>
|
2006-09-06 22:07:25 +00:00
|
|
|
## <rolecap/>
|
2005-09-08 17:12:38 +00:00
|
|
|
#
|
|
|
|
interface(`portmap_run_helper',`
|
|
|
|
gen_require(`
|
2005-10-19 14:36:04 +00:00
|
|
|
type portmap_t, portmap_helper_t;
|
2005-09-08 17:12:38 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
portmap_domtrans_helper($1)
|
|
|
|
role $2 types portmap_helper_t;
|
|
|
|
allow portmap_helper_t $3:chr_file { getattr read write ioctl };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-08-15 20:00:58 +00:00
|
|
|
## Send UDP network traffic to portmap. (Deprecated)
|
2005-09-08 17:12:38 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-08 17:12:38 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`portmap_udp_send',`
|
2006-08-15 20:00:58 +00:00
|
|
|
refpolicywarn(`$0($*) has been deprecated.')
|
2005-09-08 17:12:38 +00:00
|
|
|
')
|
2005-10-24 01:53:13 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-08-15 20:00:58 +00:00
|
|
|
## Send and receive UDP network traffic from portmap. (Deprecated)
|
2005-10-24 01:53:13 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-24 01:53:13 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-24 01:53:13 +00:00
|
|
|
## </param>
|
|
|
|
#
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`portmap_udp_chat',`
|
2006-08-15 20:00:58 +00:00
|
|
|
refpolicywarn(`$0($*) has been deprecated.')
|
2005-10-24 01:53:13 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2006-08-15 20:00:58 +00:00
|
|
|
## Connect to portmap over a TCP socket (Deprecated)
|
2005-10-24 01:53:13 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-10-24 01:53:13 +00:00
|
|
|
## The type of the process performing this action.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-10-24 01:53:13 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`portmap_tcp_connect',`
|
2006-08-15 20:00:58 +00:00
|
|
|
refpolicywarn(`$0($*) has been deprecated.')
|
2005-10-24 01:53:13 +00:00
|
|
|
')
|