blob: a7fce572955646d3f5f0c65fef5a82a92c930a00 [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
5# may be started by init
6init_daemon_domain(wifi_hal_legacy)
7
8## hwbinder access
9hwbinder_use(wifi_hal_legacy)
10
11## call into wificond process (callbacks)
12binder_call(wifi_hal_legacy, wificond)
13
14r_dir_file(wifi_hal_legacy, proc_net)
15r_dir_file(wifi_hal_legacy, sysfs_type)
16
17allow wifi_hal_legacy self:udp_socket create_socket_perms;
18allow wifi_hal_legacy self:capability { net_admin net_raw };
19# allow wifi_hal_legacy to speak to nl80211 in the kernel
20allow wifi_hal_legacy 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
22allow wifi_hal_legacy self:netlink_generic_socket create_socket_perms_no_ioctl;