Skip to content
Snippets Groups Projects
Commit 0b2d26de authored by Robert Quattlebaum's avatar Robert Quattlebaum
Browse files

wpantund: Allow wpantund to call callbacks

This change allows wpantund to call any binder callbacks that have
been registered with it. Generally, only privileged apps are allowed
to register callbacks with wpantund, so we are limiting the scope for
callbacks to only privileged apps. We also add shell to allow the
command-line utility `lowpanctl` to work properly from `adb shell`.

Bug: b/67393078
Test: manual
Change-Id: I64c52cc5e202725a81230dc67e1cd7c911cf8e1c
(cherry picked from commit 17319cb3)
parent fd03d517
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,13 @@ binder_call(wpantund, system_server) ...@@ -10,6 +10,13 @@ binder_call(wpantund, system_server)
# wpantund needs to be able to check in with the lowpan_service # wpantund needs to be able to check in with the lowpan_service
allow wpantund lowpan_service:service_manager find; allow wpantund lowpan_service:service_manager find;
# Allow wpantund to call any callbacks that have been registered with it.
# Generally, only privileged apps are able to register callbacks with
# wpantund, so we are limiting the scope for callbacks to only privileged
# apps. We also add shell to allow the command-line utility `lowpanctl`
# to work properly from `adb shell`.
allow wpantund {priv_app shell}:binder call;
# create sockets to set interfaces up and down, add multicast groups, etc. # create sockets to set interfaces up and down, add multicast groups, etc.
allow wpantund self:udp_socket create_socket_perms; allow wpantund self:udp_socket create_socket_perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment