From 2010ade935df5de7cf6f2cb95c1bae6b9604a57d Mon Sep 17 00:00:00 2001 From: Chunlan Wang Date: Sat, 18 Jan 2020 09:57:07 +0800 Subject: [PATCH] [ALPS03928691] Factory Mode:add the permission to get com type [Solution] Factory mode need to get com type is USB or UART, so add the permission in factory.te MTK-Commit-Id: aff8a941116fde70abd5c492fa084e74d927629e Change-Id: I0b9206bda110b9dde77168db73a8378c4a571851 CR-Id: ALPS03928691 Feature: Factory Mode --- non_plat/factory.te | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/non_plat/factory.te b/non_plat/factory.te index c199f59..5717229 100644 --- a/non_plat/factory.te +++ b/non_plat/factory.te @@ -296,3 +296,10 @@ set_prop(factory,ctl_ccci_fsd_prop); allow factory sysfs_therm:dir search; allow factory sysfs_therm:file {open read write}; +#Date: W18.22 +# Purpose: P Migration for factory get com port type and uart port info +# detail avc log: [ 11.751803] <1>.(1)[227:logd.auditd]type=1400 audit(1262304016.560:10): +#avc: denied { read } for pid=203 comm="factory" name="meta_com_type_info" dev= +#"sysfs" ino=11073 scontext=u:r:factory:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 +allow factory sysfs_comport_type:file rw_file_perms; +allow factory sysfs_uart_info:file rw_file_perms;