|
Chris PeBenito |
fee486 |
policy_module(postgrey, 1.7.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postgrey_t;
|
|
Chris PeBenito |
17de1b |
type postgrey_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(postgrey_t, postgrey_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postgrey_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(postgrey_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
5843d0 |
type postgrey_initrc_exec_t;
|
|
Chris PeBenito |
5843d0 |
init_script_file(postgrey_initrc_exec_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
type postgrey_spool_t;
|
|
Chris PeBenito |
5843d0 |
files_type(postgrey_spool_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
17de1b |
type postgrey_var_lib_t;
|
|
Chris PeBenito |
17de1b |
files_type(postgrey_var_lib_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postgrey_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(postgrey_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
5843d0 |
allow postgrey_t self:capability { chown dac_override setgid setuid };
|
|
Chris PeBenito |
17de1b |
dontaudit postgrey_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow postgrey_t self:process signal_perms;
|
|
Chris PeBenito |
17de1b |
allow postgrey_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
5843d0 |
allow postgrey_t self:fifo_file create_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow postgrey_t postgrey_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(postgrey_t, postgrey_etc_t, postgrey_etc_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(postgrey_t, postgrey_etc_t, postgrey_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
5843d0 |
manage_dirs_pattern(postgrey_t, postgrey_spool_t, postgrey_spool_t)
|
|
Chris PeBenito |
5843d0 |
manage_files_pattern(postgrey_t, postgrey_spool_t, postgrey_spool_t)
|
|
Chris PeBenito |
5843d0 |
manage_fifo_files_pattern(postgrey_t, postgrey_spool_t, postgrey_spool_t)
|
|
Chris PeBenito |
5843d0 |
manage_sock_files_pattern(postgrey_t, postgrey_spool_t, postgrey_spool_t)
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(postgrey_t, postgrey_var_lib_t, postgrey_var_lib_t)
|
|
Chris PeBenito |
0bfccd |
files_var_lib_filetrans(postgrey_t, postgrey_var_lib_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Jeremy Solt |
cf8723 |
manage_dirs_pattern(postgrey_t, postgrey_var_run_t, postgrey_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(postgrey_t, postgrey_var_run_t, postgrey_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(postgrey_t, postgrey_var_run_t, postgrey_var_run_t)
|
|
Jeremy Solt |
cf8723 |
files_pid_filetrans(postgrey_t, postgrey_var_run_t, { dir file sock_file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(postgrey_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for perl
|
|
Chris PeBenito |
17de1b |
corecmd_search_bin(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(postgrey_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(postgrey_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_generic_if(postgrey_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(postgrey_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(postgrey_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(postgrey_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_postgrey_port(postgrey_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_postgrey_server_packets(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(postgrey_t)
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(postgrey_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(postgrey_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(postgrey_t)
|
|
Chris PeBenito |
17de1b |
files_getattr_tmp_dirs(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(postgrey_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(postgrey_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(postgrey_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(postgrey_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
5843d0 |
postfix_read_config(postgrey_t)
|
|
Chris PeBenito |
9ff89c |
postfix_manage_spool_files(postgrey_t)
|
|
Chris PeBenito |
5843d0 |
')
|
|
Chris PeBenito |
5843d0 |
|
|
Chris PeBenito |
5843d0 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(postgrey_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(postgrey_t)
|
|
Chris PeBenito |
17de1b |
')
|