Chris PeBenito ab58ad
#DESC Dictd - Dictionary daemon
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# Authors:  Russell Coker <russell@coker.com.au>
Chris PeBenito ab58ad
# X-Debian-Packages: dictd
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
Chris PeBenito ab58ad
#################################
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# Rules for the dictd_t domain.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# dictd_exec_t is the type of the dictd executable.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
daemon_base_domain(dictd)
Chris PeBenito ab58ad
type dictd_var_lib_t, file_type, sysadmfile;
Chris PeBenito ab58ad
typealias dictd_var_lib_t alias var_lib_dictd_t;
Chris PeBenito ab58ad
etc_domain(dictd)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# for checking for nscd
Chris PeBenito ab58ad
dontaudit dictd_t var_run_t:dir search;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# read config files
Chris PeBenito ab58ad
allow dictd_t { etc_t etc_runtime_t }:file r_file_perms;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
read_locale(dictd_t)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t { var_t var_lib_t }:dir search;
Chris PeBenito ab58ad
allow dictd_t dictd_var_lib_t:dir r_dir_perms;
Chris PeBenito ab58ad
allow dictd_t dictd_var_lib_t:file r_file_perms;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t self:capability { setuid setgid };
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t usr_t:file r_file_perms;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t self:process { setpgid fork sigchld };
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t proc_t:file r_file_perms;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t dict_port_t:tcp_socket name_bind;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t devtty_t:chr_file rw_file_perms;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
can_network_server(dictd_t)
Chris PeBenito ab58ad
can_ypbind(dictd_t)
Chris PeBenito ab58ad
can_tcp_connect(userdomain, dictd_t)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow dictd_t fs_t:filesystem getattr;