|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c12621 |
policy_module(pyzor, 2.0.2)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type pyzor_t;
|
|
Chris PeBenito |
17de1b |
type pyzor_exec_t;
|
|
Chris PeBenito |
296273 |
typealias pyzor_t alias { user_pyzor_t staff_pyzor_t sysadm_pyzor_t };
|
|
Chris PeBenito |
296273 |
typealias pyzor_t alias { auditadm_pyzor_t secadm_pyzor_t };
|
|
Chris PeBenito |
0bfccd |
application_domain(pyzor_t, pyzor_exec_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(pyzor_t)
|
|
Chris PeBenito |
17de1b |
role system_r types pyzor_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type pyzor_etc_t;
|
|
Chris PeBenito |
17de1b |
files_type(pyzor_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
type pyzor_home_t;
|
|
Chris PeBenito |
296273 |
typealias pyzor_home_t alias { user_pyzor_home_t staff_pyzor_home_t sysadm_pyzor_home_t };
|
|
Chris PeBenito |
296273 |
typealias pyzor_home_t alias { auditadm_pyzor_home_t secadm_pyzor_home_t };
|
|
Chris PeBenito |
296273 |
userdom_user_home_content(pyzor_home_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
59bedc |
type pyzor_tmp_t;
|
|
Chris PeBenito |
296273 |
typealias pyzor_tmp_t alias { user_pyzor_tmp_t staff_pyzor_tmp_t sysadm_pyzor_tmp_t };
|
|
Chris PeBenito |
296273 |
typealias pyzor_tmp_t alias { auditadm_pyzor_tmp_t secadm_pyzor_tmp_t };
|
|
Chris PeBenito |
59bedc |
files_tmp_file(pyzor_tmp_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(pyzor_tmp_t)
|
|
Chris PeBenito |
59bedc |
|
|
Chris PeBenito |
17de1b |
type pyzor_var_lib_t;
|
|
Chris PeBenito |
296273 |
typealias pyzor_var_lib_t alias { user_pyzor_var_lib_t staff_pyzor_var_lib_t sysadm_pyzor_var_lib_t };
|
|
Chris PeBenito |
296273 |
typealias pyzor_var_lib_t alias { auditadm_pyzor_var_lib_t secadm_pyzor_var_lib_t };
|
|
Chris PeBenito |
17de1b |
files_type(pyzor_var_lib_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(pyzor_var_lib_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type pyzord_t;
|
|
Chris PeBenito |
296273 |
type pyzord_exec_t;
|
|
Chris PeBenito |
296273 |
init_daemon_domain(pyzord_t,pyzord_exec_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type pyzord_log_t;
|
|
Chris PeBenito |
296273 |
logging_log_file(pyzord_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
296273 |
# Pyzor client local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow pyzor_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
manage_dirs_pattern(pyzor_t, pyzor_home_t, pyzor_home_t)
|
|
Chris PeBenito |
296273 |
manage_files_pattern(pyzor_t, pyzor_home_t, pyzor_home_t)
|
|
Chris PeBenito |
296273 |
manage_lnk_files_pattern(pyzor_t, pyzor_home_t, pyzor_home_t)
|
|
Chris PeBenito |
296273 |
userdom_user_home_dir_filetrans(pyzor_t, pyzor_home_t, { dir file lnk_file })
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
c0868a |
allow pyzor_t pyzor_var_lib_t:dir list_dir_perms;
|
|
Chris PeBenito |
c0868a |
read_files_pattern(pyzor_t,pyzor_var_lib_t,pyzor_var_lib_t)
|
|
Chris PeBenito |
17de1b |
files_search_var_lib(pyzor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(pyzor_t, pyzor_tmp_t, pyzor_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(pyzor_t, pyzor_tmp_t, pyzor_tmp_t)
|
|
Chris PeBenito |
59bedc |
files_tmp_filetrans(pyzor_t, pyzor_tmp_t, { file dir })
|
|
Chris PeBenito |
59bedc |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(pyzor_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(pyzor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_list_bin(pyzor_t)
|
|
Chris PeBenito |
17de1b |
corecmd_getattr_bin_files(pyzor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(pyzor_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(pyzor_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(pyzor_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(pyzor_t)
|
|
Chris PeBenito |
2c3ac4 |
corenet_tcp_sendrecv_all_ports(pyzor_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(pyzor_t)
|
|
Chris PeBenito |
2c3ac4 |
corenet_tcp_connect_http_port(pyzor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(pyzor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(pyzor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_use_nsswitch(pyzor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(pyzor_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(pyzor_t)
|
|
Chris PeBenito |
eac818 |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
amavis_manage_lib_files(pyzor_t)
|
|
Chris PeBenito |
17de1b |
amavis_manage_spool_files(pyzor_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
2c3ac4 |
spamassassin_signal_spamd(pyzor_t)
|
|
Chris PeBenito |
17de1b |
spamassassin_read_spamd_tmp_files(pyzor_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
296273 |
# Pyzor server local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow pyzord_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(pyzord_t, pyzor_var_lib_t, pyzor_var_lib_t)
|
|
Chris PeBenito |
c0868a |
allow pyzord_t pyzor_var_lib_t:dir setattr;
|
|
Chris PeBenito |
0bfccd |
files_var_lib_filetrans(pyzord_t, pyzor_var_lib_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
read_files_pattern(pyzord_t, pyzor_etc_t, pyzor_etc_t)
|
|
Chris PeBenito |
c0868a |
allow pyzord_t pyzor_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
can_exec(pyzord_t, pyzor_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(pyzord_t, pyzord_log_t, pyzord_log_t)
|
|
Chris PeBenito |
c0868a |
allow pyzord_t pyzord_log_t:dir setattr;
|
|
Chris PeBenito |
0bfccd |
logging_log_filetrans(pyzord_t, pyzord_log_t, { file dir } )
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(pyzord_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(pyzord_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(pyzord_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(pyzord_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(pyzord_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(pyzord_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(pyzord_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(pyzord_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(pyzord_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_bind_generic_node(pyzord_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_pyzor_port(pyzord_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_pyzor_server_packets(pyzord_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(pyzord_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_use_nsswitch(pyzord_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
eac818 |
locallogin_dontaudit_use_fds(pyzord_t)
|
|
Chris PeBenito |
eac818 |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(pyzord_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e9c6cd |
# Do not audit attempts to access /root.
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(pyzord_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
mta_manage_spool(pyzord_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(pyzord_t)
|
|
Chris PeBenito |
17de1b |
')
|