Selinux changes for statsd flags
Test: manually verified statsd can get values using GetServerConfigurableFlag Bug: 172842175 Change-Id: I05cb2242dc758e32a22ddf30cb6f09088b70f5d4
This commit is contained in:
parent
79898cb78f
commit
dd0988fb9b
5 changed files with 12 additions and 0 deletions
|
@ -11,6 +11,8 @@ set_prop(flags_health_check, device_config_netd_native_prop)
|
|||
set_prop(flags_health_check, device_config_activity_manager_native_boot_prop)
|
||||
set_prop(flags_health_check, device_config_media_native_prop)
|
||||
set_prop(flags_health_check, device_config_profcollect_native_boot_prop)
|
||||
set_prop(flags_health_check, device_config_statsd_native_prop)
|
||||
set_prop(flags_health_check, device_config_statsd_native_boot_prop)
|
||||
set_prop(flags_health_check, device_config_storage_native_boot_prop)
|
||||
set_prop(flags_health_check, device_config_sys_traced_prop)
|
||||
set_prop(flags_health_check, device_config_window_manager_native_boot_prop)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Properties used only in /system
|
||||
system_internal_prop(adbd_prop)
|
||||
system_internal_prop(device_config_profcollect_native_boot_prop)
|
||||
system_internal_prop(device_config_statsd_native_prop)
|
||||
system_internal_prop(device_config_statsd_native_boot_prop)
|
||||
system_internal_prop(device_config_storage_native_boot_prop)
|
||||
system_internal_prop(device_config_sys_traced_prop)
|
||||
system_internal_prop(device_config_window_manager_native_boot_prop)
|
||||
|
|
|
@ -224,6 +224,8 @@ persist.device_config.netd_native. u:object_r:device_config_net
|
|||
persist.device_config.profcollect_native_boot. u:object_r:device_config_profcollect_native_boot_prop:s0
|
||||
persist.device_config.runtime_native. u:object_r:device_config_runtime_native_prop:s0
|
||||
persist.device_config.runtime_native_boot. u:object_r:device_config_runtime_native_boot_prop:s0
|
||||
persist.device_config.statsd_native. u:object_r:device_config_statsd_native_prop:s0
|
||||
persist.device_config.statsd_native_boot. u:object_r:device_config_statsd_native_boot_prop:s0
|
||||
persist.device_config.storage_native_boot. u:object_r:device_config_storage_native_boot_prop:s0
|
||||
persist.device_config.window_manager_native_boot. u:object_r:device_config_window_manager_native_boot_prop:s0
|
||||
|
||||
|
|
|
@ -21,3 +21,7 @@ allow statsd system_server:fifo_file { read getattr };
|
|||
|
||||
# Allow statsd to retrieve SF statistics over binder
|
||||
binder_call(statsd, surfaceflinger);
|
||||
|
||||
# Allow statsd to read its system properties
|
||||
get_prop(statsd, device_config_statsd_native_prop)
|
||||
get_prop(statsd, device_config_statsd_native_boot_prop)
|
||||
|
|
|
@ -627,6 +627,8 @@ set_prop(system_server, device_config_runtime_native_boot_prop)
|
|||
set_prop(system_server, device_config_runtime_native_prop)
|
||||
set_prop(system_server, device_config_media_native_prop)
|
||||
set_prop(system_server, device_config_profcollect_native_boot_prop)
|
||||
set_prop(system_server, device_config_statsd_native_prop)
|
||||
set_prop(system_server, device_config_statsd_native_boot_prop)
|
||||
set_prop(system_server, device_config_storage_native_boot_prop)
|
||||
set_prop(system_server, device_config_sys_traced_prop)
|
||||
set_prop(system_server, device_config_window_manager_native_boot_prop)
|
||||
|
|
Loading…
Reference in a new issue