2006-04-18 20:35:09 +00:00
|
|
|
|
2007-06-29 14:48:13 +00:00
|
|
|
policy_module(gatekeeper,1.3.0)
|
2006-04-18 20:35:09 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type gatekeeper_t;
|
|
|
|
type gatekeeper_exec_t;
|
|
|
|
init_daemon_domain(gatekeeper_t,gatekeeper_exec_t)
|
|
|
|
|
|
|
|
type gatekeeper_etc_t;
|
|
|
|
files_config_file(gatekeeper_etc_t)
|
|
|
|
|
|
|
|
type gatekeeper_log_t;
|
|
|
|
logging_log_file(gatekeeper_log_t)
|
|
|
|
|
|
|
|
# for stupid symlinks
|
|
|
|
type gatekeeper_tmp_t;
|
|
|
|
files_tmp_file(gatekeeper_tmp_t)
|
|
|
|
|
|
|
|
type gatekeeper_var_run_t;
|
|
|
|
files_pid_file(gatekeeper_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
dontaudit gatekeeper_t self:capability sys_tty_config;
|
|
|
|
allow gatekeeper_t self:process { setsched signal_perms };
|
2006-12-12 20:08:08 +00:00
|
|
|
allow gatekeeper_t self:fifo_file rw_fifo_file_perms;
|
2006-04-18 20:35:09 +00:00
|
|
|
allow gatekeeper_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow gatekeeper_t self:udp_socket create_socket_perms;
|
|
|
|
|
|
|
|
allow gatekeeper_t gatekeeper_etc_t:lnk_file { getattr read };
|
|
|
|
allow gatekeeper_t gatekeeper_etc_t:file { getattr read };
|
|
|
|
files_search_etc(gatekeeper_t)
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(gatekeeper_t,gatekeeper_log_t,gatekeeper_log_t)
|
2006-04-18 20:35:09 +00:00
|
|
|
logging_log_filetrans(gatekeeper_t,gatekeeper_log_t,{ file dir })
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(gatekeeper_t,gatekeeper_tmp_t,gatekeeper_tmp_t)
|
|
|
|
manage_files_pattern(gatekeeper_t,gatekeeper_tmp_t,gatekeeper_tmp_t)
|
2006-04-18 20:35:09 +00:00
|
|
|
files_tmp_filetrans(gatekeeper_t, gatekeeper_tmp_t, { file dir })
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(gatekeeper_t,gatekeeper_var_run_t,gatekeeper_var_run_t)
|
2006-04-18 20:35:09 +00:00
|
|
|
files_pid_filetrans(gatekeeper_t,gatekeeper_var_run_t,file)
|
|
|
|
|
|
|
|
kernel_read_system_state(gatekeeper_t)
|
|
|
|
kernel_read_kernel_sysctls(gatekeeper_t)
|
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_list_bin(gatekeeper_t)
|
2006-04-18 20:35:09 +00:00
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(gatekeeper_t)
|
|
|
|
corenet_all_recvfrom_netlabel(gatekeeper_t)
|
2006-04-18 20:35:09 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(gatekeeper_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(gatekeeper_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(gatekeeper_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(gatekeeper_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(gatekeeper_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(gatekeeper_t)
|
|
|
|
corenet_tcp_bind_all_nodes(gatekeeper_t)
|
|
|
|
corenet_udp_bind_all_nodes(gatekeeper_t)
|
|
|
|
corenet_tcp_bind_gatekeeper_port(gatekeeper_t)
|
|
|
|
corenet_udp_bind_gatekeeper_port(gatekeeper_t)
|
2006-05-30 19:46:34 +00:00
|
|
|
corenet_sendrecv_gatekeeper_server_packets(gatekeeper_t)
|
2006-04-18 20:35:09 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(gatekeeper_t)
|
|
|
|
# for SSP
|
|
|
|
dev_read_urand(gatekeeper_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(gatekeeper_t)
|
|
|
|
|
|
|
|
files_read_etc_files(gatekeeper_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(gatekeeper_t)
|
|
|
|
fs_search_auto_mountpoints(gatekeeper_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(gatekeeper_t)
|
|
|
|
libs_use_shared_libs(gatekeeper_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(gatekeeper_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(gatekeeper_t)
|
|
|
|
|
|
|
|
sysnet_read_config(gatekeeper_t)
|
|
|
|
|
|
|
|
userdom_dontaudit_use_unpriv_user_fds(gatekeeper_t)
|
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(gatekeeper_t)
|
|
|
|
|
|
|
|
ifdef(`targeted_policy',`
|
|
|
|
term_dontaudit_use_unallocated_ttys(gatekeeper_t)
|
|
|
|
term_dontaudit_use_generic_ptys(gatekeeper_t)
|
|
|
|
files_dontaudit_read_root_files(gatekeeper_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
nis_use_ypbind(gatekeeper_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
seutil_sigchld_newrole(gatekeeper_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
udev_read_db(gatekeeper_t)
|
|
|
|
')
|