Blame refpolicy/policy/modules/services/clockspeed.if
|
Chris PeBenito |
46bec4 |
## <summary>Clockspeed simple network time protocol client</summary>
|
|
Chris PeBenito |
46bec4 |
|
|
Chris PeBenito |
46bec4 |
########################################
|
|
Chris PeBenito |
46bec4 |
## <summary>
|
|
Chris PeBenito |
46bec4 |
## Execute clockspeed utilities in the clockspeed_cli domain.
|
|
Chris PeBenito |
46bec4 |
## </summary>
|
|
Chris PeBenito |
46bec4 |
## <param name="domain">
|
|
Chris PeBenito |
46bec4 |
## <summary>
|
|
Chris PeBenito |
46bec4 |
## Domain allowed access.
|
|
Chris PeBenito |
46bec4 |
## </summary>
|
|
Chris PeBenito |
46bec4 |
## </param>
|
|
Chris PeBenito |
46bec4 |
#
|
|
Chris PeBenito |
46bec4 |
interface(`clockspeed_domtrans_cli',`
|
|
Chris PeBenito |
46bec4 |
gen_require(`
|
|
Chris PeBenito |
46bec4 |
type clockspeed_cli_t, clockspeed_cli_exec_t;
|
|
Chris PeBenito |
46bec4 |
')
|
|
Chris PeBenito |
46bec4 |
|
|
Chris PeBenito |
46bec4 |
domain_auto_trans($1, clockspeed_cli_exec_t, clockspeed_cli_t)
|
|
Chris PeBenito |
46bec4 |
allow clockspeed_cli_t $1:fd use;
|
|
Chris PeBenito |
46bec4 |
allow clockspeed_cli_t $1:fifo_file { read write };
|
|
Chris PeBenito |
46bec4 |
allow clockspeed_cli_t $1:process sigchld;
|
|
Chris PeBenito |
46bec4 |
')
|
|
Chris PeBenito |
46bec4 |
|
|
Chris PeBenito |
46bec4 |
########################################
|
|
Chris PeBenito |
46bec4 |
## <summary>
|
|
Chris PeBenito |
46bec4 |
## Allow the specified role the clockspeed_cli domain.
|
|
Chris PeBenito |
46bec4 |
## </summary>
|
|
Chris PeBenito |
46bec4 |
## <param name="domain">
|
|
Chris PeBenito |
46bec4 |
## <summary>
|
|
Chris PeBenito |
46bec4 |
## Domain allowed access.
|
|
Chris PeBenito |
46bec4 |
## </summary>
|
|
Chris PeBenito |
46bec4 |
## </param>
|
|
Chris PeBenito |
46bec4 |
## <param name="role">
|
|
Chris PeBenito |
46bec4 |
## <summary>
|
|
Chris PeBenito |
46bec4 |
## The role to be allowed the clockspeed_cli domain.
|
|
Chris PeBenito |
46bec4 |
## </summary>
|
|
Chris PeBenito |
46bec4 |
## </param>
|
|
Chris PeBenito |
46bec4 |
## <param name="terminal">
|
|
Chris PeBenito |
46bec4 |
## <summary>
|
|
Chris PeBenito |
46bec4 |
## The type of the terminal allow the clockspeed_cli domain to use.
|
|
Chris PeBenito |
46bec4 |
## </summary>
|
|
Chris PeBenito |
46bec4 |
## </param>
|
|
Chris PeBenito |
46bec4 |
#
|
|
Chris PeBenito |
46bec4 |
template(`clockspeed_run_cli',`
|
|
Chris PeBenito |
46bec4 |
gen_require(`
|
|
Chris PeBenito |
46bec4 |
type clockspeed_cli_t;
|
|
Chris PeBenito |
46bec4 |
')
|
|
Chris PeBenito |
46bec4 |
|
|
Chris PeBenito |
46bec4 |
role $2 types clockspeed_cli_t;
|
|
Chris PeBenito |
46bec4 |
clockspeed_domtrans_cli($1)
|
|
Chris PeBenito |
46bec4 |
allow clockspeed_cli_t $3:chr_file { getattr read write ioctl };
|
|
Chris PeBenito |
46bec4 |
|
|
Chris PeBenito |
46bec4 |
')
|