blob: ccdd96ca2650af8315c6ba2b70bda795a95659eb [file] [log] [blame]
Mitchell Willsa18b41e2016-09-16 12:17:10 -07001# wifi legacy hal
2type wifi_hal_legacy, domain;
3type wifi_hal_legacy_exec, exec_type, file_type;
4
Mitchell Willsa18b41e2016-09-16 12:17:10 -07005## hwbinder access
6hwbinder_use(wifi_hal_legacy)
7
8## call into wificond process (callbacks)
9binder_call(wifi_hal_legacy, wificond)
10
11r_dir_file(wifi_hal_legacy, proc_net)
12r_dir_file(wifi_hal_legacy, sysfs_type)
13
14allow wifi_hal_legacy self:udp_socket create_socket_perms;
15allow wifi_hal_legacy self:capability { net_admin net_raw };
16# allow wifi_hal_legacy to speak to nl80211 in the kernel
17allow 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
19allow wifi_hal_legacy self:netlink_generic_socket create_socket_perms_no_ioctl;