2007-06-27 16:31:55 +00:00
|
|
|
|
2010-05-24 19:32:01 +00:00
|
|
|
policy_module(rpcbind, 1.5.0)
|
2007-06-27 16:31:55 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type rpcbind_t;
|
|
|
|
type rpcbind_exec_t;
|
|
|
|
init_daemon_domain(rpcbind_t, rpcbind_exec_t)
|
|
|
|
|
2008-09-18 18:09:34 +00:00
|
|
|
type rpcbind_initrc_exec_t;
|
|
|
|
init_script_file(rpcbind_initrc_exec_t)
|
|
|
|
|
2007-06-27 16:31:55 +00:00
|
|
|
type rpcbind_var_run_t;
|
|
|
|
files_pid_file(rpcbind_var_run_t)
|
|
|
|
|
|
|
|
type rpcbind_var_lib_t;
|
|
|
|
files_type(rpcbind_var_lib_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# rpcbind local policy
|
|
|
|
#
|
|
|
|
|
2008-09-18 18:09:34 +00:00
|
|
|
allow rpcbind_t self:capability { dac_override setgid setuid sys_tty_config };
|
2007-06-27 16:31:55 +00:00
|
|
|
allow rpcbind_t self:fifo_file rw_file_perms;
|
|
|
|
allow rpcbind_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow rpcbind_t self:netlink_route_socket r_netlink_socket_perms;
|
|
|
|
allow rpcbind_t self:udp_socket create_socket_perms;
|
|
|
|
allow rpcbind_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(rpcbind_t, rpcbind_var_run_t, rpcbind_var_run_t)
|
|
|
|
manage_sock_files_pattern(rpcbind_t, rpcbind_var_run_t, rpcbind_var_run_t)
|
|
|
|
files_pid_filetrans(rpcbind_t, rpcbind_var_run_t, { file sock_file })
|
2007-06-27 16:31:55 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(rpcbind_t, rpcbind_var_lib_t, rpcbind_var_lib_t)
|
|
|
|
manage_files_pattern(rpcbind_t, rpcbind_var_lib_t, rpcbind_var_lib_t)
|
|
|
|
manage_sock_files_pattern(rpcbind_t, rpcbind_var_lib_t, rpcbind_var_lib_t)
|
|
|
|
files_var_lib_filetrans(rpcbind_t, rpcbind_var_lib_t, { file dir sock_file })
|
2007-06-27 16:31:55 +00:00
|
|
|
|
2008-09-18 18:09:34 +00:00
|
|
|
kernel_read_system_state(rpcbind_t)
|
2007-06-27 16:31:55 +00:00
|
|
|
kernel_read_network_state(rpcbind_t)
|
2009-12-18 15:45:39 +00:00
|
|
|
kernel_request_load_module(rpcbind_t)
|
2007-06-27 16:31:55 +00:00
|
|
|
|
|
|
|
corenet_all_recvfrom_unlabeled(rpcbind_t)
|
|
|
|
corenet_all_recvfrom_netlabel(rpcbind_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(rpcbind_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(rpcbind_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(rpcbind_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(rpcbind_t)
|
2007-06-27 16:31:55 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(rpcbind_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(rpcbind_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_bind_generic_node(rpcbind_t)
|
|
|
|
corenet_udp_bind_generic_node(rpcbind_t)
|
2007-06-27 16:31:55 +00:00
|
|
|
corenet_tcp_bind_portmap_port(rpcbind_t)
|
|
|
|
corenet_udp_bind_portmap_port(rpcbind_t)
|
|
|
|
corenet_udp_bind_all_rpc_ports(rpcbind_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(rpcbind_t)
|
|
|
|
|
|
|
|
files_read_etc_files(rpcbind_t)
|
2008-11-06 22:36:50 +00:00
|
|
|
files_read_etc_runtime_files(rpcbind_t)
|
2007-06-27 16:31:55 +00:00
|
|
|
|
|
|
|
logging_send_syslog_msg(rpcbind_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(rpcbind_t)
|
|
|
|
|
|
|
|
sysnet_dns_name_resolve(rpcbind_t)
|
2008-09-18 18:09:34 +00:00
|
|
|
|
|
|
|
ifdef(`hide_broken_symptoms',`
|
|
|
|
dontaudit rpcbind_t self:udp_socket listen;
|
|
|
|
')
|