|
Chris PeBenito |
9570b2 |
policy_module(cyphesis, 1.2.0)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
########################################
|
|
Chris PeBenito |
a71e13 |
#
|
|
Chris PeBenito |
a71e13 |
# Declarations
|
|
Chris PeBenito |
a71e13 |
#
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
type cyphesis_t;
|
|
Chris PeBenito |
a71e13 |
type cyphesis_exec_t;
|
|
Chris PeBenito |
a71e13 |
init_daemon_domain(cyphesis_t, cyphesis_exec_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
type cyphesis_log_t;
|
|
Chris PeBenito |
a71e13 |
logging_log_file(cyphesis_log_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
type cyphesis_tmp_t;
|
|
Chris PeBenito |
a71e13 |
files_tmp_file(cyphesis_tmp_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
type cyphesis_var_run_t;
|
|
Chris PeBenito |
a71e13 |
files_pid_file(cyphesis_var_run_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
########################################
|
|
Chris PeBenito |
a71e13 |
#
|
|
Chris PeBenito |
a71e13 |
# cyphesis local policy
|
|
Chris PeBenito |
a71e13 |
#
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
allow cyphesis_t self:process { setfscreate setsched signal };
|
|
Chris PeBenito |
a71e13 |
allow cyphesis_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
a71e13 |
allow cyphesis_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
a71e13 |
allow cyphesis_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
a71e13 |
allow cyphesis_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
manage_files_pattern(cyphesis_t, cyphesis_log_t, cyphesis_log_t)
|
|
Chris PeBenito |
a71e13 |
logging_log_filetrans(cyphesis_t, cyphesis_log_t, file)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
# DAN > Does cyphesis really create a sock_file in /tmp? Why?
|
|
Chris PeBenito |
a71e13 |
allow cyphesis_t cyphesis_tmp_t:sock_file manage_sock_file_perms;
|
|
Chris PeBenito |
a71e13 |
files_tmp_filetrans(cyphesis_t, cyphesis_tmp_t, file)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
manage_files_pattern(cyphesis_t, cyphesis_var_run_t, cyphesis_var_run_t)
|
|
Chris PeBenito |
a71e13 |
manage_sock_files_pattern(cyphesis_t, cyphesis_var_run_t, cyphesis_var_run_t)
|
|
Chris PeBenito |
a71e13 |
files_pid_filetrans(cyphesis_t, cyphesis_var_run_t, { file sock_file })
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
kernel_read_system_state(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
kernel_read_kernel_sysctls(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
# DAN> What is cyphesis looking for in /bin?
|
|
Chris PeBenito |
a71e13 |
corecmd_search_bin(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
corecmd_getattr_bin_files(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
corenet_all_recvfrom_unlabeled(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
corenet_tcp_sendrecv_generic_if(cyphesis_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
corenet_tcp_sendrecv_all_ports(cyphesis_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
corenet_tcp_bind_cyphesis_port(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
corenet_sendrecv_cyphesis_server_packets(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
dev_read_urand(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
# Init script handling
|
|
Chris PeBenito |
a71e13 |
domain_use_interactive_fds(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
files_read_etc_files(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
files_read_usr_files(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
logging_send_syslog_msg(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
miscfiles_read_localization(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
sysnet_dns_name_resolve(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
# cyphesis wants to talk to avahi via dbus
|
|
Chris PeBenito |
a71e13 |
optional_policy(`
|
|
Chris PeBenito |
a71e13 |
avahi_dbus_chat(cyphesis_t)
|
|
Chris PeBenito |
296273 |
dbus_system_bus_client(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
')
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
optional_policy(`
|
|
Chris PeBenito |
a71e13 |
kerberos_use(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
')
|
|
Chris PeBenito |
a71e13 |
|
|
Chris PeBenito |
a71e13 |
optional_policy(`
|
|
Chris PeBenito |
a71e13 |
postgresql_stream_connect(cyphesis_t)
|
|
Chris PeBenito |
a71e13 |
')
|