Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Author: Russell Coker <russell@coker.com.au>
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type uml_exec_t, file_type, sysadmfile, exec_type;
Chris PeBenito 0fbfa5
type uml_ro_t, file_type, sysadmfile;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# the main code is in macros/program/uml_macros.te
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
daemon_domain(uml_switch)
Chris PeBenito 0fbfa5
allow uml_switch_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 0fbfa5
allow uml_switch_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 0fbfa5
allow uml_switch_t uml_switch_var_run_t:sock_file create_file_perms;
Chris PeBenito 0fbfa5
allow initrc_t uml_switch_var_run_t:sock_file setattr;
Chris PeBenito 0fbfa5
rw_dir_create_file(initrc_t, uml_switch_var_run_t)