blob: 9e15f41dd1fc7d2f7d8bbc0dad92d478835a87ec [file] [log] [blame]
RafayKamraneaa18ce2021-10-27 14:12:44 +00001# Bind to ports.
Nikita Ioffee2da6332022-02-21 17:55:59 +00002allow {netdomain -ephemeral_app -sdk_sandbox} node_type:{ icmp_socket rawip_socket tcp_socket udp_socket } node_bind;
3allow {netdomain -ephemeral_app -sdk_sandbox} port_type:udp_socket name_bind;
4allow {netdomain -ephemeral_app -sdk_sandbox} port_type:tcp_socket name_bind;
RafayKamraneaa18ce2021-10-27 14:12:44 +00005
6# b/141455849 gate RTM_GETLINK with a new permission nlmsg_readpriv and block access from
7# untrusted_apps.
8# b/171572148 gate RTM_GETNEIGH{TBL} with a new permission nlmsg_getneigh and block access from
9# untrusted_apps. Some untrusted apps (e.g. untrusted_app_25-30) are granted access elsewhere
10# to avoid app-compat breakage.
11allow {
12 netdomain
13 -ephemeral_app
14 -mediaprovider
Nikita Ioffee2da6332022-02-21 17:55:59 +000015 -sdk_sandbox
RafayKamraneaa18ce2021-10-27 14:12:44 +000016 -untrusted_app_all
17} self:netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh };
18