blob: 1f117d22d02a4775ab308edb7de37c83a0eee39d [file] [log] [blame]
Roshan Pius82245962016-10-04 10:31:34 -07001# wifi legacy hal
2type hal_wifi, domain;
3type hal_wifi_exec, exec_type, file_type;
4
5## hwbinder access
6hwbinder_use(hal_wifi)
7
8## call into wificond process (callbacks)
9binder_call(hal_wifi, wificond)
10
11r_dir_file(hal_wifi, proc_net)
12r_dir_file(hal_wifi, sysfs_type)
13
14# allow hal wifi set interfaces up and down
15allow hal_wifi self:udp_socket create_socket_perms;
16allowxperm hal_wifi self:udp_socket ioctl { SIOCSIFFLAGS };
17
18allow hal_wifi self:capability { net_admin net_raw };
19# allow hal_wifi to speak to nl80211 in the kernel
20allow 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
22allow hal_wifi self:netlink_generic_socket create_socket_perms_no_ioctl;