inherit from gs101-sepolicy Signed-off-by: Rex Lin <rexcylin@google.com> Bug: 201232020 Test: ranging works Change-Id: I0567e6bda78a94c12da3401444faffb36586f331
14 lines
615 B
Text
14 lines
615 B
Text
# HwBinder IPC from client to server
|
|
binder_call(hal_uwb_vendor_client, hal_uwb_vendor_server)
|
|
binder_call(hal_uwb_vendor_server, hal_uwb_vendor_client)
|
|
|
|
hal_attribute_service(hal_uwb_vendor, hal_uwb_vendor_service)
|
|
|
|
binder_call(hal_uwb_vendor_server, servicemanager)
|
|
|
|
# allow hal_uwb_vendor to set wpan interfaces up and down
|
|
allow hal_uwb_vendor self:udp_socket create_socket_perms;
|
|
allowxperm hal_uwb_vendor self:udp_socket ioctl { SIOCSIFFLAGS SIOCSIFHWADDR SIOCETHTOOL };
|
|
|
|
# allow hal_uwb_vendor to speak to nl802154 in the kernel
|
|
allow hal_uwb_vendor self:netlink_generic_socket create_socket_perms_no_ioctl;
|