2006-10-17 16:58:17 +00:00
|
|
|
## <summary>NetLabel/CIPSO labeled networking management</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2008-12-03 19:16:20 +00:00
|
|
|
## Execute netlabel_mgmt in the netlabel_mgmt domain.
|
2006-10-17 16:58:17 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2008-12-03 19:16:20 +00:00
|
|
|
## <summary>
|
2010-08-05 13:10:15 +00:00
|
|
|
## Domain allowed to transition.
|
2008-12-03 19:16:20 +00:00
|
|
|
## </summary>
|
2006-10-17 16:58:17 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`netlabel_domtrans_mgmt',`
|
2008-12-03 18:33:19 +00:00
|
|
|
gen_require(`
|
|
|
|
type netlabel_mgmt_t, netlabel_mgmt_exec_t;
|
|
|
|
')
|
2006-10-17 16:58:17 +00:00
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_search_bin($1)
|
2009-06-26 14:40:13 +00:00
|
|
|
domtrans_pattern($1, netlabel_mgmt_exec_t, netlabel_mgmt_t)
|
2006-10-17 16:58:17 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2008-12-03 19:16:20 +00:00
|
|
|
## Execute netlabel_mgmt in the netlabel_mgmt domain, and
|
|
|
|
## allow the specified role the netlabel_mgmt domain.
|
2006-10-17 16:58:17 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2008-12-03 19:16:20 +00:00
|
|
|
## <summary>
|
2010-08-05 13:10:15 +00:00
|
|
|
## Domain allowed to transition.
|
2008-12-03 19:16:20 +00:00
|
|
|
## </summary>
|
2006-10-17 16:58:17 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
|
|
|
## <summary>
|
2010-08-03 13:20:22 +00:00
|
|
|
## Role allowed access.
|
2006-10-17 16:58:17 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <rolecap/>
|
|
|
|
#
|
|
|
|
interface(`netlabel_run_mgmt',`
|
|
|
|
gen_require(`
|
|
|
|
type netlabel_mgmt_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
netlabel_domtrans_mgmt($1)
|
|
|
|
role $2 types netlabel_mgmt_t;
|
|
|
|
')
|