From b435584603d075e76f3a829d9369e3fcf42759fc Mon Sep 17 00:00:00 2001
From: Amit Mahajan <amitmahajan@google.com>
Date: Thu, 1 Dec 2016 11:36:44 -0800
Subject: [PATCH] SEPolicy changes for radio hal.

Test: none
Bug: 32020264
Change-Id: If5f22dad672895b3684b8e44209c5a1eae16ba47
---
 public/radio.te | 4 ++++
 public/rild.te  | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/public/radio.te b/public/radio.te
index 591c3bc03..b2a878e19 100644
--- a/public/radio.te
+++ b/public/radio.te
@@ -36,3 +36,7 @@ allow radio radio_service:service_manager { add find };
 allow radio surfaceflinger_service:service_manager find;
 allow radio app_api_service:service_manager find;
 allow radio system_api_service:service_manager find;
+
+# Allow access to hwservicemanager for binderized hal
+binder_call(radio, hwservicemanager)
+binder_call(radio, rild)
\ No newline at end of file
diff --git a/public/rild.te b/public/rild.te
index bc6d6293d..687118232 100644
--- a/public/rild.te
+++ b/public/rild.te
@@ -50,3 +50,7 @@ r_dir_file(rild, system_file)
 
 # granting the ioctl permission for rild should be device specific
 allow rild self:socket create_socket_perms_no_ioctl;
+
+# Allow access to hwservicemanager for binderized hal
+binder_call(rild, hwservicemanager)
+binder_call(rild, radio)
-- 
GitLab