|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
policy_module(rgmanager, 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 |
## <desc>
|
|
Jeremy Solt |
538cf9 |
##
|
|
Jeremy Solt |
538cf9 |
## Allow rgmanager domain to connect to the network using TCP.
|
|
Jeremy Solt |
538cf9 |
##
|
|
Jeremy Solt |
538cf9 |
## </desc>
|
|
Jeremy Solt |
538cf9 |
gen_tunable(rgmanager_can_network_connect, false)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
type rgmanager_t;
|
|
Jeremy Solt |
538cf9 |
type rgmanager_exec_t;
|
|
Jeremy Solt |
538cf9 |
domain_type(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
init_daemon_domain(rgmanager_t, rgmanager_exec_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
type rgmanager_tmp_t;
|
|
Jeremy Solt |
538cf9 |
files_tmp_file(rgmanager_tmp_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
type rgmanager_tmpfs_t;
|
|
Jeremy Solt |
538cf9 |
files_tmpfs_file(rgmanager_tmpfs_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
type rgmanager_var_log_t;
|
|
Jeremy Solt |
538cf9 |
logging_log_file(rgmanager_var_log_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
type rgmanager_var_run_t;
|
|
Jeremy Solt |
538cf9 |
files_pid_file(rgmanager_var_run_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
########################################
|
|
Jeremy Solt |
538cf9 |
#
|
|
Jeremy Solt |
538cf9 |
# rgmanager local policy
|
|
Jeremy Solt |
538cf9 |
#
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
allow rgmanager_t self:capability { dac_override net_raw sys_resource sys_admin sys_nice ipc_lock };
|
|
Jeremy Solt |
538cf9 |
dontaudit rgmanager_t self:capability { sys_ptrace };
|
|
Jeremy Solt |
538cf9 |
allow rgmanager_t self:process { setsched signal };
|
|
Jeremy Solt |
538cf9 |
dontaudit rgmanager_t self:process { ptrace };
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
allow rgmanager_t self:fifo_file rw_fifo_file_perms;
|
|
Jeremy Solt |
538cf9 |
allow rgmanager_t self:unix_stream_socket { create_stream_socket_perms };
|
|
Jeremy Solt |
538cf9 |
allow rgmanager_t self:unix_dgram_socket create_socket_perms;
|
|
Jeremy Solt |
538cf9 |
allow rgmanager_t self:tcp_socket create_stream_socket_perms;
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
manage_dirs_pattern(rgmanager_t, rgmanager_tmp_t, rgmanager_tmp_t)
|
|
Jeremy Solt |
538cf9 |
manage_files_pattern(rgmanager_t, rgmanager_tmp_t, rgmanager_tmp_t)
|
|
Jeremy Solt |
538cf9 |
files_tmp_filetrans(rgmanager_t, rgmanager_tmp_t, { file dir })
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
manage_dirs_pattern(rgmanager_t, rgmanager_tmpfs_t, rgmanager_tmpfs_t)
|
|
Jeremy Solt |
538cf9 |
manage_files_pattern(rgmanager_t, rgmanager_tmpfs_t, rgmanager_tmpfs_t)
|
|
Jeremy Solt |
538cf9 |
fs_tmpfs_filetrans(rgmanager_t, rgmanager_tmpfs_t,{ dir file })
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
manage_files_pattern(rgmanager_t, rgmanager_var_log_t, rgmanager_var_log_t)
|
|
Jeremy Solt |
538cf9 |
logging_log_filetrans(rgmanager_t, rgmanager_var_log_t, { file })
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
manage_files_pattern(rgmanager_t, rgmanager_var_run_t, rgmanager_var_run_t)
|
|
Jeremy Solt |
538cf9 |
manage_sock_files_pattern(rgmanager_t, rgmanager_var_run_t, rgmanager_var_run_t)
|
|
Jeremy Solt |
538cf9 |
files_pid_filetrans(rgmanager_t, rgmanager_var_run_t, { file sock_file })
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
kernel_read_kernel_sysctls(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
kernel_read_system_state(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
kernel_rw_rpc_sysctls(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
kernel_search_debugfs(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
kernel_search_network_state(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
corecmd_exec_bin(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
corecmd_exec_shell(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
consoletype_exec(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
# need to write to /dev/misc/dlm-control
|
|
Jeremy Solt |
538cf9 |
dev_rw_dlm_control(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
dev_setattr_dlm_control(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
dev_search_sysfs(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
domain_read_all_domains_state(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
domain_getattr_all_domains(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
domain_dontaudit_ptrace_all_domains(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
files_list_all(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
files_getattr_all_symlinks(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
files_manage_mnt_dirs(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
files_manage_isid_type_dirs(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
fs_getattr_xattr_fs(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
fs_getattr_all_fs(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
storage_getattr_fixed_disk_dev(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
term_getattr_pty_fs(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
#term_use_ptmx(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
# needed by resources scripts
|
|
Jeremy Solt |
538cf9 |
auth_read_all_files_except_shadow(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
auth_dontaudit_getattr_shadow(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
auth_use_nsswitch(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
logging_send_syslog_msg(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
miscfiles_read_localization(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
mount_domtrans(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
tunable_policy(`rgmanager_can_network_connect',`
|
|
Jeremy Solt |
538cf9 |
corenet_tcp_connect_all_ports(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
# rgmanager can run resource scripts
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
aisexec_stream_connect(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
corosync_stream_connect(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
apache_domtrans(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
apache_signal(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
fstools_domtrans(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
21d23c |
rhcs_stream_connect_groupd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
hostname_exec(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
ccs_manage_config(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
ccs_stream_connect(rgmanager_t)
|
|
Jeremy Solt |
21d23c |
rhcs_stream_connect_gfs_controld(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
lvm_domtrans(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
mysql_domtrans_mysql_safe(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
mysql_stream_connect(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
netutils_domtrans(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
netutils_domtrans_ping(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
postgresql_domtrans(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
postgresql_signal(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
rdisc_exec(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
ricci_dontaudit_rw_modcluster_pipes(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
rpc_initrc_domtrans_nfsd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
rpc_initrc_domtrans_rpcd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
rpc_domtrans_nfsd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
rpc_domtrans_rpcd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
rpc_manage_nfs_state_data(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
samba_initrc_domtrans(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
samba_domtrans_smbd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
samba_domtrans_nmbd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
samba_manage_var_files(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
samba_rw_config(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
samba_signal_smbd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
samba_signal_nmbd(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
sysnet_domtrans_ifconfig(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
udev_read_db(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
virt_stream_connect(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
unconfined_domain(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|
|
Jeremy Solt |
538cf9 |
|
|
Jeremy Solt |
538cf9 |
optional_policy(`
|
|
Jeremy Solt |
538cf9 |
xen_domtrans_xm(rgmanager_t)
|
|
Jeremy Solt |
538cf9 |
')
|