power: Add policy to access sysfs_bcl
Bug: 180620276 Test: adb bugreport dumpstate_board.txt shows: ------ BCL (/sys/devices/virtual/pmic/mitigation/triggered_stats) ------ Source Count Last Triggered Last SOC Last Voltage smpl_warn 0 0 0 0 ocp_cpu1 0 0 0 0 ocp_cpu2 0 0 0 0 soft_ocp_cpu1 0 0 0 0 soft_ocp_cpu2 0 0 0 0 ocp_tpu 0 0 0 0 soft_ocp_tpu 0 0 0 0 pmic_120c 0 0 0 0 pmic_140c 0 0 0 0 pmic_overheat 0 0 0 0 ocp_gpu 0 0 0 0 soft_ocp_gpu 0 0 0 0 ------ IF PMIC (/sys/devices/virtual/pmic/max77759-mitigation/triggered_stats) ------ Source Count Last Triggered Last SOC Last Voltage VDROOP1 0 0 0 0 VDROOP2 0 0 0 0 BATOILO 0 0 0 0 Signed-off-by: George Lee <geolee@google.com> Change-Id: If7874e19b8202175071d474502e77748168565ce
This commit is contained in:
parent
aa41c84ad1
commit
9c3d77d088
3 changed files with 15 additions and 0 deletions
3
whitechapel/vendor/google/file.te
vendored
3
whitechapel/vendor/google/file.te
vendored
|
@ -159,6 +159,9 @@ type sysfs_chargelevel, sysfs_type, fs_type;
|
|||
type odpm_config_file, file_type, data_file_type;
|
||||
type sysfs_odpm, sysfs_type, fs_type;
|
||||
|
||||
# bcl
|
||||
type sysfs_bcl, sysfs_type, fs_type;
|
||||
|
||||
# Chosen
|
||||
type sysfs_chosen, sysfs_type, fs_type;
|
||||
|
||||
|
|
8
whitechapel/vendor/google/genfs_contexts
vendored
8
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -127,6 +127,14 @@ genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-8/8-002f/s2mpg11-mete
|
|||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-8/8-002f/s2mpg11-meter/s2mpg11-odpm/iio:device1/sampling_rate u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-8/8-002f/s2mpg11-meter/s2mpg11-odpm/iio:device1/enabled_rails u:object_r:sysfs_odpm:s0
|
||||
|
||||
# bcl sysfs files
|
||||
genfscon sysfs /devices/virtual/pmic/mitigation/triggered_stats u:object_r:sysfs_bcl:s0
|
||||
genfscon sysfs /devices/virtual/pmic/mitigation/mpmm_settings u:object_r:sysfs_bcl:s0
|
||||
genfscon sysfs /devices/virtual/pmic/mitigation/ppm_settings u:object_r:sysfs_bcl:s0
|
||||
genfscon sysfs /devices/virtual/pmic/mitigation/clk_ratio u:object_r:sysfs_bcl:s0
|
||||
genfscon sysfs /devices/virtual/pmic/mitigation/clk_stats u:object_r:sysfs_bcl:s0
|
||||
genfscon sysfs /devices/virtual/pmic/max77759-mitigation/triggered_stats u:object_r:sysfs_bcl:s0
|
||||
|
||||
# Chosen
|
||||
genfscon sysfs /firmware/devicetree/base/chosen u:object_r:sysfs_chosen:s0
|
||||
|
||||
|
|
|
@ -118,6 +118,10 @@ userdebug_or_eng(`
|
|||
|
||||
allow hal_dumpstate_default vendor_votable_debugfs:dir r_dir_perms;
|
||||
allow hal_dumpstate_default vendor_votable_debugfs:file r_file_perms;
|
||||
|
||||
allow hal_dumpstate_default sysfs_bcl:dir r_dir_perms;
|
||||
allow hal_dumpstate_default sysfs_bcl:file r_file_perms;
|
||||
allow hal_dumpstate_default sysfs_bcl:lnk_file read;
|
||||
')
|
||||
|
||||
dontaudit hal_dumpstate_default vendor_ion_debugfs:dir r_dir_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue