Mitchell Wills | a18b41e | 2016-09-16 12:17:10 -0700 | [diff] [blame] | 1 | # wifi legacy hal |
| 2 | type wifi_hal_legacy, domain; |
| 3 | type wifi_hal_legacy_exec, exec_type, file_type; |
| 4 | |
Mitchell Wills | a18b41e | 2016-09-16 12:17:10 -0700 | [diff] [blame] | 5 | ## hwbinder access |
| 6 | hwbinder_use(wifi_hal_legacy) |
| 7 | |
| 8 | ## call into wificond process (callbacks) |
| 9 | binder_call(wifi_hal_legacy, wificond) |
| 10 | |
| 11 | r_dir_file(wifi_hal_legacy, proc_net) |
| 12 | r_dir_file(wifi_hal_legacy, sysfs_type) |
| 13 | |
| 14 | allow wifi_hal_legacy self:udp_socket create_socket_perms; |
| 15 | allow wifi_hal_legacy self:capability { net_admin net_raw }; |
| 16 | # allow wifi_hal_legacy to speak to nl80211 in the kernel |
| 17 | allow wifi_hal_legacy self:netlink_socket create_socket_perms_no_ioctl; |
| 18 | # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets |
| 19 | allow wifi_hal_legacy self:netlink_generic_socket create_socket_perms_no_ioctl; |