2005-09-02 20:50:54 +00:00
|
|
|
|
2007-12-14 14:23:18 +00:00
|
|
|
policy_module(dictd,1.5.0)
|
2005-09-02 20:50:54 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type dictd_t;
|
|
|
|
type dictd_exec_t;
|
2007-03-20 18:47:18 +00:00
|
|
|
init_daemon_domain(dictd_t,dictd_exec_t)
|
2005-09-02 20:50:54 +00:00
|
|
|
|
2005-10-24 18:40:24 +00:00
|
|
|
type dictd_etc_t;
|
|
|
|
files_config_file(dictd_etc_t)
|
2005-09-02 20:50:54 +00:00
|
|
|
|
|
|
|
type dictd_var_lib_t alias var_lib_dictd_t;
|
|
|
|
files_type(dictd_var_lib_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow dictd_t self:capability { setuid setgid };
|
|
|
|
dontaudit dictd_t self:capability sys_tty_config;
|
|
|
|
allow dictd_t self:process { signal_perms setpgid };
|
|
|
|
allow dictd_t self:unix_stream_socket create_stream_socket_perms;
|
2005-10-26 16:00:13 +00:00
|
|
|
allow dictd_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow dictd_t self:udp_socket create_socket_perms;
|
2005-09-02 20:50:54 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow dictd_t dictd_etc_t:file read_file_perms;
|
2005-09-02 20:50:54 +00:00
|
|
|
files_search_etc(dictd_t)
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow dictd_t dictd_var_lib_t:dir list_dir_perms;
|
|
|
|
allow dictd_t dictd_var_lib_t:file read_file_perms;
|
2005-09-02 20:50:54 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(dictd_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(dictd_t)
|
2005-09-02 20:50:54 +00:00
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(dictd_t)
|
|
|
|
corenet_all_recvfrom_netlabel(dictd_t)
|
2005-09-02 20:50:54 +00:00
|
|
|
corenet_tcp_sendrecv_all_if(dictd_t)
|
|
|
|
corenet_raw_sendrecv_all_if(dictd_t)
|
|
|
|
corenet_udp_sendrecv_all_if(dictd_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(dictd_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(dictd_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(dictd_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(dictd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(dictd_t)
|
|
|
|
corenet_tcp_bind_all_nodes(dictd_t)
|
|
|
|
corenet_tcp_bind_dict_port(dictd_t)
|
2006-05-30 19:46:34 +00:00
|
|
|
corenet_sendrecv_dict_server_packets(dictd_t)
|
2005-09-02 20:50:54 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(dictd_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(dictd_t)
|
|
|
|
fs_search_auto_mountpoints(dictd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(dictd_t)
|
2005-09-02 20:50:54 +00:00
|
|
|
|
|
|
|
files_read_etc_files(dictd_t)
|
|
|
|
files_read_etc_runtime_files(dictd_t)
|
|
|
|
files_read_usr_files(dictd_t)
|
|
|
|
files_search_var_lib(dictd_t)
|
|
|
|
# for checking for nscd
|
|
|
|
files_dontaudit_search_pids(dictd_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(dictd_t)
|
|
|
|
libs_use_shared_libs(dictd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(dictd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(dictd_t)
|
|
|
|
|
2005-10-26 16:00:13 +00:00
|
|
|
sysnet_read_config(dictd_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(dictd_t)
|
2005-09-02 20:50:54 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-02 20:50:54 +00:00
|
|
|
nis_use_ypbind(dictd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(dictd_t)
|
2005-10-26 16:00:13 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-02 20:50:54 +00:00
|
|
|
seutil_sigchld_newrole(dictd_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-02 20:50:54 +00:00
|
|
|
udev_read_db(dictd_t)
|
|
|
|
')
|