Chris PeBenito 17de1b
## <summary>RAID array management tools</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute software raid tools in the mdadm domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the process performing this action.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`raid_domtrans_mdadm',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type mdadm_t, mdadm_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 8021cb
	corecmd_search_bin($1)
Chris PeBenito 3f67f7
	domtrans_pattern($1, mdadm_exec_t, mdadm_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Create, read, write, and delete the mdadm pid files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <desc>
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	Create, read, write, and delete the mdadm pid files.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	Added for use in the init module.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the process performing this action.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`raid_manage_mdadm_pid',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type mdadm_var_run_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	# FIXME: maybe should have a type_transition.  not
Chris PeBenito 17de1b
	# clear what this is doing, from the original
Chris PeBenito 17de1b
	# mdadm policy
Chris PeBenito c0868a
	allow $1 mdadm_var_run_t:file manage_file_perms;
Chris PeBenito 17de1b
')