Chris PeBenito 17de1b
Chris PeBenito 116c1d
policy_module(sasl,1.6.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 56e1b3
## <desc>
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## Allow sasl to read shadow
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## </desc>
Chris PeBenito 56e1b3
gen_tunable(allow_saslauthd_read_shadow,false)
Chris PeBenito 56e1b3
Chris PeBenito 17de1b
type saslauthd_t;
Chris PeBenito 17de1b
type saslauthd_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(saslauthd_t,saslauthd_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 697489
type saslauthd_tmp_t;
Chris PeBenito 697489
files_tmp_file(saslauthd_tmp_t)
Chris PeBenito 697489
Chris PeBenito 17de1b
type saslauthd_var_run_t;
Chris PeBenito 17de1b
files_pid_file(saslauthd_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 17de1b
allow saslauthd_t self:capability setuid;
Chris PeBenito 17de1b
dontaudit saslauthd_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow saslauthd_t self:process signal_perms;
Chris PeBenito 17de1b
allow saslauthd_t self:fifo_file { read write };
Chris PeBenito 17de1b
allow saslauthd_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 17de1b
allow saslauthd_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow saslauthd_t self:tcp_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito 697489
allow saslauthd_t saslauthd_tmp_t:dir setattr;
Chris PeBenito 697489
manage_files_pattern(saslauthd_t,saslauthd_tmp_t,saslauthd_tmp_t)
Chris PeBenito 697489
files_tmp_filetrans(saslauthd_t,saslauthd_tmp_t,file)
Chris PeBenito 697489
Chris PeBenito c0868a
manage_files_pattern(saslauthd_t,saslauthd_var_run_t,saslauthd_var_run_t)
Chris PeBenito c0868a
manage_sock_files_pattern(saslauthd_t,saslauthd_var_run_t,saslauthd_var_run_t)
Chris PeBenito 17de1b
files_pid_filetrans(saslauthd_t,saslauthd_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(saslauthd_t)
Chris PeBenito 17de1b
kernel_read_system_state(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(saslauthd_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(saslauthd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_if(saslauthd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_nodes(saslauthd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(saslauthd_t)
Chris PeBenito 17de1b
corenet_tcp_connect_pop_port(saslauthd_t)
Chris PeBenito 17de1b
corenet_sendrecv_pop_client_packets(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(saslauthd_t)
Chris PeBenito 17de1b
dev_read_urand(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(saslauthd_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito d6d16b
selinux_compute_access_vector(saslauthd_t)
Chris PeBenito d6d16b
Chris PeBenito 17de1b
auth_domtrans_chk_passwd(saslauthd_t)
Chris PeBenito 17de1b
auth_use_nsswitch(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(saslauthd_t)
Chris PeBenito 17de1b
files_dontaudit_read_etc_runtime_files(saslauthd_t)
Chris PeBenito 17de1b
files_search_var_lib(saslauthd_t)
Chris PeBenito 17de1b
files_dontaudit_getattr_home_dir(saslauthd_t)
Chris PeBenito 17de1b
files_dontaudit_getattr_tmp_dirs(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
init_dontaudit_stream_connect_script(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(saslauthd_t)
Chris PeBenito 17de1b
libs_use_shared_libs(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(saslauthd_t)
Chris PeBenito 17de1b
miscfiles_read_certs(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
seutil_dontaudit_read_config(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(saslauthd_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(saslauthd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
ifdef(`targeted_policy', `
Chris PeBenito 17de1b
	term_dontaudit_use_unallocated_ttys(saslauthd_t)
Chris PeBenito 17de1b
	term_dontaudit_use_generic_ptys(saslauthd_t)
Chris PeBenito 17de1b
	files_dontaudit_read_root_files(saslauthd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# cjp: typeattribute dont work in conditionals yet
Chris PeBenito 17de1b
auth_can_read_shadow_passwords(saslauthd_t)
Chris PeBenito 17de1b
tunable_policy(`allow_saslauthd_read_shadow',`
Chris PeBenito 17de1b
	auth_tunable_read_shadow(saslauthd_t) 
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 697489
	kerberos_read_keytab(saslauthd_t)
Chris PeBenito 697489
')
Chris PeBenito 697489
Chris PeBenito 697489
optional_policy(`
Chris PeBenito 17de1b
	mysql_search_db(saslauthd_t)
Chris PeBenito 17de1b
	mysql_stream_connect(saslauthd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(saslauthd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(saslauthd_t)
Chris PeBenito 17de1b
')