Blame policy/modules/admin/dmidecode.if
|
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 |
885b83 |
## <summary>
|
|
Dominick Grift |
77e4b5 |
## Domain allowed to transition.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
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 |
0bfccd |
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 |
885b83 |
## <summary>
|
|
Dominick Grift |
77e4b5 |
## Domain allowed to transition.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
20e306 |
## </param>
|
|
Chris PeBenito |
20e306 |
## <param name="role">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
a7ee7f |
## Role allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
20e306 |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
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 |
')
|