Blame policy/modules/admin/kudzu.if
|
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 |
885b83 |
## <summary>
|
|
Dominick Grift |
77e4b5 |
## Domain allowed to transition.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
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 |
')
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, kudzu_exec_t, kudzu_t)
|
|
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 |
885b83 |
## <summary>
|
|
Dominick Grift |
77e4b5 |
## Domain allowed to transition.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
842859 |
## </param>
|
|
Chris PeBenito |
842859 |
## <param name="role">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
a7ee7f |
## Role allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
842859 |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
842859 |
#
|
|
Chris PeBenito |
842859 |
interface(`kudzu_run',`
|
|
Chris PeBenito |
842859 |
gen_require(`
|
|
Chris PeBenito |
842859 |
type kudzu_t;
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
kudzu_domtrans($1)
|
|
Chris PeBenito |
842859 |
role $2 types kudzu_t;
|
|
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 |
885b83 |
## <summary>
|
|
Chris PeBenito |
a72e42 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
871079 |
## </param>
|
|
Chris PeBenito |
871079 |
#
|
|
Chris PeBenito |
871079 |
# cjp: added for ddcprobe
|
|
Chris PeBenito |
1815ba |
interface(`kudzu_getattr_exec_files',`
|
|
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 |
')
|