2005-08-31 15:25:12 +00:00
|
|
|
|
2008-12-10 19:38:10 +00:00
|
|
|
policy_module(comsat, 1.6.0)
|
2005-08-31 15:25:12 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
2005-08-31 16:49:30 +00:00
|
|
|
|
2005-08-31 15:25:12 +00:00
|
|
|
type comsat_t;
|
|
|
|
type comsat_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
inetd_udp_service_domain(comsat_t, comsat_exec_t)
|
2005-08-31 15:25:12 +00:00
|
|
|
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;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow comsat_t self:fifo_file rw_fifo_file_perms;
|
2005-08-31 15:25:12 +00:00
|
|
|
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-11-10 16:54:18 +00:00
|
|
|
allow comsat_t self:udp_socket create_socket_perms;
|
2005-08-31 15:25:12 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(comsat_t, comsat_tmp_t, comsat_tmp_t)
|
|
|
|
manage_files_pattern(comsat_t, comsat_tmp_t, comsat_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(comsat_t, comsat_tmp_t, { file dir })
|
2005-08-31 15:25:12 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(comsat_t, comsat_var_run_t, comsat_var_run_t)
|
|
|
|
files_pid_filetrans(comsat_t, comsat_var_run_t, file)
|
2005-08-31 15:25:12 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(comsat_t)
|
2005-08-31 15:25:12 +00:00
|
|
|
kernel_read_network_state(comsat_t)
|
|
|
|
kernel_read_system_state(comsat_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(comsat_t)
|
|
|
|
corenet_all_recvfrom_netlabel(comsat_t)
|
2005-08-31 15:25:12 +00:00
|
|
|
corenet_tcp_sendrecv_all_if(comsat_t)
|
2005-09-22 21:59:50 +00:00
|
|
|
corenet_udp_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)
|
2005-10-24 00:54:39 +00:00
|
|
|
corenet_udp_sendrecv_all_ports(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)
|
|
|
|
|
2007-12-04 15:05:55 +00:00
|
|
|
auth_use_nsswitch(comsat_t)
|
|
|
|
|
2006-01-18 18:08:39 +00:00
|
|
|
init_read_utmp(comsat_t)
|
|
|
|
init_dontaudit_write_utmp(comsat_t)
|
2005-08-31 15:25:12 +00:00
|
|
|
|
|
|
|
logging_send_syslog_msg(comsat_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(comsat_t)
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_dontaudit_getattr_user_ttys(comsat_t)
|
2005-08-31 15:25:12 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
mta_getattr_spool(comsat_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-08-31 15:25:12 +00:00
|
|
|
kerberos_use(comsat_t)
|
|
|
|
')
|