From bc1c6ae90879b3e8a554487186b677af60829b50 Mon Sep 17 00:00:00 2001 From: mtk11515 Date: Sat, 18 Jan 2020 10:03:17 +0800 Subject: [PATCH] [ALPS03992062] Add log hidl system service te [Solution] add te file for log hidl MTK-Commit-Id: 195cb6d5dc1bccdccc67769314e99844c49e3f22 Change-Id: Ifc54914f7329201e0703f085b16552140c813cda CR-Id: ALPS03992062 Feature: MTKLogger --- non_plat/loghidlsysservice.te | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 non_plat/loghidlsysservice.te diff --git a/non_plat/loghidlsysservice.te b/non_plat/loghidlsysservice.te new file mode 100644 index 0000000..b28bec6 --- /dev/null +++ b/non_plat/loghidlsysservice.te @@ -0,0 +1,17 @@ +# 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;