selinux-policy/policy/modules/services/sasl.te

116 lines
2.9 KiB
Plaintext
Raw Normal View History

2005-10-10 18:50:08 +00:00
policy_module(sasl,1.6.1)
2005-10-10 18:50:08 +00:00
########################################
#
# Declarations
#
## <desc>
## <p>
## Allow sasl to read shadow
## </p>
## </desc>
gen_tunable(allow_saslauthd_read_shadow,false)
2005-10-10 18:50:08 +00:00
type saslauthd_t;
type saslauthd_exec_t;
init_daemon_domain(saslauthd_t,saslauthd_exec_t)
type saslauthd_tmp_t;
files_tmp_file(saslauthd_tmp_t)
2005-10-10 18:50:08 +00:00
type saslauthd_var_run_t;
files_pid_file(saslauthd_var_run_t)
########################################
#
# Local policy
#
allow saslauthd_t self:capability setuid;
2005-10-10 18:50:08 +00:00
dontaudit saslauthd_t self:capability sys_tty_config;
allow saslauthd_t self:process signal_perms;
allow saslauthd_t self:fifo_file { read write };
allow saslauthd_t self:unix_dgram_socket create_socket_perms;
allow saslauthd_t self:unix_stream_socket create_stream_socket_perms;
allow saslauthd_t self:tcp_socket create_socket_perms;
allow saslauthd_t saslauthd_tmp_t:dir setattr;
manage_files_pattern(saslauthd_t,saslauthd_tmp_t,saslauthd_tmp_t)
files_tmp_filetrans(saslauthd_t,saslauthd_tmp_t,file)
2006-12-12 20:08:08 +00:00
manage_files_pattern(saslauthd_t,saslauthd_var_run_t,saslauthd_var_run_t)
manage_sock_files_pattern(saslauthd_t,saslauthd_var_run_t,saslauthd_var_run_t)
files_pid_filetrans(saslauthd_t,saslauthd_var_run_t,file)
2005-10-10 18:50:08 +00:00
kernel_read_kernel_sysctls(saslauthd_t)
2005-10-10 18:50:08 +00:00
kernel_read_system_state(saslauthd_t)
corenet_all_recvfrom_unlabeled(saslauthd_t)
corenet_all_recvfrom_netlabel(saslauthd_t)
2005-10-10 18:50:08 +00:00
corenet_tcp_sendrecv_all_if(saslauthd_t)
corenet_tcp_sendrecv_all_nodes(saslauthd_t)
corenet_tcp_sendrecv_all_ports(saslauthd_t)
corenet_tcp_connect_pop_port(saslauthd_t)
2006-05-30 19:46:34 +00:00
corenet_sendrecv_pop_client_packets(saslauthd_t)
2005-10-10 18:50:08 +00:00
dev_read_sysfs(saslauthd_t)
dev_read_urand(saslauthd_t)
fs_getattr_all_fs(saslauthd_t)
fs_search_auto_mountpoints(saslauthd_t)
selinux_compute_access_vector(saslauthd_t)
2005-10-10 18:50:08 +00:00
auth_domtrans_chk_passwd(saslauthd_t)
2005-11-29 21:51:24 +00:00
auth_use_nsswitch(saslauthd_t)
2005-10-10 18:50:08 +00:00
2006-02-20 21:33:25 +00:00
domain_use_interactive_fds(saslauthd_t)
2005-10-10 18:50:08 +00:00
files_read_etc_files(saslauthd_t)
files_dontaudit_read_etc_runtime_files(saslauthd_t)
2005-10-10 18:50:08 +00:00
files_search_var_lib(saslauthd_t)
files_dontaudit_getattr_home_dir(saslauthd_t)
files_dontaudit_getattr_tmp_dirs(saslauthd_t)
2005-10-10 18:50:08 +00:00
2006-02-02 21:08:12 +00:00
init_dontaudit_stream_connect_script(saslauthd_t)
2005-10-10 18:50:08 +00:00
libs_use_ld_so(saslauthd_t)
libs_use_shared_libs(saslauthd_t)
logging_send_syslog_msg(saslauthd_t)
miscfiles_read_localization(saslauthd_t)
miscfiles_read_certs(saslauthd_t)
seutil_dontaudit_read_config(saslauthd_t)
sysnet_read_config(saslauthd_t)
2006-02-20 21:33:25 +00:00
userdom_dontaudit_use_unpriv_user_fds(saslauthd_t)
2006-02-21 18:40:44 +00:00
userdom_dontaudit_search_sysadm_home_dirs(saslauthd_t)
2005-10-10 18:50:08 +00:00
# cjp: typeattribute doesnt work in conditionals
2006-01-06 22:51:40 +00:00
auth_can_read_shadow_passwords(saslauthd_t)
tunable_policy(`allow_saslauthd_read_shadow',`
auth_tunable_read_shadow(saslauthd_t)
')
2005-10-10 18:50:08 +00:00
optional_policy(`
kerberos_read_keytab(saslauthd_t)
')
optional_policy(`
2006-02-02 21:08:12 +00:00
mysql_search_db(saslauthd_t)
2005-10-10 18:50:08 +00:00
mysql_stream_connect(saslauthd_t)
')
optional_policy(`
2005-10-10 18:50:08 +00:00
seutil_sigchld_newrole(saslauthd_t)
')
optional_policy(`
2005-10-10 18:50:08 +00:00
udev_read_db(saslauthd_t)
')