summaryrefslogtreecommitdiff
path: root/sepolicy/hal_wifi.te
blob: 49f764c0f2f15b7630db5d9afe52da976443739e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Allow wifi hal access to LOWI
allow hal_wifi location:unix_stream_socket connectto;
allow hal_wifi location_data_file:sock_file write;

# write to files owned by location daemon
allow hal_wifi location_data_file:dir create_dir_perms;
allow hal_wifi location_data_file:{ file fifo_file } create_file_perms;

# Allow wifi hal to read debug info from the driver.
r_dir_file(hal_wifi, proc_wifi_dbg)

userdebug_or_eng(`
# debugfs entries are only needed in user-debug or eng builds

# Allow wifi hal to access wlan debugfs files and directories
allow hal_wifi debugfs_wlan:dir r_dir_perms;
')

userbuild(`
  dontaudit hal_wifi debugfs_wlan:dir r_dir_perms;
')