Chris PeBenito 4ebfec
policy_module(pyicqt, 1.0.0)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
########################################
Chris PeBenito 4ebfec
#
Chris PeBenito 4ebfec
# Declarations
Chris PeBenito 4ebfec
#
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
type pyicqt_t;
Chris PeBenito 4ebfec
type pyicqt_exec_t;
Chris PeBenito 4ebfec
init_daemon_domain(pyicqt_t, pyicqt_exec_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
type pyicqt_conf_t;
Chris PeBenito 4ebfec
files_config_file(pyicqt_conf_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
type pyicqt_spool_t;
Chris PeBenito 4ebfec
files_type(pyicqt_spool_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
type pyicqt_var_run_t;
Chris PeBenito 4ebfec
files_pid_file(pyicqt_var_run_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
########################################
Chris PeBenito 4ebfec
#
Chris PeBenito 4ebfec
# PyICQt policy
Chris PeBenito 4ebfec
#
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
allow pyicqt_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 4ebfec
allow pyicqt_t self:tcp_socket create_socket_perms;
Chris PeBenito 4ebfec
allow pyicqt_t self:udp_socket create_socket_perms;
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
read_files_pattern(pyicqt_t, pyicqt_conf_t, pyicqt_conf_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
manage_dirs_pattern(pyicqt_t, pyicqt_spool_t, pyicqt_spool_t)
Chris PeBenito 4ebfec
manage_files_pattern(pyicqt_t, pyicqt_spool_t, pyicqt_spool_t)
Chris PeBenito 4ebfec
files_spool_filetrans(pyicqt_t, pyicqt_spool_t, { dir file })
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
manage_files_pattern(pyicqt_t, pyicqt_var_run_t, pyicqt_var_run_t)
Chris PeBenito 4ebfec
files_pid_filetrans(pyicqt_t, pyicqt_var_run_t, file)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
kernel_read_system_state(pyicqt_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
corecmd_exec_bin(pyicqt_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
corenet_all_recvfrom_unlabeled(pyicqt_t)
Chris PeBenito 4ebfec
corenet_all_recvfrom_netlabel(pyicqt_t)
Chris PeBenito 4ebfec
corenet_tcp_sendrecv_generic_if(pyicqt_t)
Chris PeBenito 4ebfec
corenet_tcp_sendrecv_generic_node(pyicqt_t)
Chris PeBenito 4ebfec
corenet_tcp_connect_generic_port(pyicqt_t)
Chris PeBenito 4ebfec
corenet_sendrecv_generic_client_packets(pyicqt_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
dev_read_urand(pyicqt_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
files_read_etc_files(pyicqt_t)
Chris PeBenito 4ebfec
files_read_usr_files(pyicqt_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
libs_read_lib_files(pyicqt_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
miscfiles_read_localization(pyicqt_t)
Chris PeBenito 4ebfec
Chris PeBenito 4ebfec
sysnet_read_config(pyicqt_t)