Chris PeBenito 20e929
Chris PeBenito 3d03a4
policy_module(razor,1.0.1)
Chris PeBenito 20e929
Chris PeBenito 20e929
########################################
Chris PeBenito 20e929
#
Chris PeBenito 20e929
# Declarations
Chris PeBenito 20e929
#
Chris PeBenito 20e929
Chris PeBenito 20e929
type razor_t;
Chris PeBenito 20e929
type razor_exec_t;
Chris PeBenito 20e929
domain_type(razor_t)
Chris PeBenito 20e929
domain_entry_file(razor_t,razor_exec_t)
Chris PeBenito 20e929
razor_common_domain_template(razor)
Chris PeBenito 20e929
role system_r types razor_t;
Chris PeBenito 20e929
Chris PeBenito 20e929
type razor_etc_t;
Chris PeBenito 20e929
files_config_file(razor_etc_t)
Chris PeBenito 20e929
Chris PeBenito 20e929
type razor_log_t;
Chris PeBenito 20e929
logging_log_file(razor_log_t)
Chris PeBenito 20e929
Chris PeBenito 20e929
type razor_var_lib_t;
Chris PeBenito 20e929
files_type(razor_var_lib_t)
Chris PeBenito 20e929
Chris PeBenito 20e929
########################################
Chris PeBenito 20e929
#
Chris PeBenito 20e929
# Local policy
Chris PeBenito 20e929
#
Chris PeBenito 20e929
Chris PeBenito 20e929
allow razor_t self:tcp_socket create_socket_perms;
Chris PeBenito 20e929
Chris PeBenito 20e929
allow razor_t razor_etc_t:dir create_dir_perms;
Chris PeBenito 20e929
allow razor_t razor_etc_t:file create_file_perms;
Chris PeBenito 20e929
allow razor_t razor_etc_t:lnk_file create_lnk_perms;
Chris PeBenito 20e929
files_search_etc(razor_t)
Chris PeBenito 20e929
Chris PeBenito 20e929
allow razor_t razor_log_t:file create_file_perms;
Chris PeBenito 20e929
logging_log_filetrans(razor_t,razor_log_t,file)
Chris PeBenito 20e929
Chris PeBenito 20e929
allow razor_t razor_var_lib_t:file create_file_perms;
Chris PeBenito 20e929
allow razor_t razor_var_lib_t:dir rw_dir_perms;
Chris PeBenito 20e929
files_var_lib_filetrans(razor_t,razor_var_lib_t,file)
Chris PeBenito 20e929
Chris PeBenito 20e929
corenet_non_ipsec_sendrecv(razor_t)
Chris PeBenito 20e929
corenet_tcp_sendrecv_generic_if(razor_t)
Chris PeBenito 20e929
corenet_raw_sendrecv_generic_if(razor_t)
Chris PeBenito 20e929
corenet_tcp_sendrecv_all_nodes(razor_t)
Chris PeBenito 20e929
corenet_raw_sendrecv_all_nodes(razor_t)
Chris PeBenito 20e929
corenet_tcp_sendrecv_razor_port(razor_t)
Chris PeBenito 20e929
corenet_tcp_connect_razor_port(razor_t)
Chris PeBenito 3d03a4
corenet_sendrecv_razor_client_packets(razor_t)
Chris PeBenito 20e929
Chris PeBenito 20e929
sysnet_read_config(razor_t)
Chris PeBenito 20e929
Chris PeBenito 20e929
optional_policy(`
Chris PeBenito 20e929
	logging_send_syslog_msg(razor_t)
Chris PeBenito 20e929
')
Chris PeBenito 20e929
Chris PeBenito 20e929
optional_policy(`
Chris PeBenito 20e929
	nscd_socket_use(razor_t)
Chris PeBenito 20e929
')