
## <summary>policy for CZwd</summary>


########################################
## <summary>
##	Execute a domain transition to run CZwd.
## </summary>
## <param name="domain">
## <summary>
##	Domain allowed access.
## </summary>
## </param>
#
interface(`CZwd_domtrans',`
	gen_require(`
		type CZwd_t, CZwd_exec_t;
	')

	domtrans_pattern($1, CZwd_exec_t, CZwd_t)
')


########################################
## <summary>
##	Execute CZwd in the CZwd domain, and
##	allow the specified role the CZwd domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access
##	</summary>
## </param>
## <param name="role">
##	<summary>
##	The role to be allowed the CZwd domain.
##	</summary>
## </param>
#
interface(`CZwd_run',`
	gen_require(`
		type CZwd_t;
	')

	CZwd_domtrans($1)
	role $2 types CZwd_t;
')

########################################
## <summary>
##	Role access for CZwd
## </summary>
## <param name="role">
##	<summary>
##	Role allowed access
##	</summary>
## </param>
## <param name="domain">
##	<summary>
##	User domain for the role
##	</summary>
## </param>
#
interface(`CZwd_role',`
	gen_require(`
              type CZwd_t;
	')

	role $1 types CZwd_t;

	CZwd_domtrans($2)

	ps_process_pattern($2, CZwd_t)
	allow $2 CZwd_t:process signal;
')
