blob: b508aa56923f9dc3ef4a94ca3d0b808ef681dc90 [file] [log] [blame]
Roshan Piusd7b34a42017-12-22 15:03:15 -08001# HwBinder IPC from client to server
2binder_call(hal_wifi_hostapd_client, hal_wifi_hostapd_server)
3binder_call(hal_wifi_hostapd_server, hal_wifi_hostapd_client)
4
Steven Moreland9234e002018-06-06 09:30:18 -07005hal_attribute_hwservice(hal_wifi_hostapd, hal_wifi_hostapd_hwservice)
Chris Yeb7bb89b2021-07-07 22:06:53 -07006hal_attribute_service(hal_wifi_hostapd, hal_wifi_hostapd_service)
7
8binder_call(hal_wifi_hostapd_server, servicemanager)
9
10allow hal_wifi_hostapd_server dumpstate:fifo_file write;
Roshan Piusd7b34a42017-12-22 15:03:15 -080011
12allow hal_wifi_hostapd_server self:global_capability_class_set { net_admin net_raw };
13
14allow hal_wifi_hostapd_server sysfs_net:dir search;
15
16# Allow hal_wifi_hostapd to access /proc/net/psched
Jeff Vander Stoep7a4af302018-04-10 12:47:48 -070017allow hal_wifi_hostapd_server proc_net_type:file { getattr open read };
Roshan Piusd7b34a42017-12-22 15:03:15 -080018
19# Various socket permissions.
20allowxperm hal_wifi_hostapd_server self:udp_socket ioctl priv_sock_ioctls;
21allow hal_wifi_hostapd_server self:netlink_socket create_socket_perms_no_ioctl;
22allow hal_wifi_hostapd_server self:netlink_generic_socket create_socket_perms_no_ioctl;
23allow hal_wifi_hostapd_server self:packet_socket create_socket_perms_no_ioctl;
24allow hal_wifi_hostapd_server self:netlink_route_socket nlmsg_write;
25
26###
27### neverallow rules
28###
29
30# hal_wifi_hostapd should not trust any data from sdcards
ThiƩbaud Weksteen9ec53272021-06-23 10:21:49 +020031neverallow hal_wifi_hostapd_server { sdcard_type fuse }:dir ~getattr;
32neverallow hal_wifi_hostapd_server { sdcard_type fuse }:file *;