## Resource Group Manager.
#######################################
##
## Execute a domain transition to run rgmanager.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`rgmanager_domtrans',`
gen_require(`
type rgmanager_t, rgmanager_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, rgmanager_exec_t, rgmanager_t)
')
########################################
##
## Connect to rgmanager with a unix
## domain stream socket.
##
##
##
## Domain allowed access.
##
##
#
interface(`rgmanager_stream_connect',`
gen_require(`
type rgmanager_t, rgmanager_runtime_t;
')
files_search_runtime($1)
stream_connect_pattern($1, rgmanager_runtime_t, rgmanager_runtime_t, rgmanager_t)
')
######################################
##
## Create, read, write, and delete
## rgmanager tmp files.
##
##
##
## Domain allowed access.
##
##
#
interface(`rgmanager_manage_tmp_files',`
gen_require(`
type rgmanager_tmp_t;
')
files_search_tmp($1)
manage_files_pattern($1, rgmanager_tmp_t, rgmanager_tmp_t)
')
######################################
##
## Create, read, write, and delete
## rgmanager tmpfs files.
##
##
##
## Domain allowed access.
##
##
#
interface(`rgmanager_manage_tmpfs_files',`
gen_require(`
type rgmanager_tmpfs_t;
')
fs_search_tmpfs($1)
manage_files_pattern($1, rgmanager_tmpfs_t, rgmanager_tmpfs_t)
')
######################################
##
## All of the rules required to
## administrate an rgmanager environment.
##
##
##
## Domain allowed access.
##
##
##
##
## Role allowed access.
##
##
##
#
interface(`rgmanager_admin',`
gen_require(`
type rgmanager_t, rgmanager_initrc_exec_t, rgmanager_tmp_t;
type rgmanager_tmpfs_t, rgmanager_var_log_t, rgmanager_runtime_t;
')
allow $1 rgmanager_t:process { ptrace signal_perms };
ps_process_pattern($1, rgmanager_t)
init_startstop_service($1, $2, rgmanager_t, rgmanager_initrc_exec_t)
files_list_tmp($1)
admin_pattern($1, rgmanager_tmp_t)
admin_pattern($1, rgmanager_tmpfs_t)
logging_list_logs($1)
admin_pattern($1, rgmanager_var_log_t)
files_list_runtime($1)
admin_pattern($1, rgmanager_runtime_t)
')