2022-01-06 13:55:54 +00:00
|
|
|
policy_module(pads)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type pads_t;
|
|
|
|
type pads_exec_t;
|
|
|
|
init_daemon_domain(pads_t, pads_exec_t)
|
|
|
|
application_executable_file(pads_exec_t)
|
|
|
|
|
|
|
|
type pads_config_t;
|
|
|
|
files_config_file(pads_config_t)
|
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type pads_initrc_exec_t;
|
|
|
|
init_script_file(pads_initrc_exec_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type pads_runtime_t alias pads_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(pads_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
allow pads_t self:capability { dac_override net_raw };
|
|
|
|
allow pads_t self:packet_socket create_socket_perms;
|
|
|
|
allow pads_t self:socket create_socket_perms;
|
|
|
|
|
|
|
|
allow pads_t pads_config_t:file manage_file_perms;
|
|
|
|
files_etc_filetrans(pads_t, pads_config_t, file)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
allow pads_t pads_runtime_t:file manage_file_perms;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(pads_t, pads_runtime_t, file)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_read_sysctl(pads_t)
|
|
|
|
kernel_read_network_state(pads_t)
|
|
|
|
|
|
|
|
corecmd_search_bin(pads_t)
|
|
|
|
|
|
|
|
corenet_all_recvfrom_netlabel(pads_t)
|
|
|
|
corenet_tcp_sendrecv_generic_if(pads_t)
|
|
|
|
corenet_tcp_sendrecv_generic_node(pads_t)
|
|
|
|
|
|
|
|
corenet_sendrecv_prelude_client_packets(pads_t)
|
|
|
|
corenet_tcp_connect_prelude_port(pads_t)
|
|
|
|
|
|
|
|
dev_read_rand(pads_t)
|
|
|
|
dev_read_urand(pads_t)
|
|
|
|
dev_read_sysfs(pads_t)
|
|
|
|
|
|
|
|
files_read_etc_files(pads_t)
|
|
|
|
files_search_spool(pads_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(pads_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(pads_t)
|
|
|
|
|
|
|
|
sysnet_dns_name_resolve(pads_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
prelude_manage_spool(pads_t)
|
|
|
|
')
|