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

24 lines
589 B
Plaintext
Raw Normal View History

## <summary>SELinux MLS/MCS label translation service.</summary>
#######################################
## <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;
')
allow $1 self:unix_stream_socket create_stream_socket_perms;
allow $1 setrans_t:context translate;
2006-12-12 20:08:08 +00:00
stream_connect_pattern($1,setrans_var_run_t,setrans_var_run_t,setrans_t)
files_list_pids($1)
')