network_stack.te 956 B

123456789101112131415161718192021222324252627282930
  1. # Networking service app
  2. typeattribute network_stack coredomain;
  3. app_domain(network_stack);
  4. net_domain(network_stack);
  5. allow network_stack self:global_capability_class_set {
  6. net_admin
  7. net_bind_service
  8. net_broadcast
  9. net_raw
  10. };
  11. # Allow access to net_admin ioctl, DHCP server uses SIOCSARP
  12. allowxperm network_stack self:udp_socket ioctl priv_sock_ioctls;
  13. # The DhcpClient uses packet_sockets
  14. allow network_stack self:packet_socket create_socket_perms_no_ioctl;
  15. # Monitor neighbors via netlink.
  16. allow network_stack self:netlink_route_socket nlmsg_write;
  17. allow network_stack app_api_service:service_manager find;
  18. allow network_stack dnsresolver_service:service_manager find;
  19. allow network_stack netd_service:service_manager find;
  20. allow network_stack radio_service:service_manager find;
  21. allow network_stack radio_data_file:dir create_dir_perms;
  22. allow network_stack radio_data_file:file create_file_perms;
  23. binder_call(network_stack, netd);