mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Merge "Fix avc denied to dump some useful hals for user build." into qt-r1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1e1153ec19
9
sepolicy/public/te_macros
Normal file
9
sepolicy/public/te_macros
Normal 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;
|
||||
')
|
||||
4
sepolicy/vendor/dumpstate.te
vendored
4
sepolicy/vendor/dumpstate.te
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user