Chris PeBenito fa45da
Chris PeBenito 12e9ea
policy_module(ricci,1.2.1)
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# Declarations
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
type ricci_t;
Chris PeBenito fa45da
type ricci_exec_t;
Chris PeBenito fa45da
domain_type(ricci_t)
Chris PeBenito fa45da
init_daemon_domain(ricci_t, ricci_exec_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# tmp files
Chris PeBenito fa45da
type ricci_tmp_t;
Chris PeBenito fa45da
files_tmp_file(ricci_tmp_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# var/lib files
Chris PeBenito fa45da
type ricci_var_lib_t;
Chris PeBenito fa45da
files_type(ricci_var_lib_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# log files
Chris PeBenito fa45da
type ricci_var_log_t;
Chris PeBenito fa45da
logging_log_file(ricci_var_log_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# pid files
Chris PeBenito fa45da
type ricci_var_run_t;
Chris PeBenito fa45da
files_pid_file(ricci_var_run_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
type ricci_modcluster_t;
Chris PeBenito fa45da
type ricci_modcluster_exec_t;
Chris PeBenito fa45da
domain_type(ricci_modcluster_t)
Chris PeBenito fa45da
domain_entry_file(ricci_modcluster_t, ricci_modcluster_exec_t)
Chris PeBenito fa45da
role system_r types ricci_modcluster_t;
Chris PeBenito fa45da
Chris PeBenito fa45da
# var/lib files
Chris PeBenito fa45da
type ricci_modcluster_var_lib_t;
Chris PeBenito fa45da
files_type(ricci_modcluster_var_lib_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# log files
Chris PeBenito fa45da
type ricci_modcluster_var_log_t;
Chris PeBenito fa45da
logging_log_file(ricci_modcluster_var_log_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# pid files
Chris PeBenito fa45da
type ricci_modcluster_var_run_t;
Chris PeBenito fa45da
files_pid_file(ricci_modcluster_var_run_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
type ricci_modclusterd_t;
Chris PeBenito fa45da
type ricci_modclusterd_exec_t;
Chris PeBenito fa45da
domain_type(ricci_modclusterd_t)
Chris PeBenito fa45da
init_daemon_domain(ricci_modclusterd_t, ricci_modclusterd_exec_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
type ricci_modlog_t;
Chris PeBenito fa45da
type ricci_modlog_exec_t;
Chris PeBenito fa45da
domain_type(ricci_modlog_t)
Chris PeBenito fa45da
domain_entry_file(ricci_modlog_t, ricci_modlog_exec_t)
Chris PeBenito fa45da
role system_r types ricci_modlog_t;
Chris PeBenito fa45da
Chris PeBenito fa45da
type ricci_modrpm_t;
Chris PeBenito fa45da
type ricci_modrpm_exec_t;
Chris PeBenito fa45da
domain_type(ricci_modrpm_t)
Chris PeBenito fa45da
domain_entry_file(ricci_modrpm_t, ricci_modrpm_exec_t)
Chris PeBenito fa45da
role system_r types ricci_modrpm_t;
Chris PeBenito fa45da
Chris PeBenito fa45da
type ricci_modservice_t;
Chris PeBenito fa45da
type ricci_modservice_exec_t;
Chris PeBenito fa45da
domain_type(ricci_modservice_t)
Chris PeBenito fa45da
domain_entry_file(ricci_modservice_t, ricci_modservice_exec_t)
Chris PeBenito fa45da
role system_r types ricci_modservice_t;
Chris PeBenito fa45da
Chris PeBenito fa45da
type ricci_modstorage_t;
Chris PeBenito fa45da
type ricci_modstorage_exec_t;
Chris PeBenito fa45da
domain_type(ricci_modstorage_t)
Chris PeBenito fa45da
domain_entry_file(ricci_modstorage_t, ricci_modstorage_exec_t)
Chris PeBenito fa45da
role system_r types ricci_modstorage_t;
Chris PeBenito fa45da
Chris PeBenito 6b19be
type ricci_modstorage_lock_t;
Chris PeBenito 6b19be
files_lock_file(ricci_modstorage_lock_t)
Chris PeBenito 6b19be
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# ricci local policy
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
allow ricci_t self:capability { setuid sys_nice sys_boot };
Chris PeBenito fa45da
allow ricci_t self:process setsched;
Chris PeBenito fa45da
allow ricci_t self:fifo_file { read write };
Chris PeBenito fa45da
allow ricci_t self:unix_stream_socket { create_stream_socket_perms connectto };
Chris PeBenito fa45da
allow ricci_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito fa45da
Chris PeBenito fa45da
domain_auto_trans(ricci_t,ricci_modcluster_exec_t,ricci_modcluster_t)
Chris PeBenito fa45da
domain_auto_trans(ricci_t,ricci_modlog_exec_t,ricci_modlog_t)
Chris PeBenito fa45da
domain_auto_trans(ricci_t,ricci_modrpm_exec_t,ricci_modrpm_t)
Chris PeBenito fa45da
domain_auto_trans(ricci_t,ricci_modservice_exec_t,ricci_modservice_t)
Chris PeBenito fa45da
domain_auto_trans(ricci_t,ricci_modstorage_exec_t,ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# tmp file
Chris PeBenito c0868a
manage_dirs_pattern(ricci_t,ricci_tmp_t,ricci_tmp_t)
Chris PeBenito c0868a
manage_files_pattern(ricci_t,ricci_tmp_t,ricci_tmp_t)
Chris PeBenito fa45da
files_tmp_filetrans(ricci_t, ricci_tmp_t, { file dir })
Chris PeBenito fa45da
Chris PeBenito fa45da
# var/lib files for ricci
Chris PeBenito c0868a
manage_dirs_pattern(ricci_t,ricci_var_lib_t,ricci_var_lib_t)
Chris PeBenito c0868a
manage_files_pattern(ricci_t,ricci_var_lib_t,ricci_var_lib_t)
Chris PeBenito c0868a
manage_sock_files_pattern(ricci_t,ricci_var_lib_t,ricci_var_lib_t)
Chris PeBenito fa45da
files_var_lib_filetrans(ricci_t,ricci_var_lib_t, { file dir sock_file })
Chris PeBenito fa45da
Chris PeBenito fa45da
# log files
Chris PeBenito c0868a
allow ricci_t ricci_var_log_t:dir setattr;
Chris PeBenito c0868a
manage_files_pattern(ricci_t,ricci_var_log_t,ricci_var_log_t)
Chris PeBenito c0868a
manage_sock_files_pattern(ricci_t,ricci_var_log_t,ricci_var_log_t)
Chris PeBenito fa45da
logging_log_filetrans(ricci_t,ricci_var_log_t,{ sock_file file dir })
Chris PeBenito fa45da
Chris PeBenito fa45da
# pid file
Chris PeBenito c0868a
manage_files_pattern(ricci_t,ricci_var_run_t,ricci_var_run_t)
Chris PeBenito c0868a
manage_sock_files_pattern(ricci_t,ricci_var_run_t,ricci_var_run_t)
Chris PeBenito fa45da
files_pid_filetrans(ricci_t,ricci_var_run_t, { file sock_file })
Chris PeBenito fa45da
Chris PeBenito fa45da
kernel_read_kernel_sysctls(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
corecmd_exec_bin(ricci_t)
Chris PeBenito fa45da
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(ricci_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(ricci_t)
Chris PeBenito fa45da
corenet_tcp_sendrecv_all_if(ricci_t)
Chris PeBenito fa45da
corenet_tcp_sendrecv_all_nodes(ricci_t)
Chris PeBenito fa45da
corenet_tcp_sendrecv_all_ports(ricci_t)
Chris PeBenito fa45da
corenet_tcp_bind_all_nodes(ricci_t)
Chris PeBenito fa45da
corenet_udp_bind_all_nodes(ricci_t)
Chris PeBenito fa45da
corenet_tcp_bind_ricci_port(ricci_t)
Chris PeBenito fa45da
corenet_udp_bind_ricci_port(ricci_t)
Chris PeBenito fa45da
corenet_tcp_connect_http_port(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
dev_read_urand(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
files_read_etc_files(ricci_t)
Chris PeBenito fa45da
files_read_etc_runtime_files(ricci_t)
Chris PeBenito fa45da
files_create_boot_flag(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
auth_domtrans_chk_passwd(ricci_t)
Chris PeBenito fa45da
auth_append_login_records(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
init_dontaudit_stream_connect_script(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
libs_use_ld_so(ricci_t)
Chris PeBenito fa45da
libs_use_shared_libs(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
locallogin_dontaudit_use_fds(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
logging_send_syslog_msg(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
miscfiles_read_localization(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
sysnet_dns_name_resolve(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	ccs_read_config(ricci_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	dbus_system_bus_client_template(ricci,ricci_t)
Chris PeBenito fa45da
	dbus_send_system_bus(ricci_t)
Chris PeBenito fa45da
	oddjob_dbus_chat(ricci_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	# Needed so oddjob can run halt/reboot on behalf of ricci
Chris PeBenito 8021cb
	corecmd_bin_entry_type(ricci_t)
Chris PeBenito fa45da
	term_dontaudit_search_ptys(ricci_t)
Chris PeBenito fa45da
	init_exec(ricci_t)
Chris PeBenito fa45da
	init_telinit(ricci_t)
Chris PeBenito fa45da
	init_rw_utmp(ricci_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
	oddjob_system_entry(ricci_t, ricci_exec_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	rpm_use_script_fds(ricci_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	sasl_connect(ricci_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	unconfined_use_fds(ricci_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	xen_domtrans_xm(ricci_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# ricci_modcluster local policy
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
allow ricci_modcluster_t self:capability sys_nice;
Chris PeBenito fa45da
allow ricci_modcluster_t self:process setsched;
Chris PeBenito c0868a
allow ricci_modcluster_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito fa45da
Chris PeBenito fa45da
kernel_read_kernel_sysctls(ricci_modcluster_t)
Chris PeBenito fa45da
kernel_read_system_state(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
corecmd_exec_shell(ricci_modcluster_t)
Chris PeBenito fa45da
corecmd_exec_bin(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
domain_dontaudit_read_all_domains_state(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
files_search_locks(ricci_modcluster_t)
Chris PeBenito fa45da
files_read_etc_runtime_files(ricci_modcluster_t)
Chris PeBenito fa45da
files_read_etc_files(ricci_modcluster_t)
Chris PeBenito fa45da
files_search_usr(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
init_exec(ricci_modcluster_t)
Chris PeBenito fa45da
init_domtrans_script(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
libs_use_ld_so(ricci_modcluster_t)
Chris PeBenito fa45da
libs_use_shared_libs(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
logging_send_syslog_msg(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
miscfiles_read_localization(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
modutils_domtrans_insmod(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
mount_domtrans(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
ricci_stream_connect_modclusterd(ricci_modcluster_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	ccs_stream_connect(ricci_modcluster_t)
Chris PeBenito fa45da
	ccs_domtrans(ricci_modcluster_t)
Chris PeBenito fa45da
	ccs_manage_config(ricci_modcluster_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	consoletype_exec(ricci_modcluster_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	lvm_domtrans(ricci_modcluster_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	nscd_socket_use(ricci_modcluster_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	oddjob_system_entry(ricci_modcluster_t, ricci_modcluster_exec_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito 350b6a
optional_policy(`
Chris PeBenito 350b6a
	# XXX This has got to go.
Chris PeBenito 350b6a
	unconfined_domain(ricci_modcluster_t)
Chris PeBenito 350b6a
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# ricci_modclusterd local policy
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
allow ricci_modclusterd_t self:capability sys_nice;
Chris PeBenito fa45da
allow ricci_modclusterd_t self:process { signal sigkill setsched };
Chris PeBenito c0868a
allow ricci_modclusterd_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito fa45da
allow ricci_modclusterd_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito fa45da
allow ricci_modclusterd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito fa45da
allow ricci_modclusterd_t self:netlink_route_socket r_netlink_socket_perms;
Chris PeBenito fa45da
# cjp: this needs to be fixed for a specific socket type:
Chris PeBenito fa45da
allow ricci_modclusterd_t self:socket create_socket_perms;
Chris PeBenito fa45da
Chris PeBenito fa45da
allow ricci_modclusterd_t ricci_modcluster_t:unix_stream_socket connectto;
Chris PeBenito fa45da
Chris PeBenito fa45da
# log files
Chris PeBenito c0868a
allow ricci_modclusterd_t ricci_modcluster_var_log_t:dir setattr;
Chris PeBenito c0868a
manage_files_pattern(ricci_modclusterd_t,ricci_modcluster_var_log_t,ricci_modcluster_var_log_t)
Chris PeBenito c0868a
manage_sock_files_pattern(ricci_modclusterd_t,ricci_modcluster_var_log_t,ricci_modcluster_var_log_t)
Chris PeBenito fa45da
logging_log_filetrans(ricci_modclusterd_t,ricci_modcluster_var_log_t,{ sock_file file dir })
Chris PeBenito fa45da
Chris PeBenito fa45da
# pid file
Chris PeBenito c0868a
manage_files_pattern(ricci_modclusterd_t,ricci_modcluster_var_run_t,ricci_modcluster_var_run_t)
Chris PeBenito c0868a
manage_sock_files_pattern(ricci_modclusterd_t,ricci_modcluster_var_run_t,ricci_modcluster_var_run_t)
Chris PeBenito fa45da
files_pid_filetrans(ricci_modclusterd_t,ricci_modcluster_var_run_t, { file sock_file })
Chris PeBenito fa45da
Chris PeBenito fa45da
kernel_read_kernel_sysctls(ricci_modclusterd_t)
Chris PeBenito fa45da
kernel_read_system_state(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
corecmd_exec_bin(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
corenet_tcp_sendrecv_all_if(ricci_modclusterd_t)
Chris PeBenito fa45da
corenet_tcp_sendrecv_all_ports(ricci_modclusterd_t)
Chris PeBenito fa45da
corenet_tcp_bind_all_nodes(ricci_modclusterd_t)
Chris PeBenito fa45da
corenet_tcp_bind_ricci_modcluster_port(ricci_modclusterd_t)
Chris PeBenito fa45da
corenet_tcp_connect_ricci_modcluster_port(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
domain_dontaudit_read_all_domains_state(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
files_read_etc_files(ricci_modclusterd_t)
Chris PeBenito fa45da
files_read_etc_runtime_files(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
fs_getattr_xattr_fs(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
init_dontaudit_stream_connect_script(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
libs_use_ld_so(ricci_modclusterd_t)
Chris PeBenito fa45da
libs_use_shared_libs(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
locallogin_dontaudit_use_fds(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
logging_send_syslog_msg(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
miscfiles_read_localization(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
sysnet_domtrans_ifconfig(ricci_modclusterd_t)
Chris PeBenito fa45da
sysnet_dns_name_resolve(ricci_modclusterd_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	ccs_domtrans(ricci_modclusterd_t)
Chris PeBenito fa45da
	ccs_stream_connect(ricci_modclusterd_t)
Chris PeBenito fa45da
	ccs_read_config(ricci_modclusterd_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	unconfined_use_fds(ricci_modclusterd_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# ricci_modlog local policy
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
allow ricci_modlog_t self:capability sys_nice;
Chris PeBenito fa45da
allow ricci_modlog_t self:process setsched;
Chris PeBenito fa45da
Chris PeBenito fa45da
kernel_read_kernel_sysctls(ricci_modlog_t)
Chris PeBenito fa45da
kernel_read_system_state(ricci_modlog_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
corecmd_exec_bin(ricci_modlog_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
domain_dontaudit_read_all_domains_state(ricci_modlog_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
files_read_etc_files(ricci_modlog_t)
Chris PeBenito fa45da
files_search_usr(ricci_modlog_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
libs_use_ld_so(ricci_modlog_t)
Chris PeBenito fa45da
libs_use_shared_libs(ricci_modlog_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
logging_read_generic_logs(ricci_modlog_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
miscfiles_read_localization(ricci_modlog_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	nscd_dontaudit_search_pid(ricci_modlog_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	oddjob_system_entry(ricci_modlog_t, ricci_modlog_exec_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# ricci_modrpm local policy
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
allow ricci_modrpm_t self:fifo_file { getattr read };
Chris PeBenito fa45da
Chris PeBenito 6b19be
kernel_read_kernel_sysctls(ricci_modrpm_t)
Chris PeBenito 6b19be
Chris PeBenito fa45da
corecmd_exec_bin(ricci_modrpm_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
libs_use_ld_so(ricci_modrpm_t)
Chris PeBenito fa45da
libs_use_shared_libs(ricci_modrpm_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
files_search_usr(ricci_modrpm_t)
Chris PeBenito fa45da
files_read_etc_files(ricci_modrpm_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
miscfiles_read_localization(ricci_modrpm_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	oddjob_system_entry(ricci_modrpm_t, ricci_modrpm_exec_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	rpm_domtrans(ricci_modrpm_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# ricci_modservice local policy
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
allow ricci_modservice_t self:capability { dac_override sys_nice };
Chris PeBenito fa45da
allow ricci_modservice_t self:fifo_file { getattr read write };
Chris PeBenito fa45da
allow ricci_modservice_t self:process setsched;
Chris PeBenito fa45da
Chris PeBenito fa45da
kernel_read_kernel_sysctls(ricci_modservice_t)
Chris PeBenito fa45da
kernel_read_system_state(ricci_modservice_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
corecmd_exec_bin(ricci_modservice_t)
Chris PeBenito fa45da
corecmd_exec_shell(ricci_modservice_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
files_read_etc_files(ricci_modservice_t)
Chris PeBenito fa45da
files_read_etc_runtime_files(ricci_modservice_t)
Chris PeBenito fa45da
files_search_usr(ricci_modservice_t)
Chris PeBenito 6b19be
# Needed for running chkconfig
Chris PeBenito 6b19be
files_manage_etc_symlinks(ricci_modservice_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
consoletype_exec(ricci_modservice_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
init_domtrans_script(ricci_modservice_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
libs_use_ld_so(ricci_modservice_t)
Chris PeBenito fa45da
libs_use_shared_libs(ricci_modservice_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
miscfiles_read_localization(ricci_modservice_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	ccs_read_config(ricci_modservice_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	nscd_dontaudit_search_pid(ricci_modservice_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	oddjob_system_entry(ricci_modservice_t, ricci_modservice_exec_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# ricci_modstorage local policy
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
allow ricci_modstorage_t self:process { setsched signal };
Chris PeBenito 19fd93
dontaudit ricci_modstorage_t self:process ptrace;
Chris PeBenito fa45da
allow ricci_modstorage_t self:capability { mknod sys_nice };
Chris PeBenito c0868a
allow ricci_modstorage_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito fa45da
allow ricci_modstorage_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito fa45da
Chris PeBenito fa45da
kernel_read_kernel_sysctls(ricci_modstorage_t)
Chris PeBenito fa45da
kernel_read_system_state(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito 6b19be
create_files_pattern(ricci_modstorage_t,ricci_modstorage_lock_t,ricci_modstorage_lock_t)
Chris PeBenito 6b19be
files_lock_filetrans(ricci_modstorage_t,ricci_modstorage_lock_t,file)
Chris PeBenito 6b19be
Chris PeBenito fa45da
corecmd_exec_bin(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
dev_read_sysfs(ricci_modstorage_t)
Chris PeBenito fa45da
dev_read_urand(ricci_modstorage_t)
Chris PeBenito fa45da
dev_manage_generic_blk_files(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito 6b19be
domain_dontaudit_read_all_domains_state(ricci_modstorage_t)
Chris PeBenito 6b19be
Chris PeBenito fa45da
#Needed for editing /etc/fstab
Chris PeBenito fa45da
files_manage_etc_files(ricci_modstorage_t)
Chris PeBenito fa45da
files_read_etc_runtime_files(ricci_modstorage_t)
Chris PeBenito fa45da
files_read_usr_files(ricci_modstorage_t)
Chris PeBenito 6b19be
files_read_kernel_modules(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
storage_raw_read_fixed_disk(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
term_dontaudit_use_console(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
fstools_domtrans(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
libs_use_ld_so(ricci_modstorage_t)
Chris PeBenito fa45da
libs_use_shared_libs(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
logging_send_syslog_msg(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
lvm_domtrans(ricci_modstorage_t)
Chris PeBenito c5561c
lvm_manage_config(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
miscfiles_read_localization(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
modutils_read_module_deps(ricci_modstorage_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito c5561c
	ccs_stream_connect(ricci_modstorage_t)
Chris PeBenito fa45da
	ccs_read_config(ricci_modstorage_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito 19fd93
	lvm_domtrans(ricci_modstorage_t)
Chris PeBenito 19fd93
')
Chris PeBenito 19fd93
Chris PeBenito 19fd93
optional_policy(`
Chris PeBenito c5561c
	nscd_socket_use(ricci_modstorage_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	oddjob_system_entry(ricci_modstorage_t, ricci_modstorage_exec_t)
Chris PeBenito fa45da
')
Chris PeBenito fa45da
Chris PeBenito fa45da
optional_policy(`
Chris PeBenito fa45da
	raid_domtrans_mdadm(ricci_modstorage_t)
Chris PeBenito fa45da
')