2005-08-31 15:25:12 +00:00
|
|
|
|
|
|
|
policy_module(comsat,1.0)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
2005-08-31 16:49:30 +00:00
|
|
|
|
2005-08-31 15:25:12 +00:00
|
|
|
type comsat_t;
|
|
|
|
type comsat_exec_t;
|
|
|
|
inetd_udp_service_domain(comsat_t,comsat_exec_t)
|
|
|
|
role system_r types comsat_t;
|
|
|
|
|
|
|
|
type comsat_tmp_t;
|
|
|
|
files_tmp_file(comsat_tmp_t)
|
|
|
|
|
|
|
|
type comsat_var_run_t;
|
|
|
|
files_pid_file(comsat_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow comsat_t self:capability { setuid setgid };
|
|
|
|
allow comsat_t self:process signal_perms;
|
|
|
|
allow comsat_t self:dir search;
|
|
|
|
allow comsat_t self:fifo_file rw_file_perms;
|
|
|
|
allow comsat_t self:{ lnk_file file } { getattr read };
|
|
|
|
allow comsat_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
2005-09-22 21:59:50 +00:00
|
|
|
allow comsat_t self:tcp_socket connected_stream_socket_perms;
|
2005-08-31 15:25:12 +00:00
|
|
|
|
|
|
|
allow comsat_t comsat_tmp_t:dir create_dir_perms;
|
|
|
|
allow comsat_t comsat_tmp_t:file create_file_perms;
|
|
|
|
files_create_tmp_files(comsat_t, comsat_tmp_t, { file dir })
|
|
|
|
|
|
|
|
allow comsat_t comsat_var_run_t:file create_file_perms;
|
|
|
|
files_create_pid(comsat_t,comsat_var_run_t)
|
|
|
|
|
|
|
|
kernel_read_kernel_sysctl(comsat_t)
|
|
|
|
kernel_read_network_state(comsat_t)
|
|
|
|
kernel_read_system_state(comsat_t)
|
|
|
|
|
|
|
|
corenet_tcp_sendrecv_all_if(comsat_t)
|
2005-09-22 21:59:50 +00:00
|
|
|
corenet_udp_sendrecv_all_if(comsat_t)
|
|
|
|
corenet_raw_sendrecv_all_if(comsat_t)
|
2005-08-31 15:25:12 +00:00
|
|
|
corenet_tcp_sendrecv_all_nodes(comsat_t)
|
2005-09-22 21:59:50 +00:00
|
|
|
corenet_udp_sendrecv_all_nodes(comsat_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(comsat_t)
|
2005-08-31 16:49:30 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(comsat_t)
|
2005-10-24 00:54:39 +00:00
|
|
|
corenet_udp_sendrecv_all_ports(comsat_t)
|
2005-09-22 21:59:50 +00:00
|
|
|
corenet_tcp_bind_all_nodes(comsat_t)
|
2005-10-24 00:54:39 +00:00
|
|
|
corenet_udp_bind_all_nodes(comsat_t)
|
2005-08-31 15:25:12 +00:00
|
|
|
|
|
|
|
dev_read_urand(comsat_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(comsat_t)
|
|
|
|
|
|
|
|
files_read_etc_files(comsat_t)
|
2005-09-22 21:59:50 +00:00
|
|
|
files_list_usr(comsat_t)
|
2005-08-31 15:25:12 +00:00
|
|
|
files_search_spool(comsat_t)
|
|
|
|
files_search_home(comsat_t)
|
|
|
|
|
|
|
|
init_read_script_pid(comsat_t)
|
|
|
|
init_dontaudit_write_script_pid(comsat_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(comsat_t)
|
|
|
|
libs_use_shared_libs(comsat_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(comsat_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(comsat_t)
|
|
|
|
|
|
|
|
sysnet_read_config(comsat_t)
|
|
|
|
|
|
|
|
mta_getattr_spool(comsat_t)
|
|
|
|
|
|
|
|
optional_policy(`kerberos.te',`
|
|
|
|
kerberos_use(comsat_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`nis.te',`
|
|
|
|
nis_use_ypbind(comsat_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`nscd.te',`
|
|
|
|
nscd_use_socket(comsat_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
ifdef(`TODO',`
|
|
|
|
dontaudit comsat_t sysadm_tty_device_t:chr_file getattr;
|
|
|
|
')
|