selinux-policy/policy/modules/system/netlabel.if

47 lines
1013 B
Plaintext
Raw Normal View History

## <summary>NetLabel/CIPSO labeled networking management</summary>
########################################
## <summary>
2008-12-03 19:16:20 +00:00
## Execute netlabel_mgmt in the netlabel_mgmt domain.
## </summary>
## <param name="domain">
2008-12-03 19:16:20 +00:00
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`netlabel_domtrans_mgmt',`
gen_require(`
type netlabel_mgmt_t, netlabel_mgmt_exec_t;
')
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)
')
########################################
## <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.
## </summary>
## <param name="domain">
2008-12-03 19:16:20 +00:00
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <param name="role">
## <summary>
## The role to be allowed the netlabel_mgmt domain.
## </summary>
## </param>
## <rolecap/>
#
interface(`netlabel_run_mgmt',`
gen_require(`
type netlabel_mgmt_t;
')
netlabel_domtrans_mgmt($1)
role $2 types netlabel_mgmt_t;
')