Dmitry Shmidt | a2e3640 | 2017-11-29 14:06:03 -0800 | [diff] [blame] | 1 | # TODO(b/36657258): Remove data_between_core_and_vendor_violators once |
| 2 | # hostapd no longer directly accesses /data outside /data/vendor. |
| 3 | typeattribute hostapd data_between_core_and_vendor_violators; |
| 4 | # hostapd can read and write WiFi related data and configuration. |
Dmitry Shmidt | a2e3640 | 2017-11-29 14:06:03 -0800 | [diff] [blame] | 5 | allow hostapd wifi_data_file:file rw_file_perms; |
| 6 | r_dir_file(hostapd, wifi_data_file) |
| 7 | |
| 8 | # hostapd wants to create the directory holding its control socket. |
| 9 | allow hostapd hostapd_socket:dir create_dir_perms; |
| 10 | # hostapd needs to create, bind to, read, and write its control socket. |
| 11 | allow hostapd hostapd_socket:sock_file create_file_perms; |