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 871079
##	The type of the process performing this action.
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 871079
	domain_auto_trans($1,ddcprobe_exec_t,ddcprobe_t)
Chris PeBenito 871079
Chris PeBenito 871079
	allow $1 ddcprobe_t:fd use;
Chris PeBenito 871079
	allow ddcprobe_t $1:fd use;
Chris PeBenito 871079
	allow ddcprobe_t $1:fifo_file rw_file_perms;
Chris PeBenito 871079
	allow ddcprobe_t $1:process sigchld;
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 871079
##	The type of the process performing this action.
Chris PeBenito 871079
## </param>
Chris PeBenito 871079
## <param name="role">
Chris PeBenito 871079
##	Role to be authenticated for ddcprobe domain.
Chris PeBenito 871079
## </param>
Chris PeBenito 871079
## <param name="terminal">
Chris PeBenito 871079
##	The type of the terminal allow the clock domain to use.
Chris PeBenito 871079
## </param>
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
')