diff --git a/public/perfprofd.te b/public/perfprofd.te index 28465929f6b4fc57665e3cf995e7d00cfaa78c28..cb4a14409e29d18ad069dcb77ae6b2ea7a16fbd4 100644 --- a/public/perfprofd.te +++ b/public/perfprofd.te @@ -7,6 +7,9 @@ userdebug_or_eng(` typeattribute perfprofd coredomain; typeattribute perfprofd mlstrustedsubject; + # perfprofd access to sysfs directory structure. + allow perfprofd sysfs_type:dir search; + # perfprofd needs to control CPU hot-plug in order to avoid kernel # perfevents problems in cases where CPU goes on/off during measurement; # this means read access to /sys/devices/system/cpu/possible