Chris PeBenito 17de1b
## <summary>Clockspeed simple network time protocol client</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##      Execute clockspeed utilities in the clockspeed_cli domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##      <summary>
Chris PeBenito 17de1b
##      Domain allowed access.
Chris PeBenito 17de1b
##      </summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`clockspeed_domtrans_cli',`
Chris PeBenito 17de1b
        gen_require(`
Chris PeBenito 17de1b
                type clockspeed_cli_t, clockspeed_cli_exec_t;
Chris PeBenito 17de1b
        ')
Chris PeBenito 17de1b
Chris PeBenito c0868a
	domtrans_pattern($1, clockspeed_cli_exec_t, clockspeed_cli_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Allow the specified role the clockspeed_cli domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="role">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The role to be allowed the clockspeed_cli domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="terminal">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the terminal allow the clockspeed_cli domain to use.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito bbcd3c
## <rolecap/>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
template(`clockspeed_run_cli',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type clockspeed_cli_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	role $2 types clockspeed_cli_t;
Chris PeBenito 17de1b
	clockspeed_domtrans_cli($1)
Chris PeBenito 17de1b
	allow clockspeed_cli_t $3:chr_file { getattr read write ioctl };
Chris PeBenito 17de1b
Chris PeBenito 17de1b
')