Chris PeBenito ab58ad
#DESC canna - A Japanese character set input system.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# Authors: Dan Walsh <dwalsh@redhat.com>
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
Chris PeBenito ab58ad
#################################
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# Rules for the canna_t domain.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
daemon_domain(canna)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
file_type_auto_trans(canna_t, var_run_t, canna_var_run_t, sock_file)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
logdir_domain(canna)
Chris PeBenito ab58ad
var_lib_domain(canna)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow canna_t self:capability { setgid setuid net_bind_service };
Chris PeBenito ab58ad
allow canna_t tmp_t:dir { search };
Chris PeBenito ab58ad
allow canna_t self:unix_stream_socket { connectto create_stream_socket_perms};
Chris PeBenito ab58ad
allow canna_t self:unix_dgram_socket create_stream_socket_perms;
Chris PeBenito ab58ad
allow canna_t etc_t:file { getattr read };
Chris PeBenito ab58ad
allow canna_t usr_t:file { getattr read };
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow canna_t proc_t:file r_file_perms;
Chris PeBenito ab58ad
allow canna_t etc_runtime_t:file r_file_perms;
Chris PeBenito ab58ad
allow canna_t canna_var_lib_t:dir create;
Chris PeBenito ab58ad
Chris PeBenito ab58ad
rw_dir_create_file(canna_t, canna_var_lib_t)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
can_network_tcp(canna_t)
Chris PeBenito ab58ad
allow canna_t port_type:tcp_socket name_connect;
Chris PeBenito ab58ad
can_ypbind(canna_t)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
allow userdomain canna_var_run_t:dir search;
Chris PeBenito ab58ad
allow userdomain canna_var_run_t:sock_file write;
Chris PeBenito ab58ad
can_unix_connect(userdomain, canna_t)
Chris PeBenito ab58ad
Chris PeBenito ab58ad
ifdef(`i18n_input.te', `
Chris PeBenito ab58ad
allow i18n_input_t canna_var_run_t:dir search;
Chris PeBenito ab58ad
allow i18n_input_t canna_var_run_t:sock_file write;
Chris PeBenito ab58ad
can_unix_connect(i18n_input_t, canna_t)
Chris PeBenito ab58ad
')
Chris PeBenito ab58ad
Chris PeBenito ab58ad
dontaudit canna_t kernel_t:fd use;
Chris PeBenito ab58ad
dontaudit canna_t root_t:file read;