1# HwBinder IPC from client to server, and callbacks
2binder_call(hal_lowpan_client, hal_lowpan_server)
3binder_call(hal_lowpan_server, hal_lowpan_client)
4
5
6# Allow hal_lowpan_client to be able to find the hal_lowpan_server
7hal_attribute_hwservice(hal_lowpan, hal_lowpan_hwservice)
8
9# hal_lowpan domain can write/read to/from lowpan_prop
10set_prop(hal_lowpan_server, lowpan_prop)
11
12# Allow hal_lowpan_server to open lowpan_devices
13allow hal_lowpan_server lowpan_device:chr_file rw_file_perms;
14
15###
16### neverallow rules
17###
18
19# Only LoWPAN HAL may directly access LoWPAN hardware
20neverallow { domain -hal_lowpan_server -init -ueventd } lowpan_device:chr_file ~getattr;
21