Skip to content
Snippets Groups Projects
Commit ae207915 authored by Tri Vo's avatar Tri Vo
Browse files

perfprofd: allow traversing sysfs directories.

Bug: 70275668
Test: walleye builds, boots.
This change only expands the existing permissions, so shouldn't regress
runtime behavior.
Change-Id: I36e63f11d78998a88e3f8d1e6913e20762a359af
parent 40ed4283
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,9 @@ userdebug_or_eng(` ...@@ -7,6 +7,9 @@ userdebug_or_eng(`
typeattribute perfprofd coredomain; typeattribute perfprofd coredomain;
typeattribute perfprofd mlstrustedsubject; 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 # perfprofd needs to control CPU hot-plug in order to avoid kernel
# perfevents problems in cases where CPU goes on/off during measurement; # perfevents problems in cases where CPU goes on/off during measurement;
# this means read access to /sys/devices/system/cpu/possible # this means read access to /sys/devices/system/cpu/possible
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment