blob: 4adf84c6feda03b4663d30078344375967297009 [file] [log] [blame]
RafayKamraneaa18ce2021-10-27 14:12:44 +00001# Bind to ports.
Mugdha Lakhani2ae45c52023-04-28 09:22:15 +00002allow {netdomain -ephemeral_app -sdk_sandbox_all} node_type:{ icmp_socket rawip_socket tcp_socket udp_socket } node_bind;
3allow {netdomain -ephemeral_app -sdk_sandbox_all} port_type:udp_socket name_bind;
4allow {netdomain -ephemeral_app -sdk_sandbox_all} 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
Mugdha Lakhani2ae45c52023-04-28 09:22:15 +000016 -sdk_sandbox_all
RafayKamraneaa18ce2021-10-27 14:12:44 +000017 -untrusted_app_all
18} self:netlink_route_socket { bind nlmsg_readpriv nlmsg_getneigh };
19