From 1ac3d6456a81251e95bb5988b2397c5973acaad9 Mon Sep 17 00:00:00 2001 From: mtk11515 Date: Sat, 18 Jan 2020 10:04:53 +0800 Subject: [PATCH] [ALPS03992062] split .te file [Solution] split .te file to non_plat,private,public folder. MTK-Commit-Id: a044f6ece04b84ceaf8809076d3167700e351bbf Change-Id: I6282abddb5f43008a724e34367963a16b3f1e4d4 CR-Id: ALPS03992062 Feature: MTKLogger --- non_plat/loghidlsysservice.te | 14 +------------- plat_private/loghidlsysservice.te | 14 ++++++++++++++ plat_public/loghidlsysservice.te | 11 +++++++++++ 3 files changed, 26 insertions(+), 13 deletions(-) create mode 100755 plat_private/loghidlsysservice.te create mode 100644 plat_public/loghidlsysservice.te diff --git a/non_plat/loghidlsysservice.te b/non_plat/loghidlsysservice.te index b28bec6..0444c20 100644 --- a/non_plat/loghidlsysservice.te +++ b/non_plat/loghidlsysservice.te @@ -1,17 +1,5 @@ +# ============================================== # Policy File of /system/bin/loghidlsysservice Executable File -# ============================================== -# Type Declaration -# ============================================== -type loghidlsysservice,domain; -type loghidlsysservice_exec, exec_type, file_type; -typeattribute loghidlsysservice coredomain; # Purpose : for create hidl server hal_server_domain(loghidlsysservice, mtk_hal_log) -# ============================================== -# MTK Policy Rule -# ============================================== -init_daemon_domain(loghidlsysservice) - -allow loghidlsysservice emdlogger:unix_stream_socket connectto; -allow loghidlsysservice mobile_log_d:unix_stream_socket connectto; diff --git a/plat_private/loghidlsysservice.te b/plat_private/loghidlsysservice.te new file mode 100755 index 0000000..4e7b9c0 --- /dev/null +++ b/plat_private/loghidlsysservice.te @@ -0,0 +1,14 @@ +# ============================================== +# Policy File of /system/bin/loghidlsysservice Executable File + +# ============================================== +# Type Declaration +# ============================================== +type loghidlsysservice_exec, exec_type, file_type; +typeattribute loghidlsysservice coredomain; + + +init_daemon_domain(loghidlsysservice) + +allow loghidlsysservice emdlogger:unix_stream_socket connectto; +allow loghidlsysservice mobile_log_d:unix_stream_socket connectto; diff --git a/plat_public/loghidlsysservice.te b/plat_public/loghidlsysservice.te new file mode 100644 index 0000000..aa06ac7 --- /dev/null +++ b/plat_public/loghidlsysservice.te @@ -0,0 +1,11 @@ +# ============================================== +# Policy File of /system/bin/loghidlsysservice Executable File + +# ============================================== +# Type Declaration +# ============================================== +type loghidlsysservice ,domain; + + + +