Chris PeBenito 17de1b7
Chris PeBenito 116c1da
policy_module(postgrey,1.3.0)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
########################################
Chris PeBenito 17de1b7
#
Chris PeBenito 17de1b7
# Declarations
Chris PeBenito 17de1b7
#
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
type postgrey_t;
Chris PeBenito 17de1b7
type postgrey_exec_t;
Chris PeBenito 17de1b7
init_daemon_domain(postgrey_t,postgrey_exec_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
type postgrey_etc_t;
Chris PeBenito 17de1b7
files_config_file(postgrey_etc_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
type postgrey_var_lib_t;
Chris PeBenito 17de1b7
files_type(postgrey_var_lib_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
type postgrey_var_run_t;
Chris PeBenito 17de1b7
files_pid_file(postgrey_var_run_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
########################################
Chris PeBenito 17de1b7
#
Chris PeBenito 17de1b7
# Local policy
Chris PeBenito 17de1b7
#
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
allow postgrey_t self:capability { chown setgid setuid };
Chris PeBenito 17de1b7
dontaudit postgrey_t self:capability sys_tty_config;
Chris PeBenito 17de1b7
allow postgrey_t self:process signal_perms;
Chris PeBenito 17de1b7
allow postgrey_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b7
Chris PeBenito c0868a7
allow postgrey_t postgrey_etc_t:dir list_dir_perms;
Chris PeBenito c0868a7
read_files_pattern(postgrey_t,postgrey_etc_t,postgrey_etc_t)
Chris PeBenito c0868a7
read_lnk_files_pattern(postgrey_t,postgrey_etc_t,postgrey_etc_t)
Chris PeBenito 17de1b7
Chris PeBenito c0868a7
manage_files_pattern(postgrey_t,postgrey_var_lib_t,postgrey_var_lib_t)
Chris PeBenito 17de1b7
files_var_lib_filetrans(postgrey_t,postgrey_var_lib_t,file)
Chris PeBenito 17de1b7
Chris PeBenito c0868a7
manage_files_pattern(postgrey_t,postgrey_var_run_t,postgrey_var_run_t)
Chris PeBenito c0868a7
manage_sock_files_pattern(postgrey_t,postgrey_var_run_t,postgrey_var_run_t)
Chris PeBenito 3c3c043
files_pid_filetrans(postgrey_t,postgrey_var_run_t,{ file sock_file })
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
kernel_read_system_state(postgrey_t)
Chris PeBenito 17de1b7
kernel_read_kernel_sysctls(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
# for perl
Chris PeBenito 17de1b7
corecmd_search_bin(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 1900668
corenet_all_recvfrom_unlabeled(postgrey_t)
Chris PeBenito 1900668
corenet_all_recvfrom_netlabel(postgrey_t)
Chris PeBenito 17de1b7
corenet_tcp_sendrecv_generic_if(postgrey_t)
Chris PeBenito 17de1b7
corenet_tcp_sendrecv_all_nodes(postgrey_t)
Chris PeBenito 17de1b7
corenet_tcp_sendrecv_all_ports(postgrey_t)
Chris PeBenito 17de1b7
corenet_tcp_bind_all_nodes(postgrey_t)
Chris PeBenito 17de1b7
corenet_tcp_bind_postgrey_port(postgrey_t)
Chris PeBenito 17de1b7
corenet_sendrecv_postgrey_server_packets(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
dev_read_urand(postgrey_t)
Chris PeBenito 17de1b7
dev_read_sysfs(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
domain_use_interactive_fds(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
files_read_etc_files(postgrey_t)
Chris PeBenito 17de1b7
files_read_etc_runtime_files(postgrey_t)
Chris PeBenito 17de1b7
files_read_usr_files(postgrey_t)
Chris PeBenito 17de1b7
files_getattr_tmp_dirs(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
fs_getattr_all_fs(postgrey_t)
Chris PeBenito 17de1b7
fs_search_auto_mountpoints(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
libs_use_ld_so(postgrey_t)
Chris PeBenito 17de1b7
libs_use_shared_libs(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
logging_send_syslog_msg(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
miscfiles_read_localization(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
sysnet_read_config(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
userdom_dontaudit_use_unpriv_user_fds(postgrey_t)
Chris PeBenito 17de1b7
userdom_dontaudit_search_sysadm_home_dirs(postgrey_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	nis_use_ypbind(postgrey_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	seutil_sigchld_newrole(postgrey_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	udev_read_db(postgrey_t)
Chris PeBenito 17de1b7
')