Merge "Sepolicy for mm events trace instance" am: d37f2e9d65

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib57821b4a036efa82e9abac07421be99704ed297
This commit is contained in:
Kalesh Singh 2021-01-26 14:55:43 +00:00 committed by Automerger Merge Worker
commit aac3d3b5e8
4 changed files with 10 additions and 0 deletions

View file

@ -17,6 +17,7 @@
cgroup_v2
ctl_snapuserd_prop
debugfs_kprobes
debugfs_mm_events_tracing
device_config_profcollect_native_boot_prop
device_state_service
dm_user_device

View file

@ -174,6 +174,8 @@ genfscon tracefs /per_cpu/cpu u:object_r:debugfs_tracing
genfscon debugfs /tracing/instances u:object_r:debugfs_tracing_instances:s0
genfscon tracefs /instances u:object_r:debugfs_tracing_instances:s0
genfscon debugfs /tracing/instances/mm_events u:object_r:debugfs_mm_events_tracing:s0
genfscon tracefs /instances/mm_events u:object_r:debugfs_mm_events_tracing:s0
genfscon debugfs /tracing/instances/wifi u:object_r:debugfs_wifi_tracing:s0
genfscon tracefs /instances/wifi u:object_r:debugfs_wifi_tracing:s0
genfscon debugfs /tracing/trace_marker u:object_r:debugfs_trace_marker:s0

View file

@ -16,6 +16,11 @@ allow traced_probes debugfs_tracing:file rw_file_perms;
allow traced_probes debugfs_trace_marker:file getattr;
allow traced_probes debugfs_tracing_printk_formats:file r_file_perms;
# Allow traced_probes to access mm_events trace instance
allow traced_probes debugfs_tracing_instances:dir search;
allow traced_probes debugfs_mm_events_tracing:dir search;
allow traced_probes debugfs_mm_events_tracing:file rw_file_perms;
# TODO(primiano): temporarily I/O tracing categories are still
# userdebug only until we nail down the denylist/allowlist.
userdebug_or_eng(`
@ -137,3 +142,4 @@ neverallow traced_probes {
# Only init is allowed to enter the traced_probes domain via exec()
neverallow { domain -init } traced_probes:process transition;
neverallow * traced_probes:process dyntransition;

View file

@ -138,6 +138,7 @@ type exfat, sdcard_type, fs_type, mlstrustedobject;
type debugfs, fs_type, debugfs_type;
type debugfs_kprobes, fs_type, debugfs_type;
type debugfs_mmc, fs_type, debugfs_type;
type debugfs_mm_events_tracing, fs_type, debugfs_type;
type debugfs_trace_marker, fs_type, debugfs_type, mlstrustedobject;
type debugfs_tracing, fs_type, debugfs_type, mlstrustedobject;
type debugfs_tracing_debug, fs_type, debugfs_type, mlstrustedobject;