Jeremy Solt 538cf9
policy_module(aisexec, 1.0.0)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
########################################
Jeremy Solt 538cf9
#
Jeremy Solt 538cf9
# Declarations
Jeremy Solt 538cf9
#
Jeremy Solt 538cf9
Jeremy Solt 538cf9
type aisexec_t;
Jeremy Solt 538cf9
type aisexec_exec_t;
Jeremy Solt 538cf9
init_daemon_domain(aisexec_t, aisexec_exec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
type aisexec_initrc_exec_t;
Jeremy Solt 538cf9
init_script_file(aisexec_initrc_exec_t);
Jeremy Solt 538cf9
Jeremy Solt 538cf9
type aisexec_tmp_t;
Jeremy Solt 538cf9
files_tmp_file(aisexec_tmp_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
type aisexec_tmpfs_t;
Jeremy Solt 538cf9
files_tmpfs_file(aisexec_tmpfs_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
type aisexec_var_lib_t;
Jeremy Solt 538cf9
files_type(aisexec_var_lib_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
type aisexec_var_log_t;
Jeremy Solt 538cf9
logging_log_file(aisexec_var_log_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
type aisexec_var_run_t;
Jeremy Solt 538cf9
files_pid_file(aisexec_var_run_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
########################################
Jeremy Solt 538cf9
#
Jeremy Solt 538cf9
# aisexec local policy
Jeremy Solt 538cf9
#
Jeremy Solt 538cf9
Dan Walsh 3eaa99
allow aisexec_t self:capability { sys_nice sys_resource ipc_lock ipc_owner };
Jeremy Solt 538cf9
allow aisexec_t self:process { setrlimit setsched signal };
Jeremy Solt 538cf9
allow aisexec_t self:fifo_file rw_fifo_file_perms;
Jeremy Solt 538cf9
allow aisexec_t self:sem create_sem_perms;
Jeremy Solt 538cf9
allow aisexec_t self:unix_stream_socket { create_stream_socket_perms connectto };
Jeremy Solt 538cf9
allow aisexec_t self:unix_dgram_socket create_socket_perms;
Jeremy Solt 538cf9
allow aisexec_t self:udp_socket create_socket_perms;
Jeremy Solt 538cf9
Jeremy Solt 538cf9
manage_dirs_pattern(aisexec_t, aisexec_tmp_t, aisexec_tmp_t)
Jeremy Solt 538cf9
manage_files_pattern(aisexec_t, aisexec_tmp_t, aisexec_tmp_t)
Jeremy Solt 538cf9
files_tmp_filetrans(aisexec_t, aisexec_tmp_t, { file dir })
Jeremy Solt 538cf9
Jeremy Solt 538cf9
manage_dirs_pattern(aisexec_t, aisexec_tmpfs_t, aisexec_tmpfs_t)
Jeremy Solt 538cf9
manage_files_pattern(aisexec_t, aisexec_tmpfs_t, aisexec_tmpfs_t)
Jeremy Solt 538cf9
fs_tmpfs_filetrans(aisexec_t, aisexec_tmpfs_t, { dir file })
Jeremy Solt 538cf9
Jeremy Solt 538cf9
manage_files_pattern(aisexec_t, aisexec_var_lib_t, aisexec_var_lib_t)
Jeremy Solt 538cf9
manage_dirs_pattern(aisexec_t, aisexec_var_lib_t, aisexec_var_lib_t)
Jeremy Solt 538cf9
manage_sock_files_pattern(aisexec_t, aisexec_var_lib_t, aisexec_var_lib_t)
Jeremy Solt 538cf9
files_var_lib_filetrans(aisexec_t, aisexec_var_lib_t, { file dir sock_file })
Jeremy Solt 538cf9
Jeremy Solt 538cf9
manage_files_pattern(aisexec_t, aisexec_var_log_t, aisexec_var_log_t)
Jeremy Solt 538cf9
manage_sock_files_pattern(aisexec_t, aisexec_var_log_t, aisexec_var_log_t)
Jeremy Solt 7a8e6a
logging_log_filetrans(aisexec_t, aisexec_var_log_t, { sock_file file })
Jeremy Solt 538cf9
Jeremy Solt 538cf9
manage_files_pattern(aisexec_t, aisexec_var_run_t, aisexec_var_run_t)
Jeremy Solt 538cf9
manage_sock_files_pattern(aisexec_t, aisexec_var_run_t, aisexec_var_run_t)
Jeremy Solt 538cf9
files_pid_filetrans(aisexec_t, aisexec_var_run_t, { file sock_file })
Jeremy Solt 538cf9
Jeremy Solt 538cf9
kernel_read_system_state(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
corecmd_exec_bin(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
corenet_udp_bind_netsupport_port(aisexec_t)
Jeremy Solt 538cf9
corenet_tcp_bind_reserved_port(aisexec_t)
Jeremy Solt 538cf9
corenet_udp_bind_cluster_port(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
dev_read_urand(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
files_manage_mounttab(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
auth_use_nsswitch(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
init_rw_script_tmp_files(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
logging_send_syslog_msg(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 538cf9
miscfiles_read_localization(aisexec_t)
Jeremy Solt 538cf9
Dan Walsh 3eaa99
userdom_rw_semaphores(aisexec_t)
Dan Walsh 3eaa99
userdom_rw_unpriv_user_shared_mem(aisexec_t)
Dan Walsh 3eaa99
Jeremy Solt 538cf9
optional_policy(`
Jeremy Solt 538cf9
	ccs_stream_connect(aisexec_t)
Jeremy Solt 538cf9
')
Jeremy Solt 538cf9
Jeremy Solt 538cf9
optional_policy(`
Jeremy Solt 538cf9
	# to communication with RHCS
Jeremy Solt 21d23c
	rhcs_rw_dlm_controld_semaphores(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 21d23c
	rhcs_rw_fenced_semaphores(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 21d23c
	rhcs_rw_gfs_controld_semaphores(aisexec_t)
Jeremy Solt 21d23c
	rhcs_rw_gfs_controld_shm(aisexec_t)
Jeremy Solt 538cf9
Jeremy Solt 21d23c
	rhcs_rw_groupd_semaphores(aisexec_t)
Jeremy Solt 21d23c
	rhcs_rw_groupd_shm(aisexec_t)
Jeremy Solt 538cf9
')