Chris PeBenito 9401ae1
policy_module(pads, 1.0.0) 
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Declarations
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type pads_t;
Chris PeBenito 9401ae1
type pads_exec_t;
Chris PeBenito 9401ae1
init_daemon_domain(pads_t, pads_exec_t)
Chris PeBenito 9401ae1
role system_r types pads_t;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type pads_initrc_exec_t;
Chris PeBenito 9401ae1
init_script_file(pads_initrc_exec_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type pads_config_t;
Chris PeBenito 9401ae1
files_config_file(pads_config_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type pads_var_run_t;
Chris PeBenito 9401ae1
files_pid_file(pads_var_run_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Declarations
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow pads_t self:capability { dac_override net_raw };
Chris PeBenito 9401ae1
allow pads_t self:netlink_route_socket { write getattr read bind create nlmsg_read };
Chris PeBenito 9401ae1
allow pads_t self:packet_socket { ioctl setopt getopt read bind create };
Chris PeBenito 9401ae1
allow pads_t self:udp_socket { create ioctl };
Chris PeBenito 9401ae1
allow pads_t self:unix_dgram_socket { write create connect };
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow pads_t pads_config_t:file manage_file_perms;
Chris PeBenito 9401ae1
files_etc_filetrans(pads_t, pads_config_t, file)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow pads_t pads_var_run_t:file manage_file_perms;
Chris PeBenito 9401ae1
files_pid_filetrans(pads_t, pads_var_run_t, file)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
kernel_read_sysctl(pads_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corecmd_search_bin(pads_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corenet_all_recvfrom_unlabeled(pads_t)
Chris PeBenito 9401ae1
corenet_all_recvfrom_netlabel(pads_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_if(pads_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_node(pads_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_prelude_port(pads_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
dev_read_rand(pads_t)
Chris PeBenito 9401ae1
dev_read_urand(pads_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(pads_t)
Chris PeBenito 9401ae1
files_search_spool(pads_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
miscfiles_read_localization(pads_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
logging_send_syslog_msg(pads_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
sysnet_dns_name_resolve(pads_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	prelude_manage_spool(pads_t)
Chris PeBenito 9401ae1
')