mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 15:09:54 +00:00
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:
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@@ -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
|
||||
|
||||
10
sepolicy/vendor/init-thermal-logging.sh.te
vendored
Normal file
10
sepolicy/vendor/init-thermal-logging.sh.te
vendored
Normal 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;
|
||||
')
|
||||
Reference in New Issue
Block a user