Make profcollectd mlstrustedsubject.

Without being mlstrustedsubject, profcollectd can't read
/proc/<pid>/maps for app processes:

avc: denied " {" read" } for " scontext=u:r:profcollectd:s0
tcontext=u:r:platform_app:s0:c512,c768 tclass=file permissive=0

Bug: 166559473
Test: build and run profcollectd.

Change-Id: I2a20428694edbd87b1304c5f2221ddf699b8193a
This commit is contained in:
Yabin Cui 2021-03-09 18:50:48 -08:00
parent 23c2021d89
commit aa25b5e39f

View file

@ -1,5 +1,5 @@
# profcollectd - hardware profile collection daemon
type profcollectd, domain, coredomain;
type profcollectd, domain, coredomain, mlstrustedsubject;
type profcollectd_exec, system_file_type, exec_type, file_type;
userdebug_or_eng(`