[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
This commit is contained in:
Dian Wang 2020-01-18 09:56:54 +08:00
parent 27697efd23
commit 12ec9305c2

View File

@ -202,13 +202,13 @@ allow meta_tst storage_file:lnk_file read;
allow meta_tst sysfs_ccci:dir search; allow meta_tst sysfs_ccci:dir search;
allow meta_tst sysfs_ccci:file r_file_perms; allow meta_tst sysfs_ccci:file r_file_perms;
#Date: W16.17 #Date: W18.22
# Purpose: N Migration for meta_tst get com port type and uart port info # Purpose: P Migration meta_tst get com port type/uart port info/boot mode/usb state/usb close
# 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
allow meta_tst sysfs_comport_type:file rw_file_perms; allow meta_tst sysfs_comport_type:file rw_file_perms;
allow meta_tst sysfs_uart_info: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 #Date: W16.17
# Purpose: N Migration For meta_tst load MD NVRAM database # Purpose: N Migration For meta_tst load MD NVRAM database