Chris PeBenito fee486
policy_module(certmaster, 1.1.2)
Chris PeBenito 339235
Chris PeBenito 339235
########################################
Chris PeBenito 339235
#
Chris PeBenito 339235
# Declarations
Chris PeBenito 339235
#
Chris PeBenito 339235
Chris PeBenito 339235
type certmaster_t;
Chris PeBenito 339235
type certmaster_exec_t;
Chris PeBenito 339235
init_daemon_domain(certmaster_t, certmaster_exec_t)
Chris PeBenito 339235
Chris PeBenito 339235
type certmaster_initrc_exec_t;
Chris PeBenito 339235
init_script_file(certmaster_initrc_exec_t)
Chris PeBenito 339235
Chris PeBenito 339235
type certmaster_etc_rw_t;
Chris PeBenito 339235
files_type(certmaster_etc_rw_t)
Chris PeBenito 339235
Chris PeBenito 339235
type certmaster_var_lib_t;
Chris PeBenito 339235
files_type(certmaster_var_lib_t)
Chris PeBenito 339235
Chris PeBenito 339235
type certmaster_var_log_t;
Chris PeBenito 339235
logging_log_file(certmaster_var_log_t)
Chris PeBenito 339235
Chris PeBenito 339235
type certmaster_var_run_t;
Chris PeBenito 339235
files_pid_file(certmaster_var_run_t)
Chris PeBenito 339235
Chris PeBenito 339235
###########################################
Chris PeBenito bd21cb
#
Chris PeBenito bd21cb
# certmaster local policy
Chris PeBenito 339235
#
Chris PeBenito 339235
Chris PeBenito bd21cb
allow certmaster_t self:capability { dac_read_search dac_override sys_tty_config };
Chris PeBenito 339235
allow certmaster_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 339235
Chris PeBenito 339235
# config files
Chris PeBenito 339235
list_dirs_pattern(certmaster_t, certmaster_etc_rw_t, certmaster_etc_rw_t)
Chris PeBenito 339235
manage_files_pattern(certmaster_t, certmaster_etc_rw_t, certmaster_etc_rw_t)
Chris PeBenito 339235
Chris PeBenito 339235
# var/lib files for certmaster
Chris PeBenito 339235
manage_files_pattern(certmaster_t, certmaster_var_lib_t, certmaster_var_lib_t)
Chris PeBenito 339235
manage_dirs_pattern(certmaster_t, certmaster_var_lib_t, certmaster_var_lib_t)
Chris PeBenito 339235
files_var_lib_filetrans(certmaster_t, certmaster_var_lib_t, { file dir })
Chris PeBenito 339235
Chris PeBenito 339235
# log files
Chris PeBenito 339235
manage_files_pattern(certmaster_t, certmaster_var_log_t, certmaster_var_log_t)
Dominick Grift 68ac47
logging_log_filetrans(certmaster_t, certmaster_var_log_t, file)
Chris PeBenito 339235
Chris PeBenito 339235
# pid file
Chris PeBenito 339235
manage_files_pattern(certmaster_t, certmaster_var_run_t, certmaster_var_run_t)
Chris PeBenito 339235
manage_sock_files_pattern(certmaster_t, certmaster_var_run_t, certmaster_var_run_t)
Dominick Grift 68ac47
files_pid_filetrans(certmaster_t, certmaster_var_run_t, { file sock_file })
Chris PeBenito 339235
Chris PeBenito 339235
# read meminfo
Chris PeBenito 339235
kernel_read_system_state(certmaster_t)
Chris PeBenito 339235
Chris PeBenito 339235
corecmd_search_bin(certmaster_t)
Chris PeBenito 339235
corecmd_getattr_bin_files(certmaster_t)
Chris PeBenito 339235
Chris PeBenito 339235
corenet_tcp_bind_generic_node(certmaster_t)
Chris PeBenito 339235
corenet_tcp_bind_certmaster_port(certmaster_t)
Chris PeBenito 339235
Chris PeBenito 339235
files_search_etc(certmaster_t)
Dan Walsh a66812
files_read_usr_files(certmaster_t)
Chris PeBenito 339235
files_list_var(certmaster_t)
Chris PeBenito 339235
files_search_var_lib(certmaster_t)
Chris PeBenito 339235
Chris PeBenito 339235
auth_use_nsswitch(certmaster_t)
Chris PeBenito 339235
Chris PeBenito 339235
miscfiles_read_localization(certmaster_t)
Chris PeBenito 339235
Chris PeBenito e9d6df
miscfiles_manage_generic_cert_dirs(certmaster_t)
Chris PeBenito e9d6df
miscfiles_manage_generic_cert_files(certmaster_t)