Home | History | Annotate | Download | only in sepolicy
      1 # Allow wifi hal access to LOWI
      2 allow hal_wifi location:unix_stream_socket connectto;
      3 allow hal_wifi location_data_file:sock_file write;
      4 
      5 # write to files owned by location daemon
      6 allow hal_wifi location_data_file:dir create_dir_perms;
      7 allow hal_wifi location_data_file:{ file fifo_file } create_file_perms;
      8 
      9 # Allow wifi hal to read debug info from the driver.
     10 r_dir_file(hal_wifi, proc_wifi_dbg)
     11 
     12 userdebug_or_eng(`
     13 # debugfs entries are only needed in user-debug or eng builds
     14 
     15 # Allow wifi hal to access wlan debugfs files and directories
     16 allow hal_wifi debugfs_wlan:dir r_dir_perms;
     17 ')
     18