platform_system_sepolicy/microdroid/system/private/net.te
Inseob Kim e1389977e0 Move microdroid sepolicy to system/sepolicy
Bug: 190511750
Test: boot microdroid
Change-Id: I4aa4a56e9be5103d70469c3508110a973f3e4f12
2021-07-19 07:48:34 +00:00

16 lines
504 B
Text

## Network types
type node, node_type;
type netif, netif_type;
type port, port_type;
###
### Domain with network access
###
allow netdomain self:tcp_socket create_stream_socket_perms;
allow netdomain self:{ icmp_socket udp_socket rawip_socket } create_socket_perms;
allow netdomain port_type:tcp_socket name_connect;
allow netdomain node_type:{ icmp_socket rawip_socket tcp_socket udp_socket } node_bind;
allow netdomain port_type:udp_socket name_bind;
allow netdomain port_type:tcp_socket name_bind;