unconfined can name_connect to all ports

This commit is contained in:
Chris PeBenito 2005-07-20 17:08:07 +00:00
parent d250634311
commit 9496fd5119

View File

@ -983,14 +983,14 @@ interface(`corenet_use_tun_tap_device',`
interface(`corenet_unconfined',`
gen_require(`
attribute node_type, netif_type, port_type;
class tcp_socket { send_msg recv_msg node_bind name_bind };
class udp_socket { send_msg recv_msg node_bind name_bind };
class tcp_socket { send_msg recv_msg node_bind name_bind name_connect };
class udp_socket { send_msg recv_msg node_bind name_bind name_connect };
class rawip_socket node_bind;
')
allow $1 node_type:node *;
allow $1 netif_type:netif *;
allow $1 port_type:{ tcp_socket udp_socket } { send_msg recv_msg };
allow $1 port_type:{ tcp_socket udp_socket } { send_msg recv_msg name_connect };
# Bind to any network address.
# cjp: rawip_socket doesnt make any sense