blob: 07e4271f7973a0339aebe1d343e77f09eefdeb79 [file] [log] [blame]
RafayKamraneaa18ce2021-10-27 14:12:44 +00001# Bind to ports.
Martin Stjernholm87143bd2023-04-25 12:40:37 +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
Bram Bonneaf609b22022-05-17 14:22:02 +020015 -priv_app
Martin Stjernholm87143bd2023-04-25 12:40:37 +000016 -sdk_sandbox
RafayKamraneaa18ce2021-10-27 14:12:44 +000017 -untrusted_app_all
18} self:netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh };
19