Dominick Grift 18f2a7
policy_module(pads, 1.0.0)
Chris PeBenito 50824a
Chris PeBenito 50824a
########################################
Chris PeBenito 50824a
#
Chris PeBenito 50824a
# Declarations
Chris PeBenito 50824a
#
Chris PeBenito 50824a
Chris PeBenito 50824a
type pads_t;
Chris PeBenito 50824a
type pads_exec_t;
Chris PeBenito 50824a
init_daemon_domain(pads_t, pads_exec_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
type pads_initrc_exec_t;
Chris PeBenito 50824a
init_script_file(pads_initrc_exec_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
type pads_config_t;
Chris PeBenito 50824a
files_config_file(pads_config_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
type pads_var_run_t;
Chris PeBenito 50824a
files_pid_file(pads_var_run_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
########################################
Chris PeBenito 50824a
#
Chris PeBenito 50824a
# Declarations
Chris PeBenito 50824a
#
Chris PeBenito 50824a
Chris PeBenito 50824a
allow pads_t self:capability { dac_override net_raw };
Dominick Grift 0f7c40
allow pads_t self:netlink_route_socket create_netlink_socket_perms;
Dominick Grift 0f7c40
allow pads_t self:packet_socket create_socket_perms;
Dominick Grift 0f7c40
allow pads_t self:udp_socket create_socket_perms;
Dominick Grift 0f7c40
allow pads_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 50824a
Chris PeBenito 50824a
allow pads_t pads_config_t:file manage_file_perms;
Chris PeBenito 50824a
files_etc_filetrans(pads_t, pads_config_t, file)
Chris PeBenito 50824a
Chris PeBenito 50824a
allow pads_t pads_var_run_t:file manage_file_perms;
Chris PeBenito 50824a
files_pid_filetrans(pads_t, pads_var_run_t, file)
Chris PeBenito 50824a
Chris PeBenito 50824a
kernel_read_sysctl(pads_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
corecmd_search_bin(pads_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
corenet_all_recvfrom_unlabeled(pads_t)
Chris PeBenito 50824a
corenet_all_recvfrom_netlabel(pads_t)
Chris PeBenito 50824a
corenet_tcp_sendrecv_generic_if(pads_t)
Chris PeBenito 50824a
corenet_tcp_sendrecv_generic_node(pads_t)
Chris PeBenito 50824a
corenet_tcp_connect_prelude_port(pads_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
dev_read_rand(pads_t)
Chris PeBenito 50824a
dev_read_urand(pads_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
files_read_etc_files(pads_t)
Chris PeBenito 50824a
files_search_spool(pads_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
miscfiles_read_localization(pads_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
logging_send_syslog_msg(pads_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
sysnet_dns_name_resolve(pads_t)
Chris PeBenito 50824a
Chris PeBenito 50824a
optional_policy(`
Chris PeBenito 50824a
	prelude_manage_spool(pads_t)
Chris PeBenito 50824a
')