Chris PeBenito 3f1c08
Chris PeBenito 141cff
policy_module(monop,1.0.1)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
########################################
Chris PeBenito 3f1c08
#
Chris PeBenito 3f1c08
# Declarations
Chris PeBenito 3f1c08
#
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
type monopd_t;
Chris PeBenito 3f1c08
type monopd_exec_t;
Chris PeBenito 3f1c08
init_daemon_domain(monopd_t,monopd_exec_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
type monopd_etc_t;
Chris PeBenito 3f1c08
files_config_file(monopd_etc_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
type monopd_share_t;
Chris PeBenito 3f1c08
files_type(monopd_share_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
type monopd_var_run_t;
Chris PeBenito 3f1c08
files_pid_file(monopd_var_run_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
########################################
Chris PeBenito 3f1c08
#
Chris PeBenito 3f1c08
# Local policy
Chris PeBenito 3f1c08
#
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
dontaudit monopd_t self:capability sys_tty_config;
Chris PeBenito 3f1c08
allow monopd_t self:process signal_perms;
Chris PeBenito 3f1c08
allow monopd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 3f1c08
allow monopd_t self:udp_socket create_socket_perms;
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
allow monopd_t monopd_etc_t:file { getattr read };
Chris PeBenito 3f1c08
files_search_etc(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
allow monopd_t monopd_share_t:dir r_dir_perms;
Chris PeBenito 3f1c08
allow monopd_t monopd_share_t:file r_file_perms;
Chris PeBenito 3f1c08
allow monopd_t monopd_share_t:lnk_file { getattr read };
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
allow monopd_t monopd_var_run_t:file create_file_perms;
Chris PeBenito 3f1c08
allow monopd_t monopd_var_run_t:dir rw_dir_perms;
Chris PeBenito 3f1c08
files_pid_filetrans(monopd_t,monopd_var_run_t,file)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
kernel_read_kernel_sysctls(monopd_t)
Chris PeBenito 3f1c08
kernel_list_proc(monopd_t)
Chris PeBenito 3f1c08
kernel_read_proc_symlinks(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 141cff
corenet_non_ipsec_sendrecv(monopd_t)
Chris PeBenito 3f1c08
corenet_tcp_sendrecv_generic_if(monopd_t)
Chris PeBenito 3f1c08
corenet_udp_sendrecv_generic_if(monopd_t)
Chris PeBenito 3f1c08
corenet_tcp_sendrecv_all_nodes(monopd_t)
Chris PeBenito 3f1c08
corenet_udp_sendrecv_all_nodes(monopd_t)
Chris PeBenito 3f1c08
corenet_tcp_sendrecv_all_ports(monopd_t)
Chris PeBenito 3f1c08
corenet_udp_sendrecv_all_ports(monopd_t)
Chris PeBenito 3f1c08
corenet_tcp_bind_all_nodes(monopd_t)
Chris PeBenito 3f1c08
corenet_tcp_bind_monopd_port(monopd_t)
Chris PeBenito 141cff
corenet_sendrecv_monopd_server_packets(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
dev_read_sysfs(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
domain_use_interactive_fds(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
files_read_etc_files(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
fs_getattr_all_fs(monopd_t)
Chris PeBenito 3f1c08
fs_search_auto_mountpoints(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
term_dontaudit_use_console(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
init_use_fds(monopd_t)
Chris PeBenito 3f1c08
init_use_script_ptys(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
libs_use_ld_so(monopd_t)
Chris PeBenito 3f1c08
libs_use_shared_libs(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
logging_send_syslog_msg(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
miscfiles_read_localization(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
sysnet_read_config(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
userdom_dontaudit_use_unpriv_user_fds(monopd_t)
Chris PeBenito 3f1c08
userdom_dontaudit_search_sysadm_home_dirs(monopd_t)
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
ifdef(`targeted_policy',`
Chris PeBenito 3f1c08
	term_dontaudit_use_unallocated_ttys(monopd_t)
Chris PeBenito 3f1c08
	term_dontaudit_use_generic_ptys(monopd_t)
Chris PeBenito 3f1c08
	files_dontaudit_read_root_files(monopd_t)
Chris PeBenito 3f1c08
')
Chris PeBenito 3f1c08
Chris PeBenito e8bf4d
optional_policy(`
Chris PeBenito 3f1c08
	nis_use_ypbind(monopd_t)
Chris PeBenito 3f1c08
')
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
optional_policy(`
Chris PeBenito 3f1c08
	seutil_sigchld_newrole(monopd_t)
Chris PeBenito 3f1c08
')
Chris PeBenito 3f1c08
Chris PeBenito 3f1c08
optional_policy(`
Chris PeBenito 3f1c08
	udev_read_db(monopd_t)
Chris PeBenito 3f1c08
')