Add sepolicy for thermal log daemon

Bug: 126562025
Test: Boot and check log
Change-Id: I85a6fc0d6cce6b9de174c4402a34b3226c074213
Signed-off-by: TeYuan Wang <kamewang@google.com>
(cherry picked from commit 13191bd626)
This commit is contained in:
Wei Wang
2019-11-19 22:45:06 -08:00
committed by TeYuan Wang
parent ee99adeee4
commit 8fd8553585
2 changed files with 11 additions and 0 deletions

View File

@@ -178,6 +178,7 @@
/vendor/etc/init\.insmod\.cfg u:object_r:init-insmod-sh_exec:s0
/vendor/bin/init\.power\.sh u:object_r:init_power_exec:s0
/vendor/bin/init\.radio\.sh u:object_r:init_radio_exec:s0
/vendor/bin/thermal_logd u:object_r:init-thermal-logging-sh_exec:s0
/vendor/bin/ramoops u:object_r:ramoops_exec:s0
/vendor/bin/init\.ramoops\.sh u:object_r:ramoops_exec:s0
/vendor/bin/init\.fingerprint\.sh u:object_r:init-fingerprint_exec:s0

View File

@@ -0,0 +1,10 @@
type init-thermal-logging-sh, domain;
type init-thermal-logging-sh_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(init-thermal-logging-sh)
userdebug_or_eng(`
allow init-thermal-logging-sh vendor_toolbox_exec:file rx_file_perms;
allow init-thermal-logging-sh sysfs_thermal:dir r_dir_perms;
allow init-thermal-logging-sh sysfs_thermal:file r_file_perms;
')