|
Dan Walsh |
3eaa99 |
policy_module(aiccu, 1.0.0)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# Declarations
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type aiccu_t;
|
|
Dan Walsh |
3eaa99 |
type aiccu_exec_t;
|
|
Dan Walsh |
3eaa99 |
init_daemon_domain(aiccu_t, aiccu_exec_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type aiccu_initrc_exec_t;
|
|
Dan Walsh |
3eaa99 |
init_script_file(aiccu_initrc_exec_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type aiccu_etc_t;
|
|
Dan Walsh |
3eaa99 |
files_config_file(aiccu_etc_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
type aiccu_var_run_t;
|
|
Dan Walsh |
3eaa99 |
files_pid_file(aiccu_var_run_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
# aiccu local policy
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t self:capability { kill net_admin };
|
|
Dan Walsh |
3eaa99 |
dontaudit aiccu_t self:capability sys_tty_config;
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t self:process signal;
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t self:fifo_file rw_fifo_file_perms;
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t self:netlink_route_socket create_netlink_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t self:tcp_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t self:tun_socket create_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t self:udp_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t self:unix_stream_socket create_stream_socket_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow aiccu_t aiccu_etc_t:file read_file_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(aiccu_t, aiccu_var_run_t, aiccu_var_run_t)
|
|
Dan Walsh |
3eaa99 |
manage_files_pattern(aiccu_t, aiccu_var_run_t, aiccu_var_run_t)
|
|
Dan Walsh |
3eaa99 |
files_pid_filetrans(aiccu_t, aiccu_var_run_t, { file dir })
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
kernel_read_system_state(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
corecmd_exec_shell(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
corenet_all_recvfrom_netlabel(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_all_recvfrom_unlabeled(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_bind_generic_node(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_generic_if(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_generic_node(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_generic_port(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_sendrecv_sixxsconfig_client_packets(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_sendrecv_sixxsconfig_port(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_tcp_connect_sixxsconfig_port(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
corenet_rw_tun_tap_dev(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
domain_use_interactive_fds(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
dev_read_rand(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
dev_read_urand(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
files_read_etc_files(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
logging_send_syslog_msg(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
miscfiles_read_localization(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
modutils_domtrans_insmod(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
sysnet_domtrans_ifconfig(aiccu_t)
|
|
Dan Walsh |
3eaa99 |
sysnet_dns_name_resolve(aiccu_t)
|