From 12ec9305c2c892bb4942c4467b2e0fd368834e06 Mon Sep 17 00:00:00 2001 From: Dian Wang Date: Sat, 18 Jan 2020 09:56:54 +0800 Subject: [PATCH] [ALPS03888283] Update meta sepolicy [Detail] modify meta_tst.te and file.te [Solution] P Migration meta_tst get com port type/uart port info/boot mode/usb state/usb close MTK-Commit-Id: 650d2e874dd8e73a5b79f911ba6bb6579c7819c1 Change-Id: Ie405027bcb4b567721c531a94a3a6247fa15689b CR-Id: ALPS03888283 Feature: SP META Tool --- non_plat/meta_tst.te | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/non_plat/meta_tst.te b/non_plat/meta_tst.te index aeed19c..86ff33d 100644 --- a/non_plat/meta_tst.te +++ b/non_plat/meta_tst.te @@ -202,13 +202,13 @@ allow meta_tst storage_file:lnk_file read; allow meta_tst sysfs_ccci:dir search; allow meta_tst sysfs_ccci:file r_file_perms; -#Date: W16.17 -# Purpose: N Migration for meta_tst 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="meta_tst" name="meta_com_type_info" dev= -#"sysfs" ino=11073 scontext=u:r:meta_tst:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 +#Date: W18.22 +# Purpose: P Migration meta_tst get com port type/uart port info/boot mode/usb state/usb close allow meta_tst sysfs_comport_type:file rw_file_perms; allow meta_tst sysfs_uart_info:file rw_file_perms; +allow meta_tst sysfs_boot_mode:file rw_file_perms; +allow meta_tst sysfs_android_usb:file rw_file_perms; +allow meta_tst sysfs_android_usb:dir search; #Date: W16.17 # Purpose: N Migration For meta_tst load MD NVRAM database