Merge "statsd: allow misctl property" into main

This commit is contained in:
Treehugger Robot 2024-05-21 01:25:32 +00:00 committed by Gerrit Code Review
commit 4fa0ed2bc1
2 changed files with 5 additions and 1 deletions

View file

@ -229,9 +229,10 @@ neverallow {
neverallow {
domain
-init
-crash_dump
-dumpstate
-misctrl
-crash_dump
-statsd
userdebug_or_eng(`-su')
} misctrl_prop:file no_rw_file_perms;
neverallow {

View file

@ -29,6 +29,9 @@ binder_call(statsd, surfaceflinger);
get_prop(statsd, device_config_statsd_native_prop)
get_prop(statsd, device_config_statsd_native_boot_prop)
# Allow statsd to read misctl properties (for 16 KB)
get_prop(statsd, misctrl_prop)
# Allow statsd to write uprobestats configs.
allow statsd uprobestats_configs_data_file:dir rw_dir_perms;
allow statsd uprobestats_configs_data_file:file create_file_perms;