## NX remote desktop.
########################################
##
## Transition to nx server.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`nx_spec_domtrans_server',`
gen_require(`
type nx_server_t, nx_server_exec_t;
')
corecmd_search_bin($1)
spec_domtrans_pattern($1, nx_server_exec_t, nx_server_t)
')
########################################
##
## Read nx home directory content.
##
##
##
## Domain allowed access.
##
##
#
interface(`nx_read_home_files',`
gen_require(`
type nx_server_ssh_home_t, nx_server_var_lib_t;
')
files_search_var_lib($1)
read_files_pattern($1, { nx_server_var_lib_t nx_server_ssh_home_t }, nx_server_ssh_home_t)
')
########################################
##
## Search nx lib directories.
##
##
##
## Domain allowed access.
##
##
#
interface(`nx_search_var_lib',`
gen_require(`
type nx_server_var_lib_t;
')
files_search_var_lib($1)
allow $1 nx_server_var_lib_t:dir search_dir_perms;
')
########################################
##
## Create specified objects in nx lib
## directories with a private type.
##
##
##
## Domain allowed access.
##
##
##
##
## The type of the object to be created.
##
##
##
##
## The object class of the object being created.
##
##
##
##
## The name of the object being created.
##
##
#
interface(`nx_var_lib_filetrans',`
gen_require(`
type nx_server_var_lib_t;
')
filetrans_pattern($1, nx_server_var_lib_t, $2, $3, $4)
')