Merge "power: Add policy to access sysfs_bcl" into sc-dev
This commit is contained in:
commit
46b51cd204
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
|
@ -133,6 +133,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