selinux-refpolicy/policy/modules/services/portreserve.te
Chris PeBenito 78276fc43b Drop module versioning.
Semodule stopped using this many years ago. The policy_module() macro will
continue to support an optional second parameter as version.
If it is not specified, a default value of 1 is set.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2022-01-06 09:19:13 -05:00

59 lines
2.0 KiB
Plaintext

policy_module(portreserve)
########################################
#
# Declarations
#
type portreserve_t;
type portreserve_exec_t;
init_daemon_domain(portreserve_t, portreserve_exec_t)
type portreserve_etc_t;
files_config_file(portreserve_etc_t)
type portreserve_initrc_exec_t;
init_script_file(portreserve_initrc_exec_t)
type portreserve_runtime_t alias portreserve_var_run_t;
files_runtime_file(portreserve_runtime_t)
########################################
#
# Local policy
#
allow portreserve_t self:capability { dac_override dac_read_search };
allow portreserve_t self:fifo_file rw_fifo_file_perms;
allow portreserve_t self:unix_stream_socket create_stream_socket_perms;
allow portreserve_t self:unix_dgram_socket { create_socket_perms sendto };
allow portreserve_t self:tcp_socket create_socket_perms;
allow portreserve_t self:udp_socket create_socket_perms;
allow portreserve_t portreserve_etc_t:dir list_dir_perms;
allow portreserve_t portreserve_etc_t:file read_file_perms;
allow portreserve_t portreserve_etc_t:lnk_file read_lnk_file_perms;
manage_dirs_pattern(portreserve_t, portreserve_runtime_t, portreserve_runtime_t)
manage_files_pattern(portreserve_t, portreserve_runtime_t, portreserve_runtime_t)
manage_sock_files_pattern(portreserve_t, portreserve_runtime_t, portreserve_runtime_t)
files_runtime_filetrans(portreserve_t, portreserve_runtime_t, { file sock_file dir })
corecmd_getattr_bin_files(portreserve_t)
corenet_all_recvfrom_netlabel(portreserve_t)
corenet_tcp_sendrecv_generic_if(portreserve_t)
corenet_udp_sendrecv_generic_if(portreserve_t)
corenet_tcp_sendrecv_generic_node(portreserve_t)
corenet_udp_sendrecv_generic_node(portreserve_t)
corenet_tcp_bind_generic_node(portreserve_t)
corenet_udp_bind_generic_node(portreserve_t)
corenet_sendrecv_all_server_packets(portreserve_t)
corenet_tcp_bind_all_ports(portreserve_t)
corenet_udp_bind_all_ports(portreserve_t)
files_read_etc_files(portreserve_t)
userdom_dontaudit_search_user_home_content(portreserve_t)