From 9c58c14d3024c426a3888252e98bf01eeb607879 Mon Sep 17 00:00:00 2001 From: Andrew Scull Date: Mon, 27 Mar 2017 14:27:20 +0100 Subject: [PATCH] SELinux policies for Weaver HAL. Bug: 35628284 Test: Boot and call HAL from system_server Change-Id: I4cdacb601e0eea1f5f0e721c568c7ee04298704f --- private/system_server.te | 1 + public/attributes | 3 +++ public/hal_weaver.te | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 public/hal_weaver.te diff --git a/private/system_server.te b/private/system_server.te index e1c5f6dce..bd895cfd5 100644 --- a/private/system_server.te +++ b/private/system_server.te @@ -190,6 +190,7 @@ binder_call(system_server, hal_vibrator) hal_client_domain(system_server, hal_vibrator) binder_call(system_server, hal_vr) hal_client_domain(system_server, hal_vr) +hal_client_domain(system_server, hal_weaver) hal_client_domain(system_server, hal_wifi) hal_client_domain(system_server, hal_wifi_offload) diff --git a/public/attributes b/public/attributes index da399c9fa..e6aa3df12 100644 --- a/public/attributes +++ b/public/attributes @@ -240,6 +240,9 @@ attribute hal_vibrator_server; attribute hal_vr; attribute hal_vr_client; attribute hal_vr_server; +attribute hal_weaver; +attribute hal_weaver_client; +attribute hal_weaver_server; attribute hal_wifi; attribute hal_wifi_client; attribute hal_wifi_server; diff --git a/public/hal_weaver.te b/public/hal_weaver.te new file mode 100644 index 000000000..78d2b7553 --- /dev/null +++ b/public/hal_weaver.te @@ -0,0 +1,2 @@ +# HwBinder IPC from client to server +binder_call(hal_weaver_client, hal_weaver_server)