vendor_location.te 900 B

1234567891011121314151617181920
  1. # loc_launcher service
  2. # which launches various other services supporting Wifi-RTT (LOWI) vendor_location
  3. type vendor_location, domain;
  4. type vendor_location_exec, exec_type, vendor_file_type, file_type;
  5. init_daemon_domain(vendor_location)
  6. # execute permission for vendor_location daemons in /vendor/bin/
  7. domain_auto_trans(vendor_location, lowi_server_exec, lowi_server)
  8. # /dev/socket/vendor_location
  9. allow vendor_location vendor_location_socket:{sock_file lnk_file} create_file_perms;
  10. allow vendor_location vendor_location_socket:dir rw_dir_perms;
  11. # /sys/devices/soc0/soc_id
  12. allow vendor_location vendor_location_sysfs:file create_file_perms;
  13. # /dev/socket/location/mq/*
  14. allow vendor_location lowi_server:unix_dgram_socket {sendto read write};
  15. allow vendor_location hal_wifi_default:unix_dgram_socket {sendto read write};
  16. allow vendor_location hal_wifi_ext:unix_dgram_socket {sendto read write};