From a6d188555c284680d74e98b8b4c0e82cf5f1233f Mon Sep 17 00:00:00 2001 From: "gang.wei" Date: Sat, 18 Jan 2020 10:06:40 +0800 Subject: [PATCH] [ALPS04069430] set system clock [Detail] add permission for meta_tst to set system clock MTK-Commit-Id: 08d1dd39711fcea7acbb9b0da2d2418cf59a9cde Change-Id: I2e49acfc69db0c1786d7c373873fa1a49501a2e9 CR-Id: ALPS04069430 Feature: SP META Tool --- non_plat/meta_tst.te | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/non_plat/meta_tst.te b/non_plat/meta_tst.te index 78dc011..6878076 100644 --- a/non_plat/meta_tst.te +++ b/non_plat/meta_tst.te @@ -390,7 +390,14 @@ set_prop(meta_tst, vendor_usb_prop); allow meta_tst loghidlvendorservice:unix_stream_socket connectto; # Date: W18.32 +# Operation: Android P migration # Purpose : Allow meta_tst to set powerctl property # avc: denied { set } for property=sys.powerctl pid=330 uid=0 gid=1001 scontext=u:r:meta_tst:s0 # tcontext=u:object_r:powerctl_prop:s0 tclass=property_service permissive=0 set_prop(meta_tst, powerctl_prop); + +# Date: W18.33 +# Operation: Android P migration +# Purpose : Allow meta_tst to set system clock +# avc: denied { sys_time } for capability=25 scontext=u:r:meta_tst:s0 tcontext=u:r:meta_tst:s0 tclass=capability permissive=0 +allow meta_tst self:capability sys_time;