Chris PeBenito f33561
Chris PeBenito d3d270
policy_module(sasl,1.2.0)
Chris PeBenito f33561
Chris PeBenito f33561
########################################
Chris PeBenito f33561
#
Chris PeBenito f33561
# Declarations
Chris PeBenito f33561
#
Chris PeBenito f33561
Chris PeBenito f33561
type saslauthd_t;
Chris PeBenito f33561
type saslauthd_exec_t;
Chris PeBenito f33561
init_daemon_domain(saslauthd_t,saslauthd_exec_t)
Chris PeBenito f33561
Chris PeBenito f33561
type saslauthd_var_run_t;
Chris PeBenito f33561
files_pid_file(saslauthd_var_run_t)
Chris PeBenito f33561
Chris PeBenito f33561
########################################
Chris PeBenito f33561
#
Chris PeBenito f33561
# Local policy
Chris PeBenito f33561
#
Chris PeBenito f33561
Chris PeBenito 049e11
allow saslauthd_t self:capability setuid;
Chris PeBenito f33561
dontaudit saslauthd_t self:capability sys_tty_config;
Chris PeBenito f33561
allow saslauthd_t self:process signal_perms;
Chris PeBenito f33561
allow saslauthd_t self:fifo_file { read write };
Chris PeBenito f33561
allow saslauthd_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito f33561
allow saslauthd_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito f33561
allow saslauthd_t self:tcp_socket create_socket_perms;
Chris PeBenito f33561
Chris PeBenito f33561
allow saslauthd_t saslauthd_var_run_t:file create_file_perms;
Chris PeBenito f33561
allow saslauthd_t saslauthd_var_run_t:sock_file create_file_perms;
Chris PeBenito f33561
allow saslauthd_t saslauthd_var_run_t:dir rw_dir_perms;
Chris PeBenito 9d5949
files_filetrans_pid(saslauthd_t,saslauthd_var_run_t)
Chris PeBenito f33561
Chris PeBenito f33561
kernel_read_kernel_sysctl(saslauthd_t)
Chris PeBenito f33561
kernel_read_system_state(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
corenet_tcp_sendrecv_all_if(saslauthd_t)
Chris PeBenito f33561
corenet_raw_sendrecv_all_if(saslauthd_t)
Chris PeBenito f33561
corenet_tcp_sendrecv_all_nodes(saslauthd_t)
Chris PeBenito f33561
corenet_raw_sendrecv_all_nodes(saslauthd_t)
Chris PeBenito f33561
corenet_tcp_sendrecv_all_ports(saslauthd_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(saslauthd_t)
Chris PeBenito f33561
corenet_tcp_bind_all_nodes(saslauthd_t)
Chris PeBenito f33561
corenet_tcp_connect_pop_port(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
dev_read_sysfs(saslauthd_t)
Chris PeBenito f33561
dev_read_urand(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
fs_getattr_all_fs(saslauthd_t)
Chris PeBenito f33561
fs_search_auto_mountpoints(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
term_dontaudit_use_console(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
auth_domtrans_chk_passwd(saslauthd_t)
Chris PeBenito 78510c
auth_use_nsswitch(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
domain_use_wide_inherit_fd(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
files_read_etc_files(saslauthd_t)
Chris PeBenito 049e11
files_dontaudit_read_etc_runtime_files(saslauthd_t)
Chris PeBenito f33561
files_search_var_lib(saslauthd_t)
Chris PeBenito f33561
files_dontaudit_getattr_home_dir(saslauthd_t)
Chris PeBenito 049e11
files_dontaudit_getattr_tmp_dir(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
init_use_fd(saslauthd_t)
Chris PeBenito f33561
init_use_script_pty(saslauthd_t)
Chris PeBenito f33561
init_dontaudit_unix_connect_script(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
libs_use_ld_so(saslauthd_t)
Chris PeBenito f33561
libs_use_shared_libs(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
logging_send_syslog_msg(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
miscfiles_read_localization(saslauthd_t)
Chris PeBenito f33561
miscfiles_read_certs(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
seutil_dontaudit_read_config(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
sysnet_read_config(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
userdom_dontaudit_use_unpriv_user_fd(saslauthd_t)
Chris PeBenito f33561
userdom_dontaudit_search_sysadm_home_dir(saslauthd_t)
Chris PeBenito f33561
Chris PeBenito f33561
ifdef(`targeted_policy', `
Chris PeBenito f33561
	term_dontaudit_use_unallocated_tty(saslauthd_t)
Chris PeBenito f33561
	term_dontaudit_use_generic_pty(saslauthd_t)
Chris PeBenito f33561
	files_dontaudit_read_root_file(saslauthd_t)
Chris PeBenito f33561
')
Chris PeBenito f33561
Chris PeBenito bf080a
# cjp: typeattribute dont work in conditionals yet
Chris PeBenito bf080a
auth_can_read_shadow_passwords(saslauthd_t)
Chris PeBenito bf080a
tunable_policy(`allow_saslauthd_read_shadow',`
Chris PeBenito bf080a
	auth_tunable_read_shadow(saslauthd_t) 
Chris PeBenito bf080a
')
Chris PeBenito f33561
Chris PeBenito 132880
optional_policy(`mysql',`
Chris PeBenito f33561
	mysql_search_db_dir(saslauthd_t)
Chris PeBenito f33561
	mysql_stream_connect(saslauthd_t)
Chris PeBenito f33561
')
Chris PeBenito f33561
Chris PeBenito 132880
optional_policy(`selinuxutil',`
Chris PeBenito f33561
	seutil_sigchld_newrole(saslauthd_t)
Chris PeBenito f33561
')
Chris PeBenito f33561
Chris PeBenito 132880
optional_policy(`udev',`
Chris PeBenito f33561
	udev_read_db(saslauthd_t)
Chris PeBenito f33561
')