Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
policy_module(roundup,1.0.0)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
########################################
Chris PeBenito 7e0fa5
#
Chris PeBenito 7e0fa5
# Declarations
Chris PeBenito 7e0fa5
#
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
type roundup_t;
Chris PeBenito 7e0fa5
type roundup_exec_t;
Chris PeBenito 7e0fa5
init_daemon_domain(roundup_t,roundup_exec_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
type roundup_var_run_t;
Chris PeBenito 7e0fa5
files_pid_file(roundup_var_run_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
type roundup_var_lib_t;
Chris PeBenito 7e0fa5
files_type(roundup_var_lib_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
########################################
Chris PeBenito 7e0fa5
#
Chris PeBenito 7e0fa5
# Local policy
Chris PeBenito 7e0fa5
#
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
allow roundup_t self:capability { setgid setuid };
Chris PeBenito 7e0fa5
dontaudit roundup_t self:capability sys_tty_config;
Chris PeBenito 7e0fa5
allow roundup_t self:process signal_perms;
Chris PeBenito 7e0fa5
allow roundup_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 7e0fa5
allow roundup_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 7e0fa5
allow roundup_t self:udp_socket create_socket_perms;
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
allow roundup_t roundup_var_run_t:file create_file_perms;
Chris PeBenito 7e0fa5
allow roundup_t roundup_var_run_t:dir rw_dir_perms;
Chris PeBenito 1c1ac6
files_pid_filetrans(roundup_t,roundup_var_run_t,file)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
allow roundup_t roundup_var_lib_t:file create_file_perms;
Chris PeBenito 7e0fa5
allow roundup_t roundup_var_lib_t:dir rw_dir_perms;
Chris PeBenito 1c1ac6
files_var_lib_filetrans(roundup_t,roundup_var_lib_t,file)
Chris PeBenito 7e0fa5
Chris PeBenito 445522
kernel_read_kernel_sysctls(roundup_t)
Chris PeBenito 7e0fa5
kernel_list_proc(roundup_t)
Chris PeBenito 7e0fa5
kernel_read_proc_symlinks(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
dev_read_sysfs(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
# execute python
Chris PeBenito 7e0fa5
corecmd_exec_bin(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
corenet_non_ipsec_sendrecv(roundup_t)
Chris PeBenito 7e0fa5
corenet_tcp_sendrecv_generic_if(roundup_t)
Chris PeBenito 7e0fa5
corenet_udp_sendrecv_generic_if(roundup_t)
Chris PeBenito 7e0fa5
corenet_raw_sendrecv_generic_if(roundup_t)
Chris PeBenito 7e0fa5
corenet_tcp_sendrecv_all_nodes(roundup_t)
Chris PeBenito 7e0fa5
corenet_udp_sendrecv_all_nodes(roundup_t)
Chris PeBenito 7e0fa5
corenet_raw_sendrecv_all_nodes(roundup_t)
Chris PeBenito 7e0fa5
corenet_tcp_sendrecv_all_ports(roundup_t)
Chris PeBenito 7e0fa5
corenet_udp_sendrecv_all_ports(roundup_t)
Chris PeBenito 7e0fa5
corenet_tcp_bind_all_nodes(roundup_t)
Chris PeBenito 7e0fa5
corenet_udp_bind_all_nodes(roundup_t)
Chris PeBenito 7e0fa5
corenet_tcp_bind_http_cache_port(roundup_t)
Chris PeBenito 7e0fa5
corenet_tcp_connect_smtp_port(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
# /usr/share/mysql/charsets/Index.xml
Chris PeBenito 7e0fa5
dev_read_urand(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 15722e
domain_use_interactive_fds(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
# /usr/share/mysql/charsets/Index.xml
Chris PeBenito 7e0fa5
files_read_usr_files(roundup_t)
Chris PeBenito 7e0fa5
files_read_etc_files(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
fs_getattr_all_fs(roundup_t)
Chris PeBenito 7e0fa5
fs_search_auto_mountpoints(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
term_dontaudit_use_console(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 1c1ac6
init_use_fds(roundup_t)
Chris PeBenito 1815ba
init_use_script_ptys(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
libs_use_ld_so(roundup_t)
Chris PeBenito 7e0fa5
libs_use_shared_libs(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
logging_send_syslog_msg(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
miscfiles_read_localization(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
sysnet_read_config(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(roundup_t)
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(roundup_t)
Chris PeBenito 7e0fa5
Chris PeBenito 7e0fa5
ifdef(`targeted_policy',`
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(roundup_t)
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(roundup_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(roundup_t)
Chris PeBenito 7e0fa5
')
Chris PeBenito 7e0fa5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 7e0fa5
	mount_send_nfs_client_request(roundup_t)
Chris PeBenito 7e0fa5
')
Chris PeBenito 7e0fa5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 7e0fa5
	mysql_stream_connect(roundup_t)
Chris PeBenito 1815ba
	mysql_search_db(roundup_t)
Chris PeBenito 7e0fa5
')
Chris PeBenito 7e0fa5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 7e0fa5
	seutil_sigchld_newrole(roundup_t)
Chris PeBenito 7e0fa5
')
Chris PeBenito 7e0fa5
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 7e0fa5
	udev_read_db(roundup_t)
Chris PeBenito 7e0fa5
')