System_server: Add support for accessing SMD Device Access
This patch allows system server from accesing smd device. Without this patch
applications were not able to access smd device resulting in failure for
ANT related test cases. Also some system_server permissions wrt Bluetooth
have been moved from bluetooth.te to system_server.te
Change-Id: Id66e82702ee2a3b3a0599d3733c7bfea221041e4
CRs-Fixed: 763090
diff --git a/common/bluetooth.te b/common/bluetooth.te
index 4f1d579..9d80620 100644
--- a/common/bluetooth.te
+++ b/common/bluetooth.te
@@ -15,7 +15,3 @@
allow bluetooth persist_file:dir search;
allow bluetooth persist_file:file rw_file_perms;
-
-#For ANT tty communication and to set wc_transport prop
-allow system_server bluetooth_prop:property_service set;
-allow system_server serial_device:chr_file rw_file_perms;
diff --git a/common/system_server.te b/common/system_server.te
index 803ab08..4f9e89c 100644
--- a/common/system_server.te
+++ b/common/system_server.te
@@ -45,3 +45,8 @@
allow system_server fuse:dir search;
allow system_server persist_file:dir search;
+
+#For ANT tty communication and to set wc_transport prop
+allow system_server bluetooth_prop:property_service set;
+allow system_server serial_device:chr_file rw_file_perms;
+allow system_server smd_device:chr_file rw_file_perms;