Blame refpolicy/policy/modules/system/setrans.if
|
Chris PeBenito |
165b42 |
## <summary>SELinux MLS/MCS label translation service.</summary>
|
|
Chris PeBenito |
165b42 |
|
|
Chris PeBenito |
165b42 |
#######################################
|
|
Chris PeBenito |
165b42 |
## <summary>
|
|
Chris PeBenito |
165b42 |
## Allow a domain to translate contexts.
|
|
Chris PeBenito |
165b42 |
## </summary>
|
|
Chris PeBenito |
165b42 |
## <param name="domain">
|
|
Chris PeBenito |
165b42 |
## <summary>
|
|
Chris PeBenito |
165b42 |
## Domain allowed access.
|
|
Chris PeBenito |
165b42 |
## </summary>
|
|
Chris PeBenito |
165b42 |
## </param>
|
|
Chris PeBenito |
165b42 |
#
|
|
Chris PeBenito |
165b42 |
interface(`setrans_translate_context',`
|
|
Chris PeBenito |
165b42 |
gen_require(`
|
|
Chris PeBenito |
165b42 |
type setrans_t, setrans_var_run_t;
|
|
Chris PeBenito |
165b42 |
')
|
|
Chris PeBenito |
165b42 |
|
|
Chris PeBenito |
165b42 |
allow $1 self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
165b42 |
|
|
Chris PeBenito |
165b42 |
allow $1 setrans_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
165b42 |
allow $1 setrans_var_run_t:unix_stream_socket rw_socket_perms;
|
|
Chris PeBenito |
165b42 |
allow $1 setrans_var_run_t:sock_file rw_file_perms;
|
|
Chris PeBenito |
165b42 |
allow $1 setrans_var_run_t:dir search_dir_perms;
|
|
Chris PeBenito |
165b42 |
files_list_pids($1)
|
|
Chris PeBenito |
165b42 |
')
|