Blame policy/modules/admin/ddcprobe.if
|
Chris PeBenito |
871079 |
## <summary>ddcprobe retrieves monitor and graphics card information</summary>
|
|
Chris PeBenito |
871079 |
|
|
Chris PeBenito |
871079 |
########################################
|
|
Chris PeBenito |
871079 |
## <summary>
|
|
Chris PeBenito |
871079 |
## Execute ddcprobe in the ddcprobe domain.
|
|
Chris PeBenito |
871079 |
## </summary>
|
|
Chris PeBenito |
871079 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
871079 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
871079 |
## </param>
|
|
Chris PeBenito |
871079 |
#
|
|
Chris PeBenito |
871079 |
interface(`ddcprobe_domtrans',`
|
|
Chris PeBenito |
871079 |
gen_require(`
|
|
Chris PeBenito |
871079 |
type ddcprobe_t, ddcprobe_exec_t;
|
|
Chris PeBenito |
871079 |
')
|
|
Chris PeBenito |
871079 |
|
|
Chris PeBenito |
c0868a |
domtrans_pattern($1,ddcprobe_exec_t,ddcprobe_t)
|
|
Chris PeBenito |
871079 |
')
|
|
Chris PeBenito |
871079 |
|
|
Chris PeBenito |
871079 |
########################################
|
|
Chris PeBenito |
871079 |
## <summary>
|
|
Chris PeBenito |
871079 |
## Execute ddcprobe in the ddcprobe domain, and
|
|
Chris PeBenito |
871079 |
## allow the specified role the ddcprobe domain.
|
|
Chris PeBenito |
871079 |
## </summary>
|
|
Chris PeBenito |
871079 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
871079 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
871079 |
## </param>
|
|
Chris PeBenito |
871079 |
## <param name="role">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
871079 |
## Role to be authenticated for ddcprobe domain.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
871079 |
## </param>
|
|
Chris PeBenito |
871079 |
## <param name="terminal">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
871079 |
## The type of the terminal allow the clock domain to use.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
871079 |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
871079 |
#
|
|
Chris PeBenito |
871079 |
interface(`ddcprobe_run',`
|
|
Chris PeBenito |
871079 |
gen_require(`
|
|
Chris PeBenito |
871079 |
type ddcprobe_t;
|
|
Chris PeBenito |
871079 |
')
|
|
Chris PeBenito |
871079 |
|
|
Chris PeBenito |
871079 |
ddcprobe_domtrans($1)
|
|
Chris PeBenito |
871079 |
role $2 types ddcprobe_t;
|
|
Chris PeBenito |
871079 |
allow ddcprobe_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
871079 |
')
|