diff options
author | Ken Tsou <kentsou@google.com> | 2023-02-16 10:35:10 +0800 |
---|---|---|
committer | Ken Tsou <kentsou@google.com> | 2023-02-17 10:28:27 +0000 |
commit | 3194ab09f9c4efe20b9c8f6f6ed230fa014f22ea (patch) | |
tree | 4dc4d2fa2c611ea3e176af25e4ea25c17c0cfaad | |
parent | 5dbdb799e85a71bd39119c340b41596799d9e0ce (diff) |
[DO NOT MERGE] hal_health_default: access persist.vendor.shutdown.*
msg='avc: denied { set } for property=persist.vendor.shutdown.voltage_avg pid=908 uid=1000 gid=1000 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=0'
Bug: 266181615
Change-Id: Ia87610f0363bbfbe4fe446244b44818c273841f4
Signed-off-by: Ken Tsou <kentsou@google.com>
-rw-r--r-- | whitechapel/vendor/google/hal_health_default.te | 1 | ||||
-rw-r--r-- | whitechapel/vendor/google/property.te | 3 | ||||
-rw-r--r-- | whitechapel/vendor/google/property_contexts | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/whitechapel/vendor/google/hal_health_default.te b/whitechapel/vendor/google/hal_health_default.te index a28e5c12..65a5d483 100644 --- a/whitechapel/vendor/google/hal_health_default.te +++ b/whitechapel/vendor/google/hal_health_default.te @@ -4,6 +4,7 @@ allow hal_health_default persist_battery_file:file create_file_perms; allow hal_health_default persist_battery_file:dir rw_dir_perms; set_prop(hal_health_default, vendor_battery_defender_prop) +set_prop(hal_health_default, vendor_shutdown_prop) r_dir_file(hal_health_default, sysfs_scsi_devices_0000) allow hal_health_default fwk_stats_service:service_manager find; diff --git a/whitechapel/vendor/google/property.te b/whitechapel/vendor/google/property.te index 70c72b68..f1430adf 100644 --- a/whitechapel/vendor/google/property.te +++ b/whitechapel/vendor/google/property.te @@ -29,6 +29,9 @@ vendor_internal_prop(vendor_battery_defender_prop) # Battery profile for harness mode vendor_internal_prop(vendor_battery_profile_prop) +# hal_health +vendor_internal_prop(vendor_shutdown_prop) + # AoC vendor_internal_prop(vendor_aoc_prop) diff --git a/whitechapel/vendor/google/property_contexts b/whitechapel/vendor/google/property_contexts index 0dd3d463..c9e16156 100644 --- a/whitechapel/vendor/google/property_contexts +++ b/whitechapel/vendor/google/property_contexts @@ -87,6 +87,7 @@ persist.vendor.nfc. u:object_r:vendor_nfc_prop:s0 # Battery vendor.battery.defender. u:object_r:vendor_battery_defender_prop:s0 +persist.vendor.shutdown. u:object_r:vendor_shutdown_prop:s0 # test battery profile persist.vendor.testing_battery_profile u:object_r:vendor_battery_profile_prop:s0 |