1
#DESC Dictd - Dictionary daemon
3
# Authors: Russell Coker <russell@coker.com.au>
4
# X-Debian-Packages: dictd
7
#################################
9
# Rules for the dictd_t domain.
11
# dictd_exec_t is the type of the dictd executable.
13
type dict_port_t, port_type;
14
daemon_base_domain(dictd)
15
type var_lib_dictd_t, file_type, sysadmfile;
17
typealias dictd_etc_t alias etc_dictd_t;
19
# for checking for nscd
20
dontaudit dictd_t var_run_t:dir search;
23
allow dictd_t { etc_t etc_runtime_t }:file r_file_perms;
27
allow dictd_t { var_t var_lib_t }:dir search;
28
allow dictd_t var_lib_dictd_t:dir r_dir_perms;
29
allow dictd_t var_lib_dictd_t:file r_file_perms;
31
allow dictd_t self:capability { setuid setgid };
33
allow dictd_t usr_t:file r_file_perms;
35
allow dictd_t self:process { setpgid fork sigchld };
37
allow dictd_t proc_t:file r_file_perms;
39
allow dictd_t dict_port_t:tcp_socket name_bind;
41
allow dictd_t devtty_t:chr_file rw_file_perms;
43
allow dictd_t self:unix_stream_socket create_stream_socket_perms;
46
can_tcp_connect(userdomain, dictd_t)
48
allow dictd_t fs_t:filesystem getattr;