diff --git a/non_plat/file.te b/non_plat/file.te index 78dad5f..a8b3dc1 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -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; diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 22da12a..c54bbee 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -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 diff --git a/non_plat/meta_tst.te b/non_plat/meta_tst.te index 739c58f..6c690f4 100644 --- a/non_plat/meta_tst.te +++ b/non_plat/meta_tst.te @@ -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