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