Chris PeBenito 20e306
## <summary>Decode DMI data for x86/ia64 bioses.</summary>
Chris PeBenito 20e306
Chris PeBenito 20e306
########################################
Chris PeBenito 20e306
## <summary>
Chris PeBenito 20e306
##	Execute dmidecode in the dmidecode domain.
Chris PeBenito 20e306
## </summary>
Chris PeBenito 20e306
## <param name="domain">
Chris PeBenito 5bc9f3
##	Domain allowed access.
Chris PeBenito 20e306
## </param>
Chris PeBenito 20e306
#
Chris PeBenito 20e306
interface(`dmidecode_domtrans',`
Chris PeBenito 20e306
	gen_require(`
Chris PeBenito 20e306
		type dmidecode_t, dmidecode_exec_t;
Chris PeBenito 20e306
	')
Chris PeBenito 20e306
Chris PeBenito 20e306
	domain_auto_trans($1,dmidecode_exec_t,dmidecode_t)
Chris PeBenito 20e306
Chris PeBenito 20e306
	allow $1 dmidecode_t:fd use;
Chris PeBenito 20e306
	allow dmidecode_t $1:fd use;
Chris PeBenito 20e306
	allow dmidecode_t $1:fifo_file rw_file_perms;
Chris PeBenito 20e306
	allow dmidecode_t $1:process sigchld;
Chris PeBenito 20e306
')
Chris PeBenito 20e306
Chris PeBenito 20e306
########################################
Chris PeBenito 20e306
## <summary>
Chris PeBenito 20e306
##	Execute dmidecode in the dmidecode domain, and
Chris PeBenito 20e306
##	allow the specified role the dmidecode domain.
Chris PeBenito 20e306
## </summary>
Chris PeBenito 20e306
## <param name="domain">
Chris PeBenito 20e306
##	The type of the process performing this action.
Chris PeBenito 20e306
## </param>
Chris PeBenito 20e306
## <param name="role">
Chris PeBenito 20e306
##	The role to be allowed the dmidecode domain.
Chris PeBenito 20e306
## </param>
Chris PeBenito 20e306
## <param name="terminal">
Chris PeBenito 20e306
##	The type of the terminal allow the dmidecode domain to use.
Chris PeBenito 20e306
## </param>
Chris PeBenito 20e306
#
Chris PeBenito 20e306
interface(`dmidecode_run',`
Chris PeBenito 20e306
	gen_require(`
Chris PeBenito 20e306
		type dmidecode_t;
Chris PeBenito 20e306
	')
Chris PeBenito 20e306
Chris PeBenito 20e306
	dmidecode_domtrans($1)
Chris PeBenito 20e306
	role $2 types dmidecode_t;
Chris PeBenito 20e306
	allow dmidecode_t $3:chr_file rw_term_perms;
Chris PeBenito 20e306
')