From d1cf3a405693172020d6199480968f2c4ecde64d Mon Sep 17 00:00:00 2001 From: Victor Hsieh <victorhsieh@google.com> Date: Tue, 7 Nov 2017 13:21:22 -0800 Subject: [PATCH] Put pm.* property in new pm_prop context Test: system server does not crash with this change Bug: 67415855 Bug: 63920015 Change-Id: I3d0982220743137098dbc683d5c4aded105648c2 --- private/compat/26.0/26.0.cil | 3 ++- private/property_contexts | 1 + private/system_server.te | 1 + public/property.te | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/private/compat/26.0/26.0.cil b/private/compat/26.0/26.0.cil index 1ebab61f4..00b68d29d 100644 --- a/private/compat/26.0/26.0.cil +++ b/private/compat/26.0/26.0.cil @@ -134,7 +134,8 @@ (typeattributeset default_android_hwservice_26_0 (default_android_hwservice)) (typeattributeset default_android_service_26_0 (default_android_service)) (typeattributeset default_android_vndservice_26_0 (default_android_vndservice)) -(typeattributeset default_prop_26_0 (default_prop)) +(typeattributeset default_prop_26_0 + ( default_prop pm_prop)) (typeattributeset device_26_0 (device)) (typeattributeset device_identifiers_service_26_0 (device_identifiers_service)) (typeattributeset deviceidle_service_26_0 (deviceidle_service)) diff --git a/private/property_contexts b/private/property_contexts index 55974c041..1706224da 100644 --- a/private/property_contexts +++ b/private/property_contexts @@ -68,6 +68,7 @@ ro.bt. u:object_r:bluetooth_prop:s0 ro.boot.bootreason u:object_r:bootloader_boot_reason_prop:s0 persist.sys.boot.reason u:object_r:last_boot_reason_prop:s0 sys.boot.reason u:object_r:system_boot_reason_prop:s0 +pm. u:object_r:pm_prop:s0 # Boolean property set by system server upon boot indicating # if device owner is provisioned. diff --git a/private/system_server.te b/private/system_server.te index b38509c67..93c6a57ee 100644 --- a/private/system_server.te +++ b/private/system_server.te @@ -481,6 +481,7 @@ set_prop(system_server, fingerprint_prop) set_prop(system_server, device_logging_prop) set_prop(system_server, dumpstate_options_prop) set_prop(system_server, overlay_prop) +set_prop(system_server, pm_prop) userdebug_or_eng(`set_prop(system_server, wifi_log_prop)') # ctl interface diff --git a/public/property.te b/public/property.te index 713dc8373..be84d4a97 100644 --- a/public/property.te +++ b/public/property.te @@ -39,6 +39,7 @@ type overlay_prop, property_type; type pan_result_prop, property_type, core_property_type; type persist_debug_prop, property_type, core_property_type; type persistent_properties_ready_prop, property_type; +type pm_prop, property_type; type powerctl_prop, property_type, core_property_type; type radio_prop, property_type, core_property_type; type restorecon_prop, property_type, core_property_type; -- GitLab