2006-05-17 14:50:31 +00:00
|
|
|
## <summary>SELinux MLS/MCS label translation service.</summary>
|
|
|
|
|
2009-11-24 14:41:03 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute setrans server in the setrans domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
2010-08-05 13:10:15 +00:00
|
|
|
## Domain allowed to transition.
|
2009-11-24 14:41:03 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
#
|
|
|
|
interface(`setrans_initrc_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type setrans_initrc_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
init_labeled_script_domtrans($1, setrans_initrc_exec_t)
|
|
|
|
')
|
|
|
|
|
2006-05-17 14:50:31 +00:00
|
|
|
#######################################
|
|
|
|
## <summary>
|
|
|
|
## Allow a domain to translate contexts.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`setrans_translate_context',`
|
|
|
|
gen_require(`
|
|
|
|
type setrans_t, setrans_var_run_t;
|
2008-06-24 12:53:30 +00:00
|
|
|
class context translate;
|
2006-05-17 14:50:31 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 self:unix_stream_socket create_stream_socket_perms;
|
2006-10-20 14:44:23 +00:00
|
|
|
allow $1 setrans_t:context translate;
|
2009-06-26 14:40:13 +00:00
|
|
|
stream_connect_pattern($1, setrans_var_run_t, setrans_var_run_t, setrans_t)
|
2006-05-17 14:50:31 +00:00
|
|
|
files_list_pids($1)
|
|
|
|
')
|