Chris PeBenito 17de1b
Chris PeBenito 12e9ea
policy_module(gatekeeper,1.3.1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type gatekeeper_t;
Chris PeBenito 17de1b
type gatekeeper_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(gatekeeper_t,gatekeeper_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type gatekeeper_etc_t;
Chris PeBenito 17de1b
files_config_file(gatekeeper_etc_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type gatekeeper_log_t;
Chris PeBenito 17de1b
logging_log_file(gatekeeper_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# for stupid symlinks
Chris PeBenito 17de1b
type gatekeeper_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(gatekeeper_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type gatekeeper_var_run_t;
Chris PeBenito 17de1b
files_pid_file(gatekeeper_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dontaudit gatekeeper_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow gatekeeper_t self:process { setsched signal_perms };
Chris PeBenito c0868a
allow gatekeeper_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 17de1b
allow gatekeeper_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow gatekeeper_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow gatekeeper_t gatekeeper_etc_t:lnk_file { getattr read };
Chris PeBenito 17de1b
allow gatekeeper_t gatekeeper_etc_t:file { getattr read };
Chris PeBenito 17de1b
files_search_etc(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_files_pattern(gatekeeper_t,gatekeeper_log_t,gatekeeper_log_t)
Chris PeBenito 17de1b
logging_log_filetrans(gatekeeper_t,gatekeeper_log_t,{ file dir })
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_dirs_pattern(gatekeeper_t,gatekeeper_tmp_t,gatekeeper_tmp_t)
Chris PeBenito c0868a
manage_files_pattern(gatekeeper_t,gatekeeper_tmp_t,gatekeeper_tmp_t)
Chris PeBenito 17de1b
files_tmp_filetrans(gatekeeper_t, gatekeeper_tmp_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_files_pattern(gatekeeper_t,gatekeeper_var_run_t,gatekeeper_var_run_t)
Chris PeBenito 17de1b
files_pid_filetrans(gatekeeper_t,gatekeeper_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_system_state(gatekeeper_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 8021cb
corecmd_list_bin(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(gatekeeper_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(gatekeeper_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_generic_if(gatekeeper_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_if(gatekeeper_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_nodes(gatekeeper_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_nodes(gatekeeper_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(gatekeeper_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(gatekeeper_t)
Chris PeBenito 17de1b
corenet_tcp_bind_all_nodes(gatekeeper_t)
Chris PeBenito 17de1b
corenet_udp_bind_all_nodes(gatekeeper_t)
Chris PeBenito 17de1b
corenet_tcp_bind_gatekeeper_port(gatekeeper_t)
Chris PeBenito 17de1b
corenet_udp_bind_gatekeeper_port(gatekeeper_t)
Chris PeBenito 17de1b
corenet_sendrecv_gatekeeper_server_packets(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(gatekeeper_t)
Chris PeBenito 17de1b
# for SSP
Chris PeBenito 17de1b
dev_read_urand(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(gatekeeper_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(gatekeeper_t)
Chris PeBenito 17de1b
libs_use_shared_libs(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(gatekeeper_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(gatekeeper_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nis_use_ypbind(gatekeeper_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(gatekeeper_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(gatekeeper_t)
Chris PeBenito 17de1b
')