Allow profcollectd to store and read its application specific node ID in properties
This node ID will be used to uniquely and anonymously identify a device by profcollectd on engineering (userdebug or eng) builds. Test: build Change-Id: If01f71c62479d63d4d19aac15da24bc835621e66
This commit is contained in:
parent
133496f8a4
commit
9b65845b4a
4 changed files with 13 additions and 0 deletions
|
@ -88,6 +88,7 @@
|
|||
profcollectd_data_file
|
||||
profcollectd_exec
|
||||
profcollectd_service
|
||||
profcollectd_node_id_prop
|
||||
qemu_hw_prop
|
||||
qemu_sf_lcd_density_prop
|
||||
radio_core_data_file
|
||||
|
|
|
@ -40,6 +40,7 @@ userdebug_or_eng(`
|
|||
|
||||
# Allow profcollectd to read its system properties.
|
||||
get_prop(profcollectd, device_config_profcollect_native_boot_prop)
|
||||
set_prop(profcollectd, profcollectd_node_id_prop)
|
||||
|
||||
# Allow profcollectd to publish a binder service and make binder calls.
|
||||
binder_use(profcollectd)
|
||||
|
|
|
@ -25,6 +25,7 @@ system_internal_prop(netd_stable_secret_prop)
|
|||
system_internal_prop(odsign_prop)
|
||||
system_internal_prop(perf_drop_caches_prop)
|
||||
system_internal_prop(pm_prop)
|
||||
system_internal_prop(profcollectd_node_id_prop)
|
||||
system_internal_prop(rollback_test_prop)
|
||||
system_internal_prop(setupwizard_prop)
|
||||
system_internal_prop(system_adbd_prop)
|
||||
|
@ -590,3 +591,12 @@ neverallow {
|
|||
-init
|
||||
-shell
|
||||
} rollback_test_prop:property_service set;
|
||||
|
||||
neverallow {
|
||||
# Only allow init and profcollectd to access profcollectd_node_id_prop
|
||||
domain
|
||||
-init
|
||||
-dumpstate
|
||||
-profcollectd
|
||||
} profcollectd_node_id_prop:file r_file_perms;
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ persist.log.tag u:object_r:log_tag_prop:s0
|
|||
persist.mmc. u:object_r:mmc_prop:s0
|
||||
persist.netd.stable_secret u:object_r:netd_stable_secret_prop:s0
|
||||
persist.pm.mock-upgrade u:object_r:mock_ota_prop:s0
|
||||
persist.profcollectd.node_id u:object_r:profcollectd_node_id_prop:s0 exact string
|
||||
persist.sys. u:object_r:system_prop:s0
|
||||
persist.sys.safemode u:object_r:safemode_prop:s0
|
||||
persist.sys.theme u:object_r:theme_prop:s0
|
||||
|
|
Loading…
Reference in a new issue