Allow profcollect to create/rmdir in its own data dir am: e9d2671e10

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ieca9f5ca84264c08b989109176547dc655883f4c
This commit is contained in:
Yi Kong 2021-02-18 18:06:16 +00:00 committed by Automerger Merge Worker
commit 0b8d954e06

View file

@ -7,7 +7,7 @@ userdebug_or_eng(`
# profcollectd opens a file for writing in /data/misc/profcollectd.
allow profcollectd profcollectd_data_file:file create_file_perms;
allow profcollectd profcollectd_data_file:dir rw_dir_perms;
allow profcollectd profcollectd_data_file:dir create_dir_perms;
# Allow profcollectd full use of perf_event_open(2), to enable system wide profiling.
allow profcollectd self:perf_event { cpu kernel open read write };