Merge "statsd: allow misctl property" into main am: 4fa0ed2bc1

Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/3086708

Change-Id: If41c1bf9b4f981dd959c0a15025acafec4d4b815
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2024-05-21 01:55:26 +00:00 committed by Automerger Merge Worker
commit bf9aec10fc
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;