Dominick Grift e4d7a35
policy_module(postgrey, 1.8.1)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Declarations
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type postgrey_t;
Chris PeBenito 9401ae1
type postgrey_exec_t;
Chris PeBenito 9401ae1
init_daemon_domain(postgrey_t, postgrey_exec_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type postgrey_etc_t;
Chris PeBenito 9401ae1
files_config_file(postgrey_etc_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type postgrey_initrc_exec_t;
Chris PeBenito 9401ae1
init_script_file(postgrey_initrc_exec_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type postgrey_spool_t;
Chris PeBenito 9401ae1
files_type(postgrey_spool_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type postgrey_var_lib_t;
Chris PeBenito 9401ae1
files_type(postgrey_var_lib_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type postgrey_var_run_t;
Chris PeBenito 9401ae1
files_pid_file(postgrey_var_run_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Local policy
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow postgrey_t self:capability { chown dac_override setgid setuid };
Chris PeBenito 9401ae1
dontaudit postgrey_t self:capability sys_tty_config;
Chris PeBenito 9401ae1
allow postgrey_t self:process signal_perms;
Chris PeBenito 9401ae1
allow postgrey_t self:fifo_file create_fifo_file_perms;
Dominick Grift e4d7a35
allow postgrey_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow postgrey_t postgrey_etc_t:dir list_dir_perms;
Dominick Grift e4d7a35
allow postgrey_t postgrey_etc_t:file read_file_perms;
Dominick Grift e4d7a35
allow postgrey_t postgrey_etc_t:lnk_file read_lnk_file_perms;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(postgrey_t, postgrey_spool_t, postgrey_spool_t)
Chris PeBenito 9401ae1
manage_files_pattern(postgrey_t, postgrey_spool_t, postgrey_spool_t)
Chris PeBenito 9401ae1
manage_fifo_files_pattern(postgrey_t, postgrey_spool_t, postgrey_spool_t)
Chris PeBenito 9401ae1
manage_sock_files_pattern(postgrey_t, postgrey_spool_t, postgrey_spool_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_files_pattern(postgrey_t, postgrey_var_lib_t, postgrey_var_lib_t)
Chris PeBenito 9401ae1
files_var_lib_filetrans(postgrey_t, postgrey_var_lib_t, file)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(postgrey_t, postgrey_var_run_t, postgrey_var_run_t)
Chris PeBenito 9401ae1
manage_files_pattern(postgrey_t, postgrey_var_run_t, postgrey_var_run_t)
Chris PeBenito 9401ae1
manage_sock_files_pattern(postgrey_t, postgrey_var_run_t, postgrey_var_run_t)
Chris PeBenito 9401ae1
files_pid_filetrans(postgrey_t, postgrey_var_run_t, { dir file sock_file })
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
kernel_read_system_state(postgrey_t)
Chris PeBenito 9401ae1
kernel_read_kernel_sysctls(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corecmd_search_bin(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corenet_all_recvfrom_unlabeled(postgrey_t)
Chris PeBenito 9401ae1
corenet_all_recvfrom_netlabel(postgrey_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_if(postgrey_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_node(postgrey_t)
Chris PeBenito 9401ae1
corenet_tcp_bind_generic_node(postgrey_t)
Dominick Grift e4d7a35
Chris PeBenito 9401ae1
corenet_sendrecv_postgrey_server_packets(postgrey_t)
Dominick Grift e4d7a35
corenet_tcp_bind_postgrey_port(postgrey_t)
Dominick Grift e4d7a35
corenet_tcp_sendrecv_postgrey_port(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
dev_read_urand(postgrey_t)
Chris PeBenito 9401ae1
dev_read_sysfs(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
domain_use_interactive_fds(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(postgrey_t)
Chris PeBenito 9401ae1
files_read_etc_runtime_files(postgrey_t)
Chris PeBenito 9401ae1
files_read_usr_files(postgrey_t)
Chris PeBenito 9401ae1
files_getattr_tmp_dirs(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
fs_getattr_all_fs(postgrey_t)
Chris PeBenito 9401ae1
fs_search_auto_mountpoints(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
logging_send_syslog_msg(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
miscfiles_read_localization(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
sysnet_read_config(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
userdom_dontaudit_use_unpriv_user_fds(postgrey_t)
Chris PeBenito 9401ae1
userdom_dontaudit_search_user_home_dirs(postgrey_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	nis_use_ypbind(postgrey_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	postfix_read_config(postgrey_t)
Chris PeBenito 9401ae1
	postfix_manage_spool_files(postgrey_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	seutil_sigchld_newrole(postgrey_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	udev_read_db(postgrey_t)
Chris PeBenito 9401ae1
')