Add label for time (zone) system properties

This adds a label for system properties that will affect system-wide
time / time detection logic.

The first example will be something like:
persist.time.detection_impl_version

Bug: 78217059
Test: build
Change-Id: I46044f1e28170760001da9acf2496a1e3037e48a
This commit is contained in:
Neil Fuller 2018-06-25 15:36:51 +01:00
parent 0474b119ca
commit b794ad0f8d
6 changed files with 13 additions and 0 deletions

View file

@ -118,6 +118,7 @@
thermalserviced
thermalserviced_exec
thermalserviced_tmpfs
time_prop
timedetector_service
timezone_service
timezonedetector_service

View file

@ -95,6 +95,7 @@
system_boot_reason_prop
system_update_service
test_boot_reason_prop
time_prop
timedetector_service
timezonedetector_service
tombstone_wifi_data_file

View file

@ -146,3 +146,6 @@ odm. u:object_r:vendor_default_prop:s0
persist.odm. u:object_r:vendor_default_prop:s0
persist.vendor. u:object_r:vendor_default_prop:s0
vendor. u:object_r:vendor_default_prop:s0
# Properties that relate to time / time zone detection behavior.
persist.time. u:object_r:time_prop:s0

View file

@ -3,3 +3,6 @@ typeattribute radio coredomain;
app_domain(radio)
read_runtime_log_tags(radio)
# Telephony code contains time / time zone detection logic so it reads the associated properties.
get_prop(radio, time_prop)

View file

@ -795,6 +795,9 @@ userdebug_or_eng(`
allow system_server functionfs:dir search;
allow system_server functionfs:file rw_file_perms;
# system_server contains time / time zone detection logic so reads the associated properties.
get_prop(system_server, time_prop)
###
### Neverallow rules
###

View file

@ -59,6 +59,7 @@ type system_boot_reason_prop, property_type;
type system_prop, property_type, core_property_type;
type system_radio_prop, property_type, core_property_type;
type test_boot_reason_prop, property_type;
type time_prop, property_type;
type traced_enabled_prop, property_type;
type vold_prop, property_type, core_property_type;
type wifi_log_prop, property_type, log_property_type;
@ -402,6 +403,7 @@ compatible_property_only(`
-system_prop
-system_radio_prop
-test_boot_reason_prop
-time_prop
-traced_enabled_prop
-vendor_default_prop
-vendor_security_patch_level_prop