Chris PeBenito 842859
## <summary>Hardware detection and configuration tools</summary>
Chris PeBenito 842859
Chris PeBenito 842859
########################################
Chris PeBenito 842859
## <summary>
Chris PeBenito 842859
##	Execute kudzu in the kudzu domain.
Chris PeBenito 842859
## </summary>
Chris PeBenito 842859
## <param name="domain">
Chris PeBenito 842859
##	The type of the process performing this action.
Chris PeBenito 842859
## </param>
Chris PeBenito 842859
#
Chris PeBenito 842859
interface(`kudzu_domtrans',`
Chris PeBenito 842859
	gen_require(`
Chris PeBenito 842859
		type kudzu_t, kudzu_exec_t;
Chris PeBenito 842859
		class process sigchld;
Chris PeBenito 842859
		class fd use;
Chris PeBenito 842859
		class fifo_file rw_file_perms;
Chris PeBenito 842859
	')
Chris PeBenito 842859
Chris PeBenito 842859
	domain_auto_trans($1,kudzu_exec_t,kudzu_t)
Chris PeBenito 842859
Chris PeBenito 842859
	allow $1 kudzu_t:fd use;
Chris PeBenito 842859
	allow kudzu_t $1:fd use;
Chris PeBenito 842859
	allow kudzu_t $1:fifo_file rw_file_perms;
Chris PeBenito 842859
	allow kudzu_t $1:process sigchld;
Chris PeBenito 842859
')
Chris PeBenito 842859
Chris PeBenito 842859
########################################
Chris PeBenito 842859
## <summary>
Chris PeBenito 842859
##	Execute kudzu in the kudzu domain, and
Chris PeBenito 842859
##	allow the specified role the kudzu domain.
Chris PeBenito 842859
## </summary>
Chris PeBenito 842859
## <param name="domain">
Chris PeBenito 842859
##	The type of the process performing this action.
Chris PeBenito 842859
## </param>
Chris PeBenito 842859
## <param name="role">
Chris PeBenito 842859
##	The role to be allowed the kudzu domain.
Chris PeBenito 842859
## </param>
Chris PeBenito 842859
## <param name="terminal">
Chris PeBenito 842859
##	The type of the terminal allow the kudzu domain to use.
Chris PeBenito 842859
## </param>
Chris PeBenito 842859
#
Chris PeBenito 842859
interface(`kudzu_run',`
Chris PeBenito 842859
	gen_require(`
Chris PeBenito 842859
		type kudzu_t;
Chris PeBenito 842859
		class chr_file rw_term_perms;
Chris PeBenito 842859
	')
Chris PeBenito 842859
Chris PeBenito 842859
	kudzu_domtrans($1)
Chris PeBenito 842859
	role $2 types kudzu_t;
Chris PeBenito 842859
	allow kudzu_t $3:chr_file rw_term_perms;
Chris PeBenito 842859
')
Chris PeBenito 871079
Chris PeBenito 871079
########################################
Chris PeBenito 871079
## <summary>
Chris PeBenito 871079
##	Get attributes of kudzu executable.
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
# cjp: added for ddcprobe
Chris PeBenito 871079
interface(`kudzu_getattr_exec_file',`
Chris PeBenito 871079
	gen_require(`
Chris PeBenito 871079
		type kudzu_exec_t;
Chris PeBenito 871079
	')
Chris PeBenito 871079
Chris PeBenito 871079
	allow $1 kudzu_exec_t:file getattr;
Chris PeBenito 871079
')