2010-05-06 17:13:41 +00:00
|
|
|
|
|
|
|
policy_module(aisexec, 1.0.0)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type aisexec_t;
|
|
|
|
type aisexec_exec_t;
|
|
|
|
init_daemon_domain(aisexec_t, aisexec_exec_t)
|
|
|
|
|
|
|
|
type aisexec_initrc_exec_t;
|
|
|
|
init_script_file(aisexec_initrc_exec_t);
|
|
|
|
|
|
|
|
type aisexec_tmp_t;
|
|
|
|
files_tmp_file(aisexec_tmp_t)
|
|
|
|
|
|
|
|
type aisexec_tmpfs_t;
|
|
|
|
files_tmpfs_file(aisexec_tmpfs_t)
|
|
|
|
|
|
|
|
type aisexec_var_lib_t;
|
|
|
|
files_type(aisexec_var_lib_t)
|
|
|
|
|
|
|
|
type aisexec_var_log_t;
|
|
|
|
logging_log_file(aisexec_var_log_t)
|
|
|
|
|
|
|
|
type aisexec_var_run_t;
|
|
|
|
files_pid_file(aisexec_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# aisexec local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow aisexec_t self:capability { sys_nice sys_resource ipc_lock };
|
|
|
|
allow aisexec_t self:process { setrlimit setsched signal };
|
|
|
|
allow aisexec_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow aisexec_t self:sem create_sem_perms;
|
|
|
|
allow aisexec_t self:unix_stream_socket { create_stream_socket_perms connectto };
|
|
|
|
allow aisexec_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow aisexec_t self:udp_socket create_socket_perms;
|
|
|
|
|
|
|
|
manage_dirs_pattern(aisexec_t, aisexec_tmp_t, aisexec_tmp_t)
|
|
|
|
manage_files_pattern(aisexec_t, aisexec_tmp_t, aisexec_tmp_t)
|
|
|
|
files_tmp_filetrans(aisexec_t, aisexec_tmp_t, { file dir })
|
|
|
|
|
|
|
|
manage_dirs_pattern(aisexec_t, aisexec_tmpfs_t, aisexec_tmpfs_t)
|
|
|
|
manage_files_pattern(aisexec_t, aisexec_tmpfs_t, aisexec_tmpfs_t)
|
|
|
|
fs_tmpfs_filetrans(aisexec_t, aisexec_tmpfs_t, { dir file })
|
|
|
|
|
|
|
|
manage_files_pattern(aisexec_t, aisexec_var_lib_t, aisexec_var_lib_t)
|
|
|
|
manage_dirs_pattern(aisexec_t, aisexec_var_lib_t, aisexec_var_lib_t)
|
|
|
|
manage_sock_files_pattern(aisexec_t, aisexec_var_lib_t, aisexec_var_lib_t)
|
|
|
|
files_var_lib_filetrans(aisexec_t, aisexec_var_lib_t, { file dir sock_file })
|
|
|
|
|
|
|
|
manage_files_pattern(aisexec_t, aisexec_var_log_t, aisexec_var_log_t)
|
|
|
|
manage_sock_files_pattern(aisexec_t, aisexec_var_log_t, aisexec_var_log_t)
|
2010-05-21 20:40:12 +00:00
|
|
|
logging_log_filetrans(aisexec_t, aisexec_var_log_t, { sock_file file })
|
2010-05-06 17:13:41 +00:00
|
|
|
|
|
|
|
manage_files_pattern(aisexec_t, aisexec_var_run_t, aisexec_var_run_t)
|
|
|
|
manage_sock_files_pattern(aisexec_t, aisexec_var_run_t, aisexec_var_run_t)
|
|
|
|
files_pid_filetrans(aisexec_t, aisexec_var_run_t, { file sock_file })
|
|
|
|
|
|
|
|
kernel_read_system_state(aisexec_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(aisexec_t)
|
|
|
|
|
|
|
|
corenet_udp_bind_netsupport_port(aisexec_t)
|
|
|
|
corenet_tcp_bind_reserved_port(aisexec_t)
|
|
|
|
corenet_udp_bind_cluster_port(aisexec_t)
|
|
|
|
|
|
|
|
dev_read_urand(aisexec_t)
|
|
|
|
|
|
|
|
files_manage_mounttab(aisexec_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(aisexec_t)
|
|
|
|
|
|
|
|
init_rw_script_tmp_files(aisexec_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(aisexec_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(aisexec_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ccs_stream_connect(aisexec_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
# to communication with RHCS
|
2010-05-21 19:59:16 +00:00
|
|
|
rhcs_rw_dlm_controld_semaphores(aisexec_t)
|
2010-05-06 17:13:41 +00:00
|
|
|
|
2010-05-21 19:59:16 +00:00
|
|
|
rhcs_rw_fenced_semaphores(aisexec_t)
|
2010-05-06 17:13:41 +00:00
|
|
|
|
2010-05-21 19:59:16 +00:00
|
|
|
rhcs_rw_gfs_controld_semaphores(aisexec_t)
|
|
|
|
rhcs_rw_gfs_controld_shm(aisexec_t)
|
2010-05-06 17:13:41 +00:00
|
|
|
|
2010-05-21 19:59:16 +00:00
|
|
|
rhcs_rw_groupd_semaphores(aisexec_t)
|
|
|
|
rhcs_rw_groupd_shm(aisexec_t)
|
2010-05-06 17:13:41 +00:00
|
|
|
')
|