commit | cd4658785df85257bd8cc4650436c19e51ce884d | [log] [tgz] |
---|---|---|
author | SamarV-121 <samarvispute121@pm.me> | Thu Apr 27 14:48:40 2023 +0530 |
committer | SamarV-121 <samarvispute121@pm.me> | Thu Apr 27 22:25:38 2023 +0530 |
tree | 35dcc968d7ae35a3b0ff3dcc44648dcee80a503e | |
parent | 6c1dc1cc06f795c8a5883c369b870caa912cd2d7 [diff] |
sepolicy: Label thunderquake_engine nodes Change-Id: Iea2ff7e3539ea74df75fb9d4f1cb69197e60b39d
diff --git a/basic/non_plat/genfs_contexts b/basic/non_plat/genfs_contexts index 6721228..ddbcc01 100644 --- a/basic/non_plat/genfs_contexts +++ b/basic/non_plat/genfs_contexts
@@ -661,3 +661,6 @@ # Purpose: allow mgq access genfscon proc /mgq u:object_r:proc_mgq:s0 + +# Vibrator +genfscon sysfs /kernel/thunderquake_engine u:object_r:sysfs_vibrator:s0
diff --git a/basic/non_plat/hal_vibrator_default.te b/basic/non_plat/hal_vibrator_default.te index bd84b3e..cc39755 100644 --- a/basic/non_plat/hal_vibrator_default.te +++ b/basic/non_plat/hal_vibrator_default.te
@@ -3,4 +3,5 @@ # ============================================== # vibrator sysfs rw access +allow hal_vibrator_default sysfs_vibrator:dir search; allow hal_vibrator_default sysfs_vibrator:file rw_file_perms;