diff options
author | Rick Yiu <rickyiu@google.com> | 2019-06-12 17:38:29 +0800 |
---|---|---|
committer | Rick Yiu <rickyiu@google.com> | 2019-06-13 12:42:46 +0800 |
commit | b5f6a02aeb3f15b455c51117f8feb0e040763529 (patch) | |
tree | 29bac96b75d2eb36ed790484f408aba5b06eb27f /public | |
parent | b4025829390d12ebfe98ee3c3a252167544f27df (diff) | |
download | coral-sepolicy-b5f6a02aeb3f15b455c51117f8feb0e040763529.tar.gz |
Fix avc denied to dump some useful hals for user build.
To get thermal/power/power_stats hals debug info in user build.
Bug: 128870385
Test: tested in userdebug with dumpstate.unroot set to true
Change-Id: I0c571c26919cbee508be80a6004691ef943bf882
Diffstat (limited to 'public')
-rw-r--r-- | public/te_macros | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/te_macros b/public/te_macros new file mode 100644 index 0000000..701ef55 --- /dev/null +++ b/public/te_macros @@ -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; +') |