Merge "Fix avc denied to dump some useful hals for user build." into qt-r1-dev

This commit is contained in:
TreeHugger Robot
2019-06-20 04:42:03 +00:00
committed by Android (Google) Code Review
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
###########################################
# dump_hal(hal_type)
# Ability to dump the hal debug info
#
define(`dump_hal', `
hal_client_domain(dumpstate, $1);
allow $1_server dumpstate:fifo_file write;
allow $1_server dumpstate:fd use;
')

View File

@@ -1,3 +1,7 @@
dump_hal(hal_thermal)
dump_hal(hal_power)
dump_hal(hal_power_stats)
userdebug_or_eng(`
allow dumpstate proc_modules:file r_file_perms;
allow dumpstate proc_stat:file r_file_perms;