Chris PeBenito 230838
Chris PeBenito 724925
policy_module(pegasus,1.1.1)
Chris PeBenito 230838
Chris PeBenito 230838
########################################
Chris PeBenito 230838
#
Chris PeBenito 230838
# Declarations
Chris PeBenito 230838
#
Chris PeBenito 230838
Chris PeBenito 230838
type pegasus_t;
Chris PeBenito 230838
type pegasus_exec_t;
Chris PeBenito 230838
init_daemon_domain(pegasus_t,pegasus_exec_t)
Chris PeBenito 230838
Chris PeBenito 230838
type pegasus_data_t;
Chris PeBenito 230838
files_type(pegasus_data_t)
Chris PeBenito 230838
Chris PeBenito 2629c6
type pegasus_tmp_t;
Chris PeBenito 2629c6
files_tmp_file(pegasus_tmp_t)
Chris PeBenito 2629c6
Chris PeBenito 230838
type pegasus_conf_t;
Chris PeBenito 230838
files_type(pegasus_conf_t)
Chris PeBenito 230838
Chris PeBenito 230838
type pegasus_mof_t;
Chris PeBenito 230838
files_type(pegasus_mof_t)
Chris PeBenito 230838
Chris PeBenito 230838
type pegasus_var_run_t;
Chris PeBenito 230838
files_pid_file(pegasus_var_run_t)
Chris PeBenito 230838
Chris PeBenito 230838
########################################
Chris PeBenito 230838
#
Chris PeBenito 230838
# Local policy
Chris PeBenito 230838
#
Chris PeBenito 230838
Chris PeBenito 230838
allow pegasus_t self:capability { dac_override net_bind_service audit_write }; 
Chris PeBenito 230838
dontaudit pegasus_t self:capability sys_tty_config;
Chris PeBenito 2629c6
allow pegasus_t self:process signal;
Chris PeBenito 230838
allow pegasus_t self:fifo_file rw_file_perms;
Chris PeBenito 230838
allow pegasus_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 230838
allow pegasus_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 230838
allow pegasus_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
Chris PeBenito 230838
allow pegasus_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 230838
Chris PeBenito 2629c6
allow pegasus_t pegasus_conf_t:dir rw_dir_perms;
Chris PeBenito 37ff8f
allow pegasus_t pegasus_conf_t:file { r_file_perms link unlink };
Chris PeBenito 37ff8f
allow pegasus_t pegasus_conf_t:lnk_file r_file_perms;
Chris PeBenito 230838
Chris PeBenito 230838
allow pegasus_t pegasus_data_t:dir rw_dir_perms;
Chris PeBenito 230838
allow pegasus_t pegasus_data_t:file create_file_perms;
Chris PeBenito 230838
allow pegasus_t pegasus_data_t:lnk_file create_lnk_perms;
Chris PeBenito 2629c6
type_transition pegasus_t pegasus_conf_t:{ file dir } pegasus_data_t;
Chris PeBenito 230838
Chris PeBenito 230838
allow pegasus_t pegasus_mof_t:dir r_dir_perms;
Chris PeBenito 230838
allow pegasus_t pegasus_mof_t:file r_file_perms;
Chris PeBenito 230838
allow pegasus_t pegasus_mof_t:lnk_file { getattr read };
Chris PeBenito 230838
Chris PeBenito 2629c6
allow pegasus_t pegasus_tmp_t:dir create_dir_perms;
Chris PeBenito 2629c6
allow pegasus_t pegasus_tmp_t:file create_file_perms;
Chris PeBenito 103fe2
files_tmp_filetrans(pegasus_t, pegasus_tmp_t, { file dir })
Chris PeBenito 2629c6
Chris PeBenito 230838
allow pegasus_t pegasus_var_run_t:file create_file_perms;
Chris PeBenito 2629c6
allow pegasus_t pegasus_var_run_t:sock_file { create setattr unlink };
Chris PeBenito 230838
allow pegasus_t pegasus_var_run_t:dir rw_dir_perms;
Chris PeBenito 1c1ac6
files_pid_filetrans(pegasus_t,pegasus_var_run_t,file)
Chris PeBenito 230838
Chris PeBenito 445522
kernel_read_kernel_sysctls(pegasus_t)
Chris PeBenito 445522
kernel_read_fs_sysctls(pegasus_t)
Chris PeBenito 230838
kernel_read_system_state(pegasus_t)
Chris PeBenito 230838
kernel_search_vm_sysctl(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
corenet_tcp_sendrecv_all_if(pegasus_t)
Chris PeBenito 230838
corenet_raw_sendrecv_all_if(pegasus_t)
Chris PeBenito 230838
corenet_tcp_sendrecv_all_nodes(pegasus_t)
Chris PeBenito 230838
corenet_raw_sendrecv_all_nodes(pegasus_t)
Chris PeBenito 230838
corenet_tcp_sendrecv_all_ports(pegasus_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(pegasus_t)
Chris PeBenito 230838
corenet_tcp_bind_all_nodes(pegasus_t)
Chris PeBenito 230838
corenet_tcp_bind_pegasus_http_port(pegasus_t)
Chris PeBenito 230838
corenet_tcp_bind_pegasus_https_port(pegasus_t)
Chris PeBenito 230838
corenet_tcp_connect_pegasus_http_port(pegasus_t)
Chris PeBenito 230838
corenet_tcp_connect_pegasus_https_port(pegasus_t)
Chris PeBenito 724925
corenet_tcp_connect_generic_port(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
dev_read_sysfs(pegasus_t)
Chris PeBenito 230838
dev_read_urand(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
fs_getattr_all_fs(pegasus_t)
Chris PeBenito 230838
fs_search_auto_mountpoints(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
term_dontaudit_use_console(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
auth_use_nsswitch(pegasus_t)
Chris PeBenito 2629c6
auth_domtrans_chk_passwd(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 15722e
domain_use_interactive_fds(pegasus_t)
Chris PeBenito af2345
domain_read_all_domains_state(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
files_read_etc_files(pegasus_t)
Chris PeBenito 230838
files_list_var_lib(pegasus_t)
Chris PeBenito 230838
files_read_var_lib_files(pegasus_t)
Chris PeBenito 230838
files_read_var_lib_symlinks(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 1c1ac6
init_use_fds(pegasus_t)
Chris PeBenito 1815ba
init_use_script_ptys(pegasus_t)
Chris PeBenito 68228b
init_rw_utmp(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
libs_use_ld_so(pegasus_t)
Chris PeBenito 230838
libs_use_shared_libs(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
miscfiles_read_localization(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
sysnet_read_config(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 15722e
userdom_dontaudit_use_unpriv_user_fds(pegasus_t)
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(pegasus_t)
Chris PeBenito 230838
Chris PeBenito 230838
ifdef(`targeted_policy', `
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(pegasus_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(pegasus_t)
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(pegasus_t)
Chris PeBenito 230838
')
Chris PeBenito 230838
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 230838
	logging_send_syslog_msg(pegasus_t)
Chris PeBenito 230838
')
Chris PeBenito 230838
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1815ba
	nscd_socket_use(pegasus_t)
Chris PeBenito 230838
')
Chris PeBenito 230838
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 230838
	seutil_sigchld_newrole(pegasus_t)
Chris PeBenito 230838
	seutil_dontaudit_read_config(pegasus_t)
Chris PeBenito 230838
')
Chris PeBenito 230838
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 230838
	udev_read_db(pegasus_t)
Chris PeBenito 230838
')