2020-07-04 13:30:45 +00:00
|
|
|
policy_module(minissdpd, 1.6.2)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type minissdpd_t;
|
|
|
|
type minissdpd_exec_t;
|
|
|
|
init_daemon_domain(minissdpd_t, minissdpd_exec_t)
|
|
|
|
|
|
|
|
type minissdpd_initrc_exec_t;
|
|
|
|
init_script_file(minissdpd_initrc_exec_t)
|
|
|
|
|
|
|
|
type minissdpd_conf_t;
|
|
|
|
files_config_file(minissdpd_conf_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type minissdpd_runtime_t alias minissdpd_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(minissdpd_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow minissdpd_t self:capability { net_admin sys_module };
|
|
|
|
allow minissdpd_t self:netlink_route_socket r_netlink_socket_perms;
|
|
|
|
allow minissdpd_t self:udp_socket create_socket_perms;
|
|
|
|
allow minissdpd_t self:unix_dgram_socket create_socket_perms;
|
2018-11-12 15:16:04 +00:00
|
|
|
allow minissdpd_t self:unix_stream_socket create_stream_socket_perms;
|
2018-06-23 13:00:56 +00:00
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
allow minissdpd_t minissdpd_runtime_t:file manage_file_perms;
|
|
|
|
allow minissdpd_t minissdpd_runtime_t:sock_file manage_sock_file_perms;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(minissdpd_t, minissdpd_runtime_t, { file sock_file })
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_load_module(minissdpd_t)
|
|
|
|
kernel_read_network_state(minissdpd_t)
|
|
|
|
kernel_request_load_module(minissdpd_t)
|
|
|
|
|
|
|
|
corenet_all_recvfrom_netlabel(minissdpd_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(minissdpd_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(minissdpd_t)
|
|
|
|
corenet_udp_bind_generic_node(minissdpd_t)
|
|
|
|
|
|
|
|
corenet_sendrecv_ssdp_server_packets(minissdpd_t)
|
|
|
|
corenet_udp_bind_ssdp_port(minissdpd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(minissdpd_t)
|
|
|
|
|
2018-11-12 15:16:04 +00:00
|
|
|
miscfiles_read_localization(minissdpd_t)
|