|
Chris PeBenito |
7b61fe |
## <summary>Universal Addresses to RPC Program Number Mapper</summary>
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
########################################
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Execute a domain transition to run rpcbind.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## <param name="domain">
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Domain allowed to transition.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## </param>
|
|
Chris PeBenito |
7b61fe |
#
|
|
Chris PeBenito |
7b61fe |
interface(`rpcbind_domtrans',`
|
|
Chris PeBenito |
7b61fe |
gen_require(`
|
|
Chris PeBenito |
7b61fe |
type rpcbind_t, rpcbind_exec_t;
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
domtrans_pattern($1,rpcbind_exec_t,rpcbind_t)
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
########################################
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Read rpcbind PID files.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## <param name="domain">
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Domain allowed access.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## </param>
|
|
Chris PeBenito |
7b61fe |
#
|
|
Chris PeBenito |
7b61fe |
interface(`rpcbind_read_pid_files',`
|
|
Chris PeBenito |
7b61fe |
gen_require(`
|
|
Chris PeBenito |
7b61fe |
type rpcbind_var_run_t;
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
files_search_pids($1)
|
|
Chris PeBenito |
7b61fe |
allow $1 rpcbind_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
########################################
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Search rpcbind lib directories.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## <param name="domain">
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Domain allowed access.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## </param>
|
|
Chris PeBenito |
7b61fe |
#
|
|
Chris PeBenito |
7b61fe |
interface(`rpcbind_search_lib',`
|
|
Chris PeBenito |
7b61fe |
gen_require(`
|
|
Chris PeBenito |
7b61fe |
type rpcbind_var_lib_t;
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
allow $1 rpcbind_var_lib_t:dir search_dir_perms;
|
|
Chris PeBenito |
7b61fe |
files_search_var_lib($1)
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
########################################
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Read rpcbind lib files.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## <param name="domain">
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Domain allowed access.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## </param>
|
|
Chris PeBenito |
7b61fe |
#
|
|
Chris PeBenito |
7b61fe |
interface(`rpcbind_read_lib_files',`
|
|
Chris PeBenito |
7b61fe |
gen_require(`
|
|
Chris PeBenito |
7b61fe |
type rpcbind_var_lib_t;
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
read_files_pattern($1,rpcbind_var_lib_t,rpcbind_var_lib_t)
|
|
Chris PeBenito |
7b61fe |
files_search_var_lib($1)
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
########################################
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Create, read, write, and delete
|
|
Chris PeBenito |
7b61fe |
## rpcbind lib files.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## <param name="domain">
|
|
Chris PeBenito |
7b61fe |
## <summary>
|
|
Chris PeBenito |
7b61fe |
## Domain allowed access.
|
|
Chris PeBenito |
7b61fe |
## </summary>
|
|
Chris PeBenito |
7b61fe |
## </param>
|
|
Chris PeBenito |
7b61fe |
#
|
|
Chris PeBenito |
7b61fe |
interface(`rpcbind_manage_lib_files',`
|
|
Chris PeBenito |
7b61fe |
gen_require(`
|
|
Chris PeBenito |
7b61fe |
type rpcbind_var_lib_t;
|
|
Chris PeBenito |
7b61fe |
')
|
|
Chris PeBenito |
7b61fe |
|
|
Chris PeBenito |
7b61fe |
manage_files_pattern($1,rpcbind_var_lib_t,rpcbind_var_lib_t)
|
|
Chris PeBenito |
7b61fe |
files_search_var_lib($1)
|
|
Chris PeBenito |
7b61fe |
')
|