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