Merge "[ALPS03888283] Modify meta_tst.te" into alps-trunk-p0.basic

Change-Id: I615b124ec98c451ed086df1b3eadb60465aba93a
MTK-Commit-Id: 945a876118d041bb24f90c90e625c44a41a6f7fb
This commit is contained in:
Gang Wei 2020-01-18 09:37:38 +08:00 committed by Gerrit Code Review
commit 35d89a9938
3 changed files with 10 additions and 1 deletions

View File

@ -245,3 +245,9 @@ type sysfs_boot, fs_type, sysfs_type;
# consys Log folder
type consyslog_data_file, file_type, data_file_type;
# Date : WK1817
# Purpose : for meta to get com port type and uart port info
type sysfs_comport_type, fs_type, sysfs_type;
type sysfs_uart_info, fs_type, sysfs_type;

View File

@ -477,6 +477,8 @@
/sys/devices/virtual/thermal(/.*)? u:object_r:sysfs_therm:s0
/sys/devices/virtual/switch/fps(/.*)? u:object_r:sysfs_fps:s0
/sys/class/BOOT/BOOT/boot/boot_mode(/.*)? u:object_r:sysfs_boot:s0
/sys/bus/platform/drivers/meta_com_type_info/meta_com_type_info(/.*)? u:object_r:sysfs_comport_type:s0
/sys/bus/platform/drivers/meta_uart_port_info/meta_uart_port_info(/.*)? u:object_r:sysfs_uart_info:s0
#############################
# debugfs files

View File

@ -194,7 +194,8 @@ allow meta_tst sysfs_ccci:file r_file_perms;
# 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:file rw_file_perms;
allow meta_tst sysfs_comport_type:file rw_file_perms;
allow meta_tst sysfs_uart_info:file rw_file_perms;
#Date: W16.17
# Purpose: N Migration For meta_tst load MD NVRAM database