1# Allow wifi hal access to LOWI 2allow hal_wifi_ext location:unix_stream_socket connectto; 3 4# write to files owned by location daemon 5allow hal_wifi_ext location_socket:dir search; 6allow hal_wifi_ext location_socket:sock_file write; 7allow hal_wifi_ext location_data_file:{ file fifo_file } create_file_perms; 8 9allow hal_wifi_ext wlan_device:chr_file rw_file_perms; 10 11# Allow wifi hal to read debug info from the driver. 12r_dir_file(hal_wifi_ext, proc_wifi_dbg) 13 14# Write wlan driver/fw version into property 15set_prop(hal_wifi_ext, vendor_wifi_version) 16 17# Allow wifi_ext to report callbacks to gril-service app 18allow hal_wifi_ext grilservice_app:binder call; 19 20dontaudit hal_wifi_ext kernel:system module_request; 21dontaudit hal_wifi_ext self:capability sys_module; 22 23userdebug_or_eng(` 24# debugfs entries are only needed in user-debug or eng builds 25 26# Allow wifi hal to access wlan debugfs files and directories 27allow hal_wifi_ext debugfs_wlan:dir r_dir_perms; 28') 29