Chris PeBenito 17de1b
Chris PeBenito c12621
policy_module(clockspeed, 1.4.1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type clockspeed_cli_t;
Chris PeBenito 17de1b
type clockspeed_cli_exec_t;
Chris PeBenito 0bfccd
application_domain(clockspeed_cli_t, clockspeed_cli_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type clockspeed_srv_t;
Chris PeBenito 17de1b
type clockspeed_srv_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(clockspeed_srv_t, clockspeed_srv_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type clockspeed_var_lib_t;
Chris PeBenito 17de1b
files_type(clockspeed_var_lib_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Client local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow clockspeed_cli_t self:capability sys_time;
Chris PeBenito 17de1b
allow clockspeed_cli_t self:udp_socket create_socket_perms;
Chris PeBenito c0868a
Chris PeBenito 0bfccd
read_files_pattern(clockspeed_cli_t, clockspeed_var_lib_t, clockspeed_var_lib_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(clockspeed_cli_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(clockspeed_cli_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_if(clockspeed_cli_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_node(clockspeed_cli_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_ntp_port(clockspeed_cli_t)
Chris PeBenito 17de1b
corenet_sendrecv_ntp_client_packets(clockspeed_cli_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_list_var_lib(clockspeed_cli_t)
Chris PeBenito 17de1b
files_read_etc_files(clockspeed_cli_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(clockspeed_cli_t)
Chris PeBenito 17de1b
Chris PeBenito 296273
userdom_use_user_terminals(clockspeed_cli_t)
Chris PeBenito 296273
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Server local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow clockspeed_srv_t self:capability { sys_time net_bind_service };
Chris PeBenito 17de1b
allow clockspeed_srv_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
allow clockspeed_srv_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 17de1b
allow clockspeed_srv_t self:unix_stream_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_files_pattern(clockspeed_srv_t, clockspeed_var_lib_t, clockspeed_var_lib_t)
Chris PeBenito 0bfccd
manage_fifo_files_pattern(clockspeed_srv_t, clockspeed_var_lib_t, clockspeed_var_lib_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(clockspeed_srv_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(clockspeed_srv_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_if(clockspeed_srv_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_node(clockspeed_srv_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_ntp_port(clockspeed_srv_t)
Chris PeBenito c12621
corenet_udp_bind_generic_node(clockspeed_srv_t)
Chris PeBenito 17de1b
corenet_udp_bind_clockspeed_port(clockspeed_srv_t)
Chris PeBenito 17de1b
corenet_sendrecv_clockspeed_server_packets(clockspeed_srv_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(clockspeed_srv_t)
Chris PeBenito 17de1b
files_list_var_lib(clockspeed_srv_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(clockspeed_srv_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 0bfccd
	daemontools_service_domain(clockspeed_srv_t, clockspeed_srv_exec_t)
Chris PeBenito 17de1b
')