Roshan Pius | 8224596 | 2016-10-04 10:31:34 -0700 | [diff] [blame] | 1 | # wifi legacy hal |
| 2 | type hal_wifi, domain; |
| 3 | type hal_wifi_exec, exec_type, file_type; |
| 4 | |
| 5 | ## hwbinder access |
| 6 | hwbinder_use(hal_wifi) |
| 7 | |
| 8 | ## call into wificond process (callbacks) |
| 9 | binder_call(hal_wifi, wificond) |
| 10 | |
| 11 | r_dir_file(hal_wifi, proc_net) |
| 12 | r_dir_file(hal_wifi, sysfs_type) |
| 13 | |
| 14 | # allow hal wifi set interfaces up and down |
| 15 | allow hal_wifi self:udp_socket create_socket_perms; |
| 16 | allowxperm hal_wifi self:udp_socket ioctl { SIOCSIFFLAGS }; |
| 17 | |
| 18 | allow hal_wifi self:capability { net_admin net_raw }; |
| 19 | # allow hal_wifi to speak to nl80211 in the kernel |
| 20 | allow hal_wifi self:netlink_socket create_socket_perms_no_ioctl; |
| 21 | # newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets |
| 22 | allow hal_wifi self:netlink_generic_socket create_socket_perms_no_ioctl; |