Chris PeBenito ac0483
Chris PeBenito 5ea24b
policy_module(dictd,1.1.0)
Chris PeBenito ac0483
Chris PeBenito ac0483
########################################
Chris PeBenito ac0483
#
Chris PeBenito ac0483
# Declarations
Chris PeBenito ac0483
#
Chris PeBenito ac0483
Chris PeBenito ac0483
type dictd_t;
Chris PeBenito ac0483
type dictd_exec_t;
Chris PeBenito 33acca
init_system_domain(dictd_t,dictd_exec_t)
Chris PeBenito ac0483
Chris PeBenito 9bbc75
type dictd_etc_t;
Chris PeBenito 9bbc75
files_config_file(dictd_etc_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
type dictd_var_lib_t alias var_lib_dictd_t;
Chris PeBenito ac0483
files_type(dictd_var_lib_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
########################################
Chris PeBenito ac0483
#
Chris PeBenito ac0483
# Local policy
Chris PeBenito ac0483
#
Chris PeBenito ac0483
Chris PeBenito ac0483
allow dictd_t self:capability { setuid setgid };
Chris PeBenito ac0483
dontaudit dictd_t self:capability sys_tty_config;
Chris PeBenito ac0483
allow dictd_t self:process { signal_perms setpgid };
Chris PeBenito ac0483
allow dictd_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 33acca
allow dictd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 33acca
allow dictd_t self:udp_socket create_socket_perms;
Chris PeBenito ac0483
Chris PeBenito ac0483
allow dictd_t dictd_etc_t:file r_file_perms;
Chris PeBenito ac0483
files_search_etc(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
allow dictd_t dictd_var_lib_t:dir r_dir_perms;
Chris PeBenito ac0483
allow dictd_t dictd_var_lib_t:file r_file_perms;
Chris PeBenito ac0483
Chris PeBenito ac0483
kernel_read_system_state(dictd_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(dictd_t)
Chris PeBenito ac0483
kernel_tcp_recvfrom(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
corenet_tcp_sendrecv_all_if(dictd_t)
Chris PeBenito ac0483
corenet_raw_sendrecv_all_if(dictd_t)
Chris PeBenito ac0483
corenet_udp_sendrecv_all_if(dictd_t)
Chris PeBenito ac0483
corenet_tcp_sendrecv_all_nodes(dictd_t)
Chris PeBenito ac0483
corenet_udp_sendrecv_all_nodes(dictd_t)
Chris PeBenito ac0483
corenet_raw_sendrecv_all_nodes(dictd_t)
Chris PeBenito ac0483
corenet_tcp_sendrecv_all_ports(dictd_t)
Chris PeBenito ac0483
corenet_udp_sendrecv_all_ports(dictd_t)
Chris PeBenito bd7037
corenet_non_ipsec_sendrecv(dictd_t)
Chris PeBenito ac0483
corenet_tcp_bind_all_nodes(dictd_t)
Chris PeBenito ac0483
corenet_udp_bind_all_nodes(dictd_t)
Chris PeBenito ac0483
corenet_tcp_bind_dict_port(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
dev_read_sysfs(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
fs_getattr_xattr_fs(dictd_t)
Chris PeBenito ac0483
fs_search_auto_mountpoints(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
term_dontaudit_use_console(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
domain_use_wide_inherit_fd(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
files_read_etc_files(dictd_t)
Chris PeBenito ac0483
files_read_etc_runtime_files(dictd_t)
Chris PeBenito ac0483
files_read_usr_files(dictd_t)
Chris PeBenito ac0483
files_search_var_lib(dictd_t)
Chris PeBenito ac0483
# for checking for nscd
Chris PeBenito ac0483
files_dontaudit_search_pids(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
init_use_fd(dictd_t)
Chris PeBenito ac0483
init_use_script_pty(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
libs_use_ld_so(dictd_t)
Chris PeBenito ac0483
libs_use_shared_libs(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
logging_send_syslog_msg(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
miscfiles_read_localization(dictd_t)
Chris PeBenito ac0483
Chris PeBenito 33acca
sysnet_read_config(dictd_t)
Chris PeBenito 33acca
Chris PeBenito ac0483
userdom_dontaudit_use_unpriv_user_fd(dictd_t)
Chris PeBenito ac0483
Chris PeBenito ac0483
ifdef(`targeted_policy',`
Chris PeBenito ac0483
	term_dontaudit_use_unallocated_tty(dictd_t)
Chris PeBenito ac0483
	term_dontaudit_use_generic_pty(dictd_t)
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(dictd_t)
Chris PeBenito ac0483
')
Chris PeBenito ac0483
Chris PeBenito 132880
optional_policy(`nis',`
Chris PeBenito ac0483
	nis_use_ypbind(dictd_t)
Chris PeBenito ac0483
')
Chris PeBenito ac0483
Chris PeBenito 132880
optional_policy(`nscd',`
Chris PeBenito 33acca
	nscd_use_socket(dictd_t)
Chris PeBenito 33acca
')
Chris PeBenito 33acca
Chris PeBenito 132880
optional_policy(`selinuxutil',`
Chris PeBenito ac0483
	seutil_sigchld_newrole(dictd_t)
Chris PeBenito ac0483
')
Chris PeBenito ac0483
Chris PeBenito 132880
optional_policy(`udev',`
Chris PeBenito ac0483
	udev_read_db(dictd_t)
Chris PeBenito ac0483
')