From 4dc268f514904d8c1c65aa633b149d1b8f3ab851 Mon Sep 17 00:00:00 2001 From: mtk12101 Date: Sat, 18 Jan 2020 09:33:59 +0800 Subject: [PATCH] [ALPS03825066] Fix build error [Detail] 1.The types on /sys/ must be associated with the "sysfs_type" attribute: sysfs_keypad_file 2.sysfs_type only have read permission [Solution] 1.Change sysfs_keypad_file to sysfs_type 2.Modify the permission to read about sysfs_type MTK-Commit-Id: 4cf285589167b25623a67c6b951c796846a9a3ad Change-Id: I3dd516eaf9959611c9a2b003cb3af07a35da5442 CR-Id: ALPS03825066 Feature: [Android Default] SELinux, SEAndroid, and SE-MTK --- non_plat/file.te | 2 +- non_plat/radio.te | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/non_plat/file.te b/non_plat/file.te index 448f702..734372e 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -118,7 +118,7 @@ type c2k_file, file_type, data_file_type; #For sensor type sensor_data_file, file_type, data_file_type; type stp_dump_data_file, file_type,data_file_type; -type sysfs_keypad_file, fs_type; +type sysfs_keypad_file, fs_type, sysfs_type; type rild_via_socket, file_type; type rpc_socket, file_type; type rild_ctclient_socket, file_type; diff --git a/non_plat/radio.te b/non_plat/radio.te index 034b530..57f9607 100644 --- a/non_plat/radio.te +++ b/non_plat/radio.te @@ -3,7 +3,7 @@ # ============ # Purpose : allow to access kpd driver file -allow radio sysfs_keypad_file:dir { w_dir_perms }; +allow radio sysfs_keypad_file:dir { r_dir_perms }; allow radio sysfs_keypad_file:file { w_file_perms }; # Date : WK15.34 2015/08/21