Enable pull metrics from keystore
Allow keystore to call statsd. Allow statsd to call back to keystore to pull atoms. Bug: 172013262 Test: atest system/keystore/keystore2 Test: statsd_testdrive 10103 Change-Id: I2d1739e257e95b37cc61f655f98f7a2724df7d76
This commit is contained in:
parent
5bbeaa39d8
commit
bad4165f25
3 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,10 @@ get_prop(keystore, device_logging_prop)
|
|||
# Allow keystore to write to statsd.
|
||||
unix_socket_send(keystore, statsdw, statsd)
|
||||
|
||||
# Allow keystore to register callbacks with statsd.
|
||||
allow keystore stats_service:service_manager find;
|
||||
binder_call(keystore, statsd);
|
||||
|
||||
# Keystore need access to the keystore_key context files to load the keystore key backend.
|
||||
allow keystore keystore2_key_contexts_file:file r_file_perms;
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ neverallow {
|
|||
-gmscore_app
|
||||
-gpuservice
|
||||
-incidentd
|
||||
-keystore
|
||||
-mediametrics
|
||||
-platform_app
|
||||
-priv_app
|
||||
|
|
|
@ -33,6 +33,10 @@ binder_call(statsd, system_server)
|
|||
allow statsd gpu_service:service_manager find;
|
||||
binder_call(statsd, gpuservice)
|
||||
|
||||
# Allow statsd to interact with keystore to pull atoms
|
||||
allow statsd keystore_service:service_manager find;
|
||||
binder_call(statsd, keystore)
|
||||
|
||||
# Allow statsd to interact with mediametrics
|
||||
allow statsd mediametrics_service:service_manager find;
|
||||
binder_call(statsd, mediametrics)
|
||||
|
|
Loading…
Reference in a new issue