|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
141cff |
policy_module(postgrey,1.0.1)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
########################################
|
|
Chris PeBenito |
7f9ebb |
#
|
|
Chris PeBenito |
7f9ebb |
# Declarations
|
|
Chris PeBenito |
7f9ebb |
#
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
type postgrey_t;
|
|
Chris PeBenito |
7f9ebb |
type postgrey_exec_t;
|
|
Chris PeBenito |
7f9ebb |
init_daemon_domain(postgrey_t,postgrey_exec_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
type postgrey_etc_t;
|
|
Chris PeBenito |
7f9ebb |
files_config_file(postgrey_etc_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
type postgrey_var_lib_t;
|
|
Chris PeBenito |
7f9ebb |
files_type(postgrey_var_lib_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
type postgrey_var_run_t;
|
|
Chris PeBenito |
7f9ebb |
files_pid_file(postgrey_var_run_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
########################################
|
|
Chris PeBenito |
7f9ebb |
#
|
|
Chris PeBenito |
7f9ebb |
# Local policy
|
|
Chris PeBenito |
7f9ebb |
#
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t self:capability { chown setgid setuid };
|
|
Chris PeBenito |
7f9ebb |
dontaudit postgrey_t self:capability sys_tty_config;
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t self:process signal_perms;
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t postgrey_etc_t:file r_file_perms;
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t postgrey_etc_t:dir r_dir_perms;
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t postgrey_etc_t:lnk_file { getattr read };
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t postgrey_var_lib_t:file create_file_perms;
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t postgrey_var_lib_t:dir rw_dir_perms;
|
|
Chris PeBenito |
7f9ebb |
files_var_lib_filetrans(postgrey_t,postgrey_var_lib_t,file)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t postgrey_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
7f9ebb |
allow postgrey_t postgrey_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
7f9ebb |
files_pid_filetrans(postgrey_t,postgrey_var_run_t,file)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
kernel_read_system_state(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
kernel_read_kernel_sysctls(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
# for perl
|
|
Chris PeBenito |
7f9ebb |
corecmd_search_bin(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
corecmd_search_sbin(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
corenet_non_ipsec_sendrecv(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
corenet_tcp_sendrecv_generic_if(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
corenet_tcp_sendrecv_all_nodes(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
corenet_tcp_sendrecv_all_ports(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
corenet_tcp_bind_all_nodes(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
corenet_tcp_bind_postgrey_port(postgrey_t)
|
|
Chris PeBenito |
141cff |
corenet_sendrecv_postgrey_server_packets(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
dev_read_urand(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
dev_read_sysfs(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
domain_use_interactive_fds(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
files_read_etc_files(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
files_read_etc_runtime_files(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
files_read_usr_files(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
files_getattr_tmp_dirs(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
fs_getattr_all_fs(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
fs_search_auto_mountpoints(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
term_dontaudit_use_console(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
init_use_fds(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
init_use_script_ptys(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
libs_use_ld_so(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
libs_use_shared_libs(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
logging_send_syslog_msg(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
miscfiles_read_localization(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
sysnet_read_config(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
userdom_dontaudit_use_unpriv_user_fds(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
userdom_dontaudit_search_sysadm_home_dirs(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
7f9ebb |
term_dontaudit_use_unallocated_ttys(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
term_dontaudit_use_generic_ptys(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
files_dontaudit_read_root_files(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
')
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
optional_policy(`
|
|
Chris PeBenito |
7f9ebb |
nis_use_ypbind(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
')
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
optional_policy(`
|
|
Chris PeBenito |
7f9ebb |
seutil_sigchld_newrole(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
')
|
|
Chris PeBenito |
7f9ebb |
|
|
Chris PeBenito |
7f9ebb |
optional_policy(`
|
|
Chris PeBenito |
7f9ebb |
udev_read_db(postgrey_t)
|
|
Chris PeBenito |
7f9ebb |
')
|