|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
3480f3 |
policy_module(clockspeed,1.3.0)
|
|
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 |
d46cfe |
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 |
c0868a |
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 |
libs_use_ld_so(clockspeed_cli_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(clockspeed_cli_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(clockspeed_cli_t)
|
|
Chris PeBenito |
17de1b |
|
|
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 |
c0868a |
manage_files_pattern(clockspeed_srv_t,clockspeed_var_lib_t,clockspeed_var_lib_t)
|
|
Chris PeBenito |
c0868a |
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 |
17de1b |
corenet_udp_bind_all_nodes(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 |
libs_use_ld_so(clockspeed_srv_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(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 |
17de1b |
daemontools_service_domain(clockspeed_srv_t,clockspeed_srv_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|